English 中文(简体)
App with access to directories outside the SandBox. Root access
原标题:

I m creating an app for the iPhone (Jailbreak). Said app modifies this directory (among others) "/Ringtones.PQNYRJ/", trying to create a ringtone file. The thing is that I ve tried it every possible way and I can t get it to work. I ve followed the Cydia s documentation and I ve made a file with the same name as the app but with a shell script to execute the binary (renamed with an underscore).

dir=$(dirname "$0")
exec "${dir}"/MyTones_ "$@" 2>>/tmp/MyTones.log

I ve set the proper permissions (or so I think)... I ve based them off of Cydia.app permissions and all I got back is:

AVAssetExportSessionStatusFailed: Error Domain=NSURLErrorDomain Code=-3000 "Cannot create file" UserInfo=0xa79750 {NSUnderlyingError=0xa79860 "The operation couldn’t be completed. (OSStatus error -12115.)", NSLocalizedDescription=Cannot create file}

Any suggestion?

问题回答

I don t about the error, but i ll just list everything i did, successfully.

  • chmod the run script to 755 (obvious)

  • chmod the app binary to 4755 and chown to 0:0 (root)

  • Setup the Info.plist to launch the run script, not app binary (again, obvious)

  • Try changing your script to just: (log file not strictly necessary) dir=$(dirname "$0") exec "${dir}"/AppBinary

That s everything i did, and it works perfectly.

Of course, we re talking Jailbroken here, Apple would never allow this in the AppStore.





相关问题
SWF Loader & Flex s SWFLoader: child SWF sandboxing policy

REF: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Loader.html With regards to a parent SWF loading a child SWF via the Loader class, is it possible to prevent the loaded ...

Want to learn about Sandboxing [closed]

I want to learn more about sandboxing. Not just about it. I want to learn such that I will be able to write a simple sandbox. Surprisingly, there isn t any information available anywhere. Even the ...

security problem with Java ScriptEngine

I just started to use the Java ScriptEngine to do little extensions to my Application then i noticed that i can import all the java classes in the script and use them without restrictions. Is there a ...

Possible to sandbox Python configuration file?

I m thinking of implementing a configuration file written in Python syntax, not unlike what Django does. While I ve seen one or two SO questions about the merits of using executable code in ...

热门标签