Hello,想请教一下关于安卓system目录的权限问题。

我这边用的Edge,系统是安卓7.1,现在发现system,挂载为只读,我用su取得root权限,mount -o remount,rw /system也不能挂载为可读写,想请教一下,是否有其他方式可以挂载为可读写。

看你想做什么, 一般用
adb root
adb remount 就能直接操作了

================参考===========
adb push 失败提示 ‘Read-only file system’

$ adb push ./xxx /xxx/
failed to copy ‘./xxx’ to ‘/xxx/xxx’: Read-only file system

解决方法:

$ adb root
restarting adbd as root
$ adb remount
remount succeeded
$ adb push ./libbacktrace.so /system/lib/
2783 KB/s (58588 bytes in 0.020s)

已经按照上面的步骤做了,还是提示 ‘Read-only file system’怎么办

$ adb shell

mount

/dev/block/by-name/android_system /system ext4 ro,seclabel,relati me,data=ordered 0 0
可以看到/system还是只读属性‘ro’,接下来我们把它remount成rw

mount -o remount -o rw /system

mount

/dev/block/by-name/android_system /system ext4 rw,seclabel,relati me,data=ordered 0 0

tips:
先 adb root 再adb remount 否则会出现下面的情况

$ adb remount
remount of system failed: Permission denied
remount failed

可能需要adb reboot 注意看命令行中的提示

总结:

adb shell

mount -o remount -o rw /system

mount

remount

Android手机如何pull和push系统根目录下的init.rc文件
mount -o rw -o remount /dev/block/actb /
之后,就可以adb pull/push init.rc文件了

============参考2=========================
从电脑上push/pull文件到根目录

adb shell

mount -o rw -o remount /dev/block/actb /

(CTRL+C退出)

adb pull /init.rc C:\init.rc

adb push C:\init.rc /init.rc

1 Like

@xyzijk
I use VIM3 devices verify still failure.
adb_shell_mount_error_message