Nir*_*ali 7 bash android mount adb
我尝试了stackoverflow和在线中可用的所有命令和建议,但没有一个起作用
还有很多,但对我没有用
我收到以下错误-以下命令均无效。
$adb root
$adb disable-verity
Run Code Online (Sandbox Code Playgroud)
对于
$adb remount
remount of / failed: Permission denied
remount failed
Run Code Online (Sandbox Code Playgroud)
所以然后我尝试了不同的命令
$ adb shell mount -o rw,remount /system
mount: '/system' not in /proc/mounts
$ adb shell mount -o rw,remount /
'/dev/root' is read-only
$ adb shell mount -o rw,remount -t /dev/block/stl12 system
mount: 'system' not in /proc/mounts
$ adb shell "su 0 mount -o rw,remount /system"
mount: '/system' not in /proc/mounts
$ adb shell
$ su
# mount -o rw,remount /system
mount: '/system' not in /proc/mounts
Run Code Online (Sandbox Code Playgroud)
小智 18
我有同样的问题。解决方案是挂载根(/)。在此之后,您可以写入 /system。
mount -o rw,remount /
Run Code Online (Sandbox Code Playgroud)
不要忘记将状态重置为“ro”。
mount -o ro,remount /
Run Code Online (Sandbox Code Playgroud)
小智 14
> adb root
> adb shell avbctl disable-verification
Successfully disabled verification. Reboot the device for changes to take effect.
> adb disable-verity
using overlayfs
Successfully disabled verity
Now reboot your device for settings to take effect
> adb reboot
> adb root && adb remount
remount succeeded
> adb push ScreenCap.apk /system/app/
ScreenCap.apk: 1 file pushed. 33.1 MB/s (1640812 bytes in 0.047s)
> adb reboot
Run Code Online (Sandbox Code Playgroud)
nie*_*tel 13
(Android Q 模拟器solution)
> emulator -avd Pixel_3a_XL_API_30 -writable-system
> adb shell avbctl disable-verification
> adb disable-verity
> adb root
> adb remount
> adb shell "su 0 mount -o rw,remount /system"
Run Code Online (Sandbox Code Playgroud)
小智 6
如果您收到 /system not in /proc/mounts 错误,则您的设备系统分区未安装任何目录。写入系统分区受到限制。
如果您使用的是模拟器,请下载以前版本的系统映像。
截至目前,Android Q 不支持写入系统分区,因此请改用 android pie。
par*_*ite -3
我在使用 Android API 时遇到了这个问题28。
解决方法是使用较低版本的 Android API 级别24。之后一切正常。
$ adb shell
generic_x86:/ # mount -o rw,remount /system
generic_x86:/ # exit
[~]
$ adb push /etc/hosts /system/etc/hosts
/etc/hosts: 1 file pushed. 2.2 MB/s (7458 bytes in 0.003s)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4660 次 |
| 最近记录: |