Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android emulator sdk 10 api 29 won't start after remount and reboot

I'm running into strange behaviour when trying to remount device with SDK 10 and API 29, after the remount the emulator hang (device offline) To reproduce:

  • OS: MacOs
  • Using android studio define new device: pixel 2 (or pixel 3/nexus 5), Android 10.0 x86, API 29
  • start the emulator using command line: emulator -avd Pixel_2_API_29_SDK10 -writable-system -verbose
  • run adb -s emulator-5554 root
  • run 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
  • run: adb -s emulator-5554 reboot the adb reboot cause the emulator to hang
➜  ~ adb devices
List of devices attached
emulator-5554   offline
like image 491
Eyal.C Avatar asked Mar 26 '20 13:03

Eyal.C


People also ask

How do I remount an Android emulator?

To remedy this, use the -writable-system option when you start the Android emulator. Issuing adb remount afterward should then allow you to push to /system until you reboot or remount read-only again.

What do I do if my Android emulator is not working?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

Why emulator is not opening?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

What does adb remount do?

adb remount put /system partition in writable mode. By default /system is only readable. It could only be done on rooted device. It must be done before pushing file on /system partition.


1 Answers

I succeded with

adb root
adb shell avbctl disable-verification
adb reboot
adb root
adb remount 
like image 195
Miruna Radu Avatar answered Nov 13 '22 16:11

Miruna Radu