adb remount
从模拟器运行时在api 29上无法正常工作。该命令在所有其他已尝试过的模拟器(18、23、25、26、27和28)上运行良好。
知道为什么会这样吗?
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
W Disabling verity for /system
E Skipping /system
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
Skip mounting partition: /product
Skip mounting partition: /product_services
/system/bin/remount exited with status 7
remount failed
我用模拟器启动模拟器-avdPixel_3a_XL_API_29可写系统-no-snapshot-load
我发现很多ppl遇到模拟器冻结和无法启动android如果你尝试
$ adb root
$ adb disable-verity
$ adb reboot <--- By now emulator is freezed
那你可以试试这个
$ adb root
$ adb shell avbctl disable-verification <--- this will not freeze the emulator
$ adb reboot
当模拟器重新启动时尝试重新挂载将没有问题
adb root
adb remount
adb push
将能够在system
目录上编写
参见@KiddDon答案,这似乎是一个实际的解决方案
>
即使API30(APIR),此问题仍然存在!甚至在使用可写系统选项启动模拟器时:(模拟器-可写系统-avdNAME_OF_DEVICE
)!
我尝试按照这些说明禁用-verity并在重新挂载之前重新启动
注意:我在使用带有“AVD”提供的“Android Sdk图像”的模拟器时遇到了当前问题。但是,这种图像可能会受到一些限制。所以其他类型的Android图像可能不会发生这种情况
$ adb root
$ adb disable-verity
$ adb reboot
$ adb wait-for-device
$ adb root
$ adb remount
$ adb shell stop
$ adb sync
$ adb shell start
$ adb reboot
$ adb push <source> <destination>
$ adb reboot
$ adb disable-verity
$ adb reboot
$ adb remount -R
注意:如果设备已经处于adb remount状态,则-R不会重新启动。