为什么即使在我越狱后,iOS 6.1.1中的SandBox仍然存在? [英] Why SandBox in iOS 6.1.1 still exists for App even after I have jailbreak?

查看:129
本文介绍了为什么即使在我越狱后,iOS 6.1.1中的SandBox仍然存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装的应用程序使用Ad-hoc证书进行签名。但它仅适用于越狱 iPhone。

My installed App is signed with an Ad-hoc certificate. But it is designed only for jailbreak iPhones.

我尝试直接读取 / var / mobile中的SMS数据库/Library/SMS/sms.db 。但我发现应用程序无法读取它,因为SandBox进程拒绝了该操作。所以我的问题是iPhone被越狱后是否删除了SandBox?

I try to directly read the SMS database in /var/mobile/Library/SMS/sms.db. But I found the app can't read it because the SandBox process denied the action. So my question is whether the SandBox is removed after the iPhone is jailbroken?

(现在我认为 / var / mobile / Applications / 中的应用仍然受到SandBox的限制。越狱过程没有删除这个目录中的SandBox?)

(And now I think the apps in /var/mobile/Applications/ are still restricted by the SandBox. The process of jailbreaking does not removed the SandBox in this directory?)

推荐答案

不幸的是,你猜错了。在越狱设备上,安装到正常位置的应用程序( / var / mobile / Applications / )仍然是沙箱(*请参阅下面的评论)。

Unfortunately, you guessed correctly. On a jailbroken device, apps installed to the normal location (/var/mobile/Applications/) are still sandboxed (* see comments below).

越狱不能完全删除沙箱

它允许你运行未由有效Apple证书签名的代码。因此,它还允许您将应用安装到不同的位置。

It allows you to run code that's not signed by valid Apple certificates. It therefore also allows you to install your app to different locations.

如果您将应用安装到 / Applications / 但是,它将能够读取 /var/mobile/Library/SMS/sms.db ,因为我描述了在这个答案中。作为系统应用程序,您将位于沙箱之外。

If you install your app to /Applications/, however, it will be able to read /var/mobile/Library/SMS/sms.db, as I describe in this answer. As a system app, you'll be outside the sandbox.

这与Objective-C或Cocoa Touch无关C API。如果你所要做的只是使用众所周知的CI / O调用来逃避它,那就不会是沙盒了。

This has nothing to do with Objective-C, or Cocoa Touch, versus C APIs. It wouldn't be much of a sandbox if all you had to do was use well-known C I/O calls to escape it.

查看其他类似的答案(对于已结束的问题),进行一些相关讨论。

See this other similar answer (to a closed question), for some related discussion.

更新:请参阅saurik的评论在这个在线主题。总结是不同的越狱(例如evasi0n,Absinthe,redsn0w)可以以不同的方式影响沙箱。 Saurik的建议肯定是他们完全删除。

Update: see saurik's comments in this online thread. The summary is that different jailbreaks (e.g. evasi0n, Absinthe, redsn0w) can affect the sandbox in different ways. Saurik's recommendation is certainly that they not be removed entirely.

这篇关于为什么即使在我越狱后,iOS 6.1.1中的SandBox仍然存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆