How can I remount my Android/system as read-write in a bash script using adb?

后端 未结 8 1274
半阙折子戏
半阙折子戏 2020-12-23 17:27

For info

adb remount 

returns \"remount failed: Operation not permitted\"

adb shell \'su -c  mount -o rw,remo         


        
8条回答
  •  天涯浪人
    2020-12-23 18:04

    Otherwise... if

    getenforce
    

    returns

    Enforcing
    

    Then maybe you should call

    setenforce 0 
    mount -o rw,remount /system 
    setenforce 1
    

提交回复
热议问题