Launch a script as root through ADB

后端 未结 6 1041
眼角桃花
眼角桃花 2020-12-02 15:57

I have created a script to mount partitions and do some stuff in my Android system. I saved the script as install.sh in the /bin folder of Android.

I want to call th

6条回答
  •  甜味超标
    2020-12-02 16:37

    but it does not work as it gives me a shell access (with root permissions), but nothing is executed.

    How do you know that you are given root permissions? I assume you are attempting to execute the script on a device? Has your device been rooted?

    You may need to give execute permissions via chmod to the file.

    chmod ugo=rwx /bin/script.sh
    

提交回复
热议问题