adb重新安装失败-挂载:“系统”不在/ proc / mounts中

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)

  • 遗憾的是,当我运行此命令时,我得到“/dev/block/dm-4”是只读的 (7认同)
  • 泪水。```mount: '/dev/block/dm-0' 用户无法在 fstab 中安装``` (5认同)
  • 为我工作:) (2认同)

小智 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)

  • 在第二个命令中,我得到“/system/bin/sh: avbctl: not found” (7认同)
  • `/system/bin/sh: avbctl: 无法访问或未找到` (3认同)

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。

  • 这个答案基本上重复了第一个。两者的主要问题是降低 API 级别并不是面向未来的解决方案。另外,请提供一些来源,说明 Android Q 上“不支持”这样做。 (4认同)

par*_*ite -3

我在使用 Android API 时遇到了这个问题28

解决方法是使用较低版本的 Android API 级别24。之后一切正常。

ADV

$ 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 次

最近记录:

6 年,9 月 前