android emulator sdk 10 api 29 重新挂载并重启后无法启动
Posted
技术标签:
【中文标题】android emulator sdk 10 api 29 重新挂载并重启后无法启动【英文标题】:android emulator sdk 10 api 29 won't start after remount and reboot 【发布时间】:2020-07-07 03:03:03 【问题描述】:在尝试使用 SDK 10 和 API 29 重新安装设备时,我遇到了奇怪的行为,在重新安装模拟器后挂起(设备脱机) 复制:
操作系统:MacOs 使用 android studio 定义新设备:pixel 2(或 pixel 3/nexus 5),Android 10.0 x86,API 29 使用命令行启动模拟器:emulator -avd Pixel_2_API_29_SDK10 -writable-system -verbose
运行adb -s emulator-5554 root
运行adb -s emulator-5554 remount
The adb remmount result failure as follow:
adb remount
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
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
W DM_DEV_STATUS failed for scratch: No such device or address
E [liblp]No device named scratch
[liblp]Partition scratch will resize from 0 bytes to 536870912 bytes
[liblp]Updated logical partition table at slot 0 on device /dev/block/by-name/super
[libfs_mgr]Created logical partition scratch on device /dev/block/dm-3
[libfs_mgr]__mount(source=/dev/block/dm-3,target=/mnt/scratch,type=f2fs)=0: Success
Skip mounting partition: /product
Skip mounting partition: /product_services
Using overlayfs for /vendor
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
[libfs_mgr]__mount(source=overlay,target=/vendor,type=overlay,upperdir=/mnt/scratch/overlay/vendor/upper)=0
Skip mounting partition: /product
Skip mounting partition: /product_services
/system/bin/remount exited with status 7
remount failed
运行:adb -s emulator-5554 reboot
adb reboot
导致模拟器挂起
➜ ~ adb devices
List of devices attached
emulator-5554 offline
【问题讨论】:
这能回答你的问题吗? Is adb remount broken on android api 29? 【参考方案1】:我成功了
adb root
adb shell avbctl disable-verification
adb reboot
adb root
adb remount
【讨论】:
如果它不起作用,请使用 -writable-system 运行模拟器。以上是关于android emulator sdk 10 api 29 重新挂载并重启后无法启动的主要内容,如果未能解决你的问题,请参考以下文章
DJI Mobile SDK,Android Studio Emulator SDK注册失败
我尝试使 android studio (emulator) 与 vs-code 一起工作,但出现错误“Android SDK 中缺少 avdmanager”
处理Android SDK 29及以上版本,读取不到/storage/emulated/0/(/storage/sdcard/)路径下文件问题
android SDK- 使用 AVD Manager.exe 创建虚拟机遇到报错 emulator - arm.exe 已停止工作 我的解决方案,记录下
android SDK- 使用 AVD Manager.exe 创建虚拟机遇到报错 emulator - arm.exe 已停止工作 我的解决方案,记录下