May 4th, 2008

Neko (lofulah)

Twitters from LoudTwitter

  • 07:05 Ugh, too bloody early to be up. (7 AM...) Sun too happy. Stupid 8 AM saturday morning final exam... #
  • 09:16 One more final. And one coding assignment/presentation. But first, breakfast, laundry, and a shower... #
Automatically shipped by LoudTwitter
Neko (lofulah)

Seeking: Uploading music to the iPhone via SFTP

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: