有什么理由需要root来开发应用程序吗?

发布于 2024-12-04 03:23:56 字数 184 浏览 1 评论 0原文

正如问题所说。我很好奇,因为我的开发手机也将是我的日常手机(Galaxy S2),所以我当然想确保我有充分的理由取消保修。

是不是也可以简单的逆root而不把手机变砖呢?取消root会被检测到吗?或者它看起来会像之前一样吗?另外,取消 root 对已安装的需要 root 的应用程序有何影响?难道他们只是在手机再次root之前无法启动吗?

Just as the question says. I was curious because my development phone will also be my everyday phone (Galaxy S2) so of course I would want to be sure I'm voiding my warranty for a good reason.

Is it also simple to reverse roots without bricking the phone. Will unrooting be detectable, or will it look as it did beforehand? Also, what does unrooting do to installed apps that require root? Are they merely unable to launch until the phone is rooted again?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

救星 2024-12-11 03:23:56

我在工作开发时使用两部手机:我的个人手机(EVO)和我雇主购买的手机(Fascinate)。我大部分时间都花在 EVO 上的开发和测试上,因为它是固定的。没有 root 的情况下,你失去的主要问题是无法访问 /data,这在调试时可能会很痛苦。 Root 还可以让您轻松地从市场安装 busybox,其中包含许多有用的工具(例如 grepcp)。

举个例子:如果您将任何数据保存到应用的默认文件目录,它将位于 /data/data//files 中。当加载存储在文件中的数据时尝试调试问题会变得非常令人讨厌,因为您实际上无法看到文件的内容,但您没有权限在没有 root 的情况下查看它。对于您为应用创建的任何数据库也是如此(默认情况下它们位于 /data/data//databases 中)。

因此,以我个人/专业的观点,至少拥有一台具有 root 权限的设备进行开发会很有帮助,这样您就可以访问您无权查看的文件和目录。

I have two phones that I use when developing at work: my personal phone (an EVO) and a phone my employer bought (a Fascinate). I spend most of my time developing and testing on my EVO because it's rooted. The main thing that you lose without root is that you can't access /data, which can be a pain when debugging. Root also lets you easily install busybox from the Market, which contains a lot of useful tools (like grep and cp).

As an example: if you save any data to your app's default file directory, it will live in /data/data/<package_name>/files. Trying to debug an issue when loading data that's stored in a file gets hugely obnoxious when you can't actually see the contents of the file, but you won't have permission to view it without root. The same is true of any databases that you create for an app (they live in /data/data/<package_name>/databases by default).

So in my personal/professional opinion, it's helpful to have at least one rooted device for development so that you can access files and directories you would otherwise not have permission to see.

扎心 2024-12-11 03:23:56

我认为 eldarerathis 已经充分回答了你的标题问题,所以让我来解决剩下的问题。

Galaxy S II 很容易取消 root,这主要归功于一个名为 Odin 的工具。您可以轻松刷新原始无根固件并清除手机上当前的所有内容(请参阅此 XDA 指南)。它可以通过其他方法取消root,同时保持所有数据和应用程序完好无损(请参阅XDA 上的 root/unroot 方法)。

取消 root 对使用 root 的应用程序绝对没有任何作用。有些会失败,有些会告诉您它们无法使用,另一些则可以工作,直到您尝试执行需要 root 的操作。它们都可以启动,因为启动不需要 root。

eldarerathis has sufficiently answered your title question, I think, so let me address the rest.

The Galaxy S II is quite easy to unroot, largely because of a tool called Odin. You can flash the original unrooted firmware easily and blow away everything currently on the phone (see this XDA guide). It can be unrooted via other methods that leave all of your data and apps intact, as well (see this root/unroot method over on XDA).

Unrooting does absolutely nothing to apps that use root. Some will fail, some will tell you they can't be used, others will work until you try to do something that requires root. They can all be launched, since launching doesn't require root.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文