adb shell su works but adb root does not

前端 未结 8 1049
刺人心
刺人心 2020-11-30 23:47

I rooted my unlocked Galaxy S3 (SGH-T999)

Now, I\'m trying to run adb root from Windows Command Prompt, however, I\'m getting adbd cannot

8条回答
  •  我在风中等你
    2020-12-01 00:19

    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" <-list working directory with su rights. 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

提交回复
热议问题