Quote:
Originally Posted by bhz1
Maybe its because you would need to re-jailbreak since its a new firmware? You will need to wait until an appropriate jailbreak method is released for 2.1.
|
No, it has nothing to do with jailbreaking.
With firmware 2.0.x, (jailbroken or not) any application installed in "/private/var/mobile/Applications/UUID" with owner "mobile" had full access to "/private/var/mobile/Applications".
In fact, a malicious app could erase all apps installed via iTunes.
With firmware 2.1, an app has access only to it's own directory.
Since my iPod is not jailbroken I am limited to "what I can see".
The app I wrote worked OK with fw 2.0.x and "virgin" devices.
It reported how much file system space was being used by each installed app.
When installed on a device with fw 2.1 it can only show it's own directory.
I've tried:
opendir() / readdir() Unix API
fts_open() / fts_read() Unix API
[[NSFileManager defaultManager] contentsOfDirectoryAtPath: error:] Cocoa API
The same result with all of them, access denied.
I can list the first level content of "/private/var/mobile/Applications" and find out how many apps are installed.
I can not go inside of each app directory to find the app name and compute space used.