试图获得对Android 系统的rw访问权限

试图获得对Android 系统的rw访问权限,第1张

概述使用最新的股票rom.imgforgoogle(occam)处理Nexus4的根脚本,我有以下代码片段:./adbwait-for-deviceecho"remountingsystem"./adbshell"mount-oremount,rw/system"./adbpushsu/system/bin/echo"pushingsuperuser"./adbpushSuperuser.apk @H_502_0@使用最新的股票rom .img for Google(occam)处理Nexus 4的根脚本,我有以下代码片段:

@H_502_0@

./adb wait-for-deviceecho "remounting system"./adb shell "mount -o remount,rw /system"./adb push su /system/bin/echo "pushing super user"./adb push Superuser.apk /system/app/echo "pushing busyBox"./adb push busyBox /system/xbin/./adb shell "chmod 06755 /system/bin/su"./adb shell "chmod 0644 /system/app/Superuser.apk"./adb shell "chmod 04755 /system/xbin/busyBox"./adb shell "cd /system/xbin"./adb shell "busyBox --install /system/xbin/"
@H_502_0@我一直在收到错误

@H_502_0@

mount: Operation not permittedFailed to copy 'su' to '/system/bin//su': Read-only file systempushing super userFailed to copy 'Superuser.apk' to '/system/app//Superuser.apk': Read-only file systempushing busyBoxFailed to copy 'busyBox' to '/system/xbin//busyBox': Read-only file systemUnable to chmod /system/bin/su: No such file or directoryUnable to chmod /system/app/Superuser.apk: No such file or directoryUnable to chmod /system/xbin/busyBox: No such file or directory/system/bin/sh: busyBox: not found
@H_502_0@我尝试过使用多种获取r / w访问的方法,但似乎没有任何工作.我必须自动执行此过程,因为其他人将使用脚本,因此它需要自动化,但我无法弄清楚这一点.

@H_502_0@我也试过了

@H_502_0@

#su#mount#mount | grep system
@H_502_0@然后输入具有系统挂载的分区并将其更改为r / w访问,但这也没有奏效.

@H_502_0@在这一点上真的很沮丧.有人可以帮忙吗?

解决方法:

@H_502_0@它给出了错误,因为你不是root.系统分区以只读方式挂载.您可以尝试将二进制文件推送到/ data / local / tmp.然后你可以使su可执行并最终运行它.但这并不意味着你可以拥有root.要成为root用户,您需要将像psneuter这样的漏洞利用到/ data / local / tmp并运行它.它崩溃shell并重新打开一个具有root权限的新shell.然后你可以重新安装系统分区读写并安装su.

总结

以上是内存溢出为你收集整理的试图获得对Android /系统的r / w访问权限全部内容,希望文章能够帮你解决试图获得对Android /系统的r / w访问权限所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1110257.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存