有权访问沙箱外部目录的应用程序。根访问
我正在为 iPhone 创建一个应用程序(越狱)。所述应用程序修改此目录(除其他外)“/Ringtones.PQNYRJ/”,尝试创建铃声文件。问题是我已经尝试了所有可能的方法,但我无法让它发挥作用。我遵循了 Cydia 的文档,并创建了一个与应用程序同名的文件,但使用 shell 脚本来执行二进制文件(用下划线重命名)。
dir=$(dirname "$0")
exec "${dir}"/MyTones_ "$@" 2>>/tmp/MyTones.log
我已经设置了适当的权限(或者我认为是这样)...我已经将它们基于 Cydia.app 权限,我得到的只是:
AVAssetExportSessionStatus失败: 错误域=NSURLErrorDomain 代码=-3000“无法创建文件” 用户信息=0xa79750 {NSUnderlyingError=0xa79860“ 操作无法完成。 (操作系统状态错误-12115。)”, NSLocalizedDescription=无法创建 文件}
有什么建议吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不关心这个错误,但我只会列出我成功所做的一切。
chmod 将运行脚本更改为 755(显而易见)
将应用程序二进制文件更改为 4755 并 chown 为 0:0(root)
设置 Info.plist 来启动运行脚本,而不是应用程序二进制文件(同样,很明显)
尝试将脚本更改为:(日志文件并不是绝对必要的)
dir=$(目录名“$0”)
exec "${dir}"/AppBinary
这就是我所做的一切,而且效果很好。
当然,我们这里讨论的是越狱,Apple 永远不会允许在 AppStore 中出现这种情况。
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.