A terminal command for a rooted Android to remount /System as read/write

前端 未结 9 2190
离开以前
离开以前 2020-12-04 10:16

I\'m writing an android app that needs to copy a file to the \"/system\" partition at runtime. I\'ve got the commands to run \"su\" and can successfully request SuperUser pe

9条回答
  •  悲哀的现实
    2020-12-04 10:43

    This is what works on my first generation Droid X with Android version 2.3.4. I suspect that this will be universal. Steps:

    1. root system and install su.

    2. Install busybox

    3. Install a terminal program.

    4. to mount system rw first su then

      busybox mount -o rw,remount system
      
    5. To remount ro

      busybox mount -o ro,remount system
      

    Note that there are no slashes on "system".

提交回复
热议问题