From: Christophe F. <te...@gn...> - 2009-11-30 10:02:42
|
2009/11/30 Louis Adiputra <net...@gm...>: > In conclusion... I guess I really should modify the library so that > it doesn't depend on the SysInfoExtended file which doesn't seem to > originally exist on iPhones, to make installation on a user device > easier. Because it'll be running on the device itself, it has access > to some internal functions that gets the serial number, like [UIDevice > uniqueIdentifier] and probably an OS version number, using this class: > http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIDevice_Class/Reference/UIDevice.html > > Well, that certainly wasn't worth your time reading it was it. Nope, your use case was interesting :) Though with 3.x firmwares, Apple provides an API to access the phone music database so maybe you don't need to fight with libgpod? SysInfoExtended on the iphone can be found in /System/Library/Lockdown/Checkpoint.xml (on jailbroken devices), dunno if in your usecase you can get access to it. fwiw, I'd like itdb_parse_file to die but it's still in use by gtkpod. And the Itdb_Device struct will probably need some rework at some point. Thanks for the thorough explanations of what you are trying to achieve :) Christophe |