启用根访问
我正在尝试在 BeagleBoard 之类的设备上进行一些 Android 系统集成。我拥有完整的文件系统访问权限,因为我可以读取/写入/格式化托管 boot 和 rootfs 分区的 CF 卡。例如,我可以轻松修改 init.rc 以在设备启动期间执行任意命令。
基于此,如何为设备上的用户启用root访问权限?如果这是不可能的,我如何设置 dropbear SSH(或任何其他服务),使其以 root 权限运行? z4root 不起作用,我确信一定有更好的方法来提供完整的文件系统访问权限。这就是 Android 2.2 (Froyo) 的价值所在。
I'm attempting some Android system integration on a BeagleBoard like device. I have complete file system access as I can read/write/format the CF card hosting the boot and rootfs partitions. For example, I can easily modify init.rc to execute arbitrary commands during the device bootup.
Based on this, how can I enable root access for the user on the device? If that's not possible, how can I setup dropbear SSH (or any other service) such that it runs with root privileges? z4root does not work, and I'm sure there must be a better method given complete file system access. This is Android 2.2 (Froyo) for what it's worth.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
修改 default.prop 文件以将 ro.secure 设置为 0 将使 adb shell 以 root 身份运行,就像在模拟器或开发设备上通常所做的那样。
因为这不是 Android 架构师设想的情况,所以您可能会在桌面 Linux 上发现“有时”“出于某些目的”为您提供 root 权限的解决方案不一定是开发良好的,但您也许可以借用一些东西来自社区 rom 之一的来源,例如氰基。
Modifying the default.prop file to set ro.secure to 0 will let the adb shell run as root as it typically does on the emulator or a development device.
Because it's not a case envisioned by the android architects, solutions that give you root "some of the time" "for some purposes" as you might find on a desktop linux box are not necessarily well developed, but you may be able to borrow something from the sources of one of the community roms such as cyanogen.