android adb shell su not found,android - adb shell su works but adb root does not - Stack Overflow

本文探讨了如何替换ADB二进制文件以增强权限,涉及到Boot.img的重新编译,并提到了Samsung设备的特殊性。还提到了在锁定Bootloader的情况下无法进行此操作。另外,介绍了Chainfire的App,该App可在Play商店中授予ADB root权限。最后,讨论了使用SU权限在Windows脚本中写入文件的方法,并指出首次运行时需要手动授予手机上的SU权限。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

You need to replace the adbd binary in the boot.img/sbin/ folder to one that is su capable. You will also have to make some default.prop edits too.

Samsung seems to make this more difficult than other vendors. I have some adbd binaries you can try but it will require the knowledge of de-compiling and re-compiling the boot.img with the new binary. Also, if you have a locked bootloader... this is not gonna happen.

Also Chainfire has an app that will grant adbd root permission in the play store: https://play.google.com/store/apps/details?id=eu.chainfire.adbd&hl=en

Lastly, if you are trying to write a windows script with SU permissions you can do this buy using the following command style... However, you will at least need to grant (on the phone) SU permissions the frist time its ran...

adb shell "su -c ls"

adb shell "su -c echo anytext > /data/test.file"

These are just some examples. If you state specifically what you are trying to accomplish I may be able to give more specific advice

-scosler

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值