提问者:小点点

亚行重新挂载在android api 29上坏了吗?


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

共2个答案

匿名用户

我用模拟器启动模拟器-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)!

    • 我在Google的问题跟踪器中发现了一个存在的问题。

    我尝试按照这些说明禁用-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不会重新启动。