使用mount挂载system目录为读写权限

1,获取system分区全名:

命令入下:

adb shell
mount | grep “system”

执行结果如下(当前权限为ro,即read only):

/dev/block/platform/sdhci-tegra.3/by-name/system1 /system ext4 ro,seclabel,relatime,data=ordered 0 0

2,重新挂载system权限:

命令如下:

mount -o remount,rw /dev/block/platform/sdhci-tegra.3/by-name/system1 /system

3,重新验证system权限:

命令如下:

mount | grep “system”

执行结果如下(当前权限为rw,即read write):

/dev/block/platform/sdhci-tegra.3/by-name/system /system ext4 rw,seclabel,relatime,data=ordered 0 0

4,恢复system权限为read only:

命令如下:

mount -o remount,ro /dev/block/platform/sdhci-tegra.3/by-name/system1 /system

你可能感兴趣的:(Android)