Rockbox Development > New Ports
Rockbox as an Application (Android, WebOS etc.)
dip:
Is there a way to avoid that the internal memory of the Galaxy S is searched for without having root access to the phone?
It would be great if one could e.g. specify the directories in which music files should be searched for. This would avoid that during generation of the database thousands of directories are search for (e.g. in the internal memory) and would improve the speed of database generation drastically.
At the moment I stick with the *panic* error message and cannot generate the database to test browsing by tags :(
dip:
--- Quote from: Chronon on September 13, 2010, 09:25:18 AM ---Try putting an empty file called "database.ignore" in the root of your file tree. Then put another empty file called "database.unignore" in the base directory of your music collection. Certainly, no spurious files will be added to the database if you do this, though it's not clear to me that this will work around the overflow you are seeing. Still, it's worth a shot in the short term.
--- End quote ---
Can anybody please point me to the source file and variable which must be changed in order to avoid the described overflow. Or has anybody another suggestion how the database can be successfully built on the Samsung Galaxy S?
Thanks a lot in advance.
saratoga:
--- Quote from: dip on September 20, 2010, 09:01:19 AM ---
--- Quote from: Chronon on September 13, 2010, 09:25:18 AM ---Try putting an empty file called "database.ignore" in the root of your file tree. Then put another empty file called "database.unignore" in the base directory of your music collection. Certainly, no spurious files will be added to the database if you do this, though it's not clear to me that this will work around the overflow you are seeing. Still, it's worth a shot in the short term.
--- End quote ---
Can anybody please point me to the source file and variable which must be changed in order to avoid the described overflow. Or has anybody another suggestion how the database can be successfully built on the Samsung Galaxy S?
--- End quote ---
database.ignore isn't in the source, its just a file on the player's hard disk that tells that folder to be ignored. If that doesn't make sense to you, take a look at the manual (doesn't matter which, all devices have the database).
dip:
@saratoga:
I didn't mean database.ingnore which I know is a file and not part of the source code. As previously described I tried already to use database.ignore and database.unignore but this did not help. One problem is that I have no rooted phone and can thus put a database.ignore file only in the root directory of my SD card but not in the root directory of the internal memory of the phone. So I cannot avoid that the internal memory of the phone is searched for music files.
On the other hand, I have the impression that putting a database.ignore file in the root directory of the internal memory would not help anyway. As mentioned by torne previously in this tread:
"The database scanning process still counts files which are in ignored directories, since it still has to traverse the whole lot looking for database.unignore files, so the number will go up to something large whatever you do."
This sounds to me that the counter will increase even if I could put a database.ignore file in the root directory of the internal memory. And it seems that simply an overflow of the counter happens regardless whether music files have been found or not. That's why I asked for the source file and variable which comprises perhaps a definition of a max value for the counter (which I then would try to increase).
Maybe I am totally wrong with my idea, but I have at the moment no clue what I could try to avid the *panic* error message whan trying to build the database for my Galaxy S.
If you have any other advice, I would appreciate to test it.
kmz:
I have tested the prebuilt of the Android version on my Samsung Galaxy 3. When I bought the phone I was a little sceptical about would it be good enough to replace my old mp3 player equipped with Rockbox. So I was very happy to see that Rockbox was available to Android also, even if it is still early phase of it’s development.
It took me a while to learn the controls, but when you learn them, they are actually pretty good and logic, since I have already used Rockbox a couple of years in my Sansa e280.
The playback works very well and I haven’t had any difficulties at all. Well, sometimes when fast forwarding a song, it gets stuck and doesn’t start to play before I press stop and then resume playback. But that has happened only a few times so far.
However, I can only browse my songs via directory at the moment. I tried to initialize the database, but it just never finishes. If I open the database_tmp.tcd file in a text editor, I can see all my tracks there. I let it initialize over a day, but it still hadn’t finish. It just says it has found about 10 000 000.
So does that really mean it has found so many files? I just checked and there are 3456 files on my sdcard, about 2000 of them are music files. I don’t know how many files there are on the phone’s internal memory, but would it be possible that there are millions of files?
Then I tried to create a playlist. I could save it to the default folder (/data/data/org.rockbox/app_rockb) but when I tried to play it nothing happens. If I save the playlist on the sdcard, it works fine. But of course, then I don’t get it listed on the Playlist Catalog and I have to manually search it from the directories.
So I thought maybe I should have a root access since the Rockbox files are located on the phone’s internal memory and I can’t even browse them to add fonts or themes. It took me a while, but finally I succeeded to get the phone rooted. Then I used Root Explorer software to browse the files and went to the /data/data/org.rockbox/app_rockb folder. I gave all the permissions (read, write, execute) to my playlist files and now they are working fine.
Still can’t initialize the database though. I even tried to create the database with my computer using songdb.exe. It created the database files on the sdcard in .rockbox folder. Then I used Root Explorer to copy them to /data/data/org.rockbox/app_rockbox/rockbox and gave them all the permissions. But when I try to go to the database on Rockbox, it still tells me to initialize it.
In Android 2.1 you can’t install apps to sdcard, but maybe it will work better in Android 2.2 when you can do that. And even though there are some problems, Rockbox is already better than other music players on Android, since the stock player doesn’t even allow you to adjust the volume low enough when listening in silent places, not even to mention the gapless playback.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version