May 04, 2008 17:30
I wish I had more time, so I could take apart the iTunesDB file on my iPhone so I could write some small app to let me upload mp3s to my iPhone.
Here's what I know:
-Music is located in /private/var/mobile/Media/iTunes_Control/Music/F00 - F13
-Each Fxx folder contains assorted media files with a capitalized four letter file name, followed by the file extension. There are 20-50 media files in each Fxx folder.
-There are a number of files in /private/var/mobile/Media/iTunes_Control/iTunes/
--Ringtones.plist
--Rentals.plist
--PlayCounts.plist
--PhotosFolderPrefs
--PhotosFolderName
--PhotosFolderAlbums
--iTunesRingtones
--iTunesPrefs
--iTunesPlaylists
--iTunesMovies
--iTunesMoviePlaylists
--iTunesDB (This is what we'll want to change, I think?)
--iTunesControl
I can open iTunesDB in a text editor (BBEdit), then replace all "mhod"s and "mhia"s with newlines for easier reading.... there's invisible.. somethings between letters (perhaps for.. unicode support of some sort? Need to view in a hex editor later...)
From a quick glance at the iTunesDB, it contains:
-A list of artists/albums
-A list of songs, with song name, artist, album, genre, type, then song location similar to the following:
hacking,
iphone