Closed flowenol closed 2 years ago
Thank you for flagging this! We can repro this issue and are looking in to fixes. Will share any workarounds if they become available
For a workaround, we do see this image loads as expected with the canary version of the emulator- if you use any preview version (Beta or Canary) for Android Studio you should be getting the latest emulator version.
Thank you for this workaround! Indeed, the system image boots on the preview versions with the latest emulator. However, I have noticed that the emulator crashes and freezes on reboot requests. This doesn't happen on other system images. It might seem to be not that important, but some of my experiments are based on Magisk installation which requires device reboot. This is certainly not a Magisk issue - fresh, untouched device crashes as well.
Below are the excerpts from emulator logs after the reboot request:
ERROR | crashhandler_die: fatal: FATAL: color buffer with handle 4 already exists
ERROR | detected a hanging thread 'QEMU2 main loop'. No response for 105080 ms
ERROR | detected a hanging thread 'QEMU2 CPU0 thread'. No response for 105080 ms
To clarify, all my experiments work well with the TiramisuPrivacySandbox system image on x86_64, only arm64 looks to be affected.
Just to clarify this is not just an Apple Silicon issue. I am not able to boot the emulator on my intel base Mac:
emulator:Android emulator version 26.0.3.0 (build_id 3965150)
emulator:Found AVD name 'TiramisuPrivacySandbox'
emulator:Found AVD target architecture: x86_64
emulator:argv[0]: 'emulator'; program directory: '/Users/lev/Library/Android/Sdk/tools'
emulator: Found directory: /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64/
emulator:Probing for /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//kernel-ranchu: file exists
emulator:Auto-config: -engine qemu2 (based on configuration)
emulator: Found directory: /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64/
emulator:try dir /Users/lev/Library/Android/Sdk/tools
emulator:try dir .
emulator:try dir ../emulator
emulator:Found target-specific 64-bit emulator binary: /Users/lev/Library/Android/sdk/tools/../emulator/qemu/darwin-x86_64/qemu-system-x86_64
emulator:Adding library search path: '../emulator/lib64'
emulator:Adding library search path: '../emulator/lib64/gles_swiftshader'
emulator:Adding library search path: '../emulator/lib64/gles_angle'
emulator:Adding library search path: '../emulator/lib64/gles_angle9'
emulator:Adding library search path: '../emulator/lib64/gles_angle11'
emulator: Adding library search path for Qt: '../emulator/lib64/qt/lib'
emulator: Setting Qt plugin search path: QT_QPA_PLATFORM_PLUGIN_PATH=../emulator/lib64/qt/plugins
emulator: Running :/Users/lev/Library/Android/sdk/tools/../emulator/qemu/darwin-x86_64/qemu-system-x86_64
emulator: qemu backend: argv[00] = "/Users/lev/Library/Android/sdk/tools/../emulator/qemu/darwin-x86_64/qemu-system-x86_64"
emulator: qemu backend: argv[01] = "-avd"
emulator: qemu backend: argv[02] = "TiramisuPrivacySandbox"
emulator: qemu backend: argv[03] = "-verbose"
emulator: qemu backend: argv[04] = "-show-kernel"
emulator: Concatenated backend parameters:
/Users/lev/Library/Android/sdk/tools/../emulator/qemu/darwin-x86_64/qemu-system-x86_64 -avd TiramisuPrivacySandbox -verbose -show-kernel
VERBOSE | autoconfig: -skin pixel_4
VERBOSE | autoconfig: -skindir /Users/lev/Library/Android/sdk/skins/
VERBOSE | autoconfig: -kernel /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//kernel-ranchu
VERBOSE | Target arch = 'x86_64'
VERBOSE | Auto-detect: Kernel image requires new device naming scheme.
VERBOSE | Auto-detect: Kernel does not support YAFFS2 partitions.
VERBOSE | autoconfig: -ramdisk /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//ramdisk.img
VERBOSE | Using initial system image: /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//system.img
VERBOSE | Using initial vendor image: /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//vendor.img
VERBOSE | autoconfig: -data /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/userdata-qemu.img
VERBOSE | autoconfig: -initdata /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/userdata.img
VERBOSE | autoconfig: -cache /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/cache.img
VERBOSE | autoconfig: -sdcard /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/sdcard.img
VERBOSE | Increasing RAM size to 2048MB
VERBOSE | VM heap size 256MB is below hardware specified minimum of 512MB,setting it to that value
VERBOSE | System image is read only
VERBOSE | Found 1 DNS servers:
VERBOSE | 192.168.1.1
WARNING | unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
VERBOSE | Unexpected feature list:
VERBOSE | VirtioSndCard
VERBOSE | trying to load skin file '/Users/lev/Library/Android/sdk/skins//pixel_4/layout'
VERBOSE | CPU Acceleration: working
VERBOSE | CPU Acceleration status: HAXM version 7.6.5 (4) is installed and usable.
VERBOSE | handleCpuAcceleration: feature check for hvf
VERBOSE | Bluetooth requested by guest
VERBOSE | started modem simulator host server at port: 65379
INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_new_posture_requested(int) ((null):0, (null))
INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_dismiss_posture_selection_dialog() ((null):0, (null))
INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_new_resizable_requested(PresetEmulatorSizeType) ((null):0, (null))
INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_dismiss_resizable_dialog() ((null):0, (null))
VERBOSE | GPU emulation enabled using 'host' mode
VERBOSE | Initializing hardware OpenGLES emulation support
VERBOSE | create display 0
VERBOSE | setDisplayPose 0 x 0 y 0 w 1080 h 2280 dpi 0
INFO | configAndStartRenderer: setting vsync to 60 hz
WARNING | cannot add library /Users/lev/Library/Android/sdk/emulator/qemu/darwin-x86_64/lib64/vulkan/libvulkan.dylib: failed
INFO | Sending adb public key [QAAAAClrg7/nnu/h/JCFarn05IkzPZigrBJTs/fWcYdjbNYE8QPWF+KmkcC4NfN3MbPrMsjFStvilEaIm3ZZi5Twya4012lkuOtvKph5NT91TESmlMw9/TCKe04GvRTkcI+y3pju1lroerb9QRCA6a4i9iNQap7J/jsCn+vPoqPunTvGseBu4kTaJ67ovnZIIdgpxSdfwRp5Vatp1lWVyw1kZ/pytZTRyunMlIYs2og7jnkn4VTWKbF5PhTt/nKqkNXQvVu4145H/bkm1homxuluOqCD+2ioaY3dlOXJT+IrkwWC/y2Y/Jp3HbWK1HzjLUy3TuzdAk0Nvtp76/m88xfRM7rZ3SfNWT+oVazNeQ4D/J+XJ/qY5oYBZX2lSYSVHo3LvymBEsitEPrqP9sqRG0HG161IxHOba3vov3O+P+s15YSorUmAPJRkG1ro6mYNBCENd7vZua8ysqkgCxD9BZkoGAmHQN9uWZu+X/3l2nkHYUDTsarU/dB7zCa4Wa08nOWLBl9EsCNqtZ5348F47BG/Tbwc3hwobhWLxJSNMG2K5SlgmfTiLLmatlNx3NDDGiHZwyjVtynN4m0qVVmcV68iVYxzvDohJETG7hWjw3lSeE1wYgZHMmUk8XnnBxYDvR8jOkAclFKu//jUzcQdcwYu2QCQ7Bq2VogZwFQvfr1pVr4TFY6tgEAAQA= lev@unknown]
INFO | added library ../emulator/lib64/vulkan/libvulkan.dylib
VERBOSE | Found 1 DNS servers:
VERBOSE | 192.168.1.1
INFO | Content of hardware configuration file:
INFO | hw.cpu.arch = x86_64
INFO | hw.cpu.ncore = 4
INFO | hw.ramSize = 2048
INFO | hw.screen = multi-touch
INFO | hw.mainKeys = false
INFO | hw.trackBall = false
INFO | hw.keyboard = true
INFO | hw.keyboard.lid = false
INFO | hw.keyboard.charmap = qwerty2
INFO | hw.dPad = false
INFO | hw.rotaryInput = false
INFO | hw.gsmModem = true
INFO | hw.gps = true
INFO | hw.battery = true
INFO | hw.accelerometer = true
INFO | hw.gyroscope = true
INFO | hw.audioInput = true
INFO | hw.audioOutput = true
INFO | hw.sdCard = true
INFO | hw.sdCard.path = /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/sdcard.img
INFO | disk.cachePartition = true
INFO | disk.cachePartition.path = /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/cache.img
INFO | disk.cachePartition.size = 66m
INFO | test.quitAfterBootTimeOut = -1
INFO | test.delayAdbTillBootComplete = 0
INFO | test.monitorAdb = 0
INFO | hw.lcd.width = 1080
INFO | hw.lcd.height = 2280
INFO | hw.lcd.depth = 16
INFO | hw.lcd.density = 440
INFO | hw.lcd.backlight = true
INFO | hw.lcd.vsync = 60
INFO | hw.gltransport = pipe
INFO | hw.gltransport.asg.writeBufferSize = 1048576
INFO | hw.gltransport.asg.writeStepSize = 4096
INFO | hw.gltransport.asg.dataRingSize = 32768
INFO | hw.gltransport.drawFlushInterval = 800
INFO | hw.displayRegion.0.1.xOffset = -1
INFO | hw.displayRegion.0.1.yOffset = -1
INFO | hw.displayRegion.0.1.width = 0
INFO | hw.displayRegion.0.1.height = 0
INFO | hw.displayRegion.0.2.xOffset = -1
INFO | hw.displayRegion.0.2.yOffset = -1
INFO | hw.displayRegion.0.2.width = 0
INFO | hw.displayRegion.0.2.height = 0
INFO | hw.displayRegion.0.3.xOffset = -1
INFO | hw.displayRegion.0.3.yOffset = -1
INFO | hw.displayRegion.0.3.width = 0
INFO | hw.displayRegion.0.3.height = 0
INFO | hw.display1.width = 0
INFO | hw.display1.height = 0
INFO | hw.display1.density = 0
INFO | hw.display1.xOffset = -1
INFO | hw.display1.yOffset = -1
INFO | hw.display1.flag = 0
INFO | hw.display2.width = 0
INFO | hw.display2.height = 0
INFO | hw.display2.density = 0
INFO | hw.display2.xOffset = -1
INFO | hw.display2.yOffset = -1
INFO | hw.display2.flag = 0
INFO | hw.display3.width = 0
INFO | hw.display3.height = 0
INFO | hw.display3.density = 0
INFO | hw.display3.xOffset = -1
INFO | hw.display3.yOffset = -1
INFO | hw.display3.flag = 0
INFO | hw.gpu.enabled = true
INFO | hw.gpu.mode = host
INFO | hw.initialOrientation = Portrait
INFO | hw.camera.back = virtualscene
INFO | hw.camera.front = emulated
INFO | vm.heapSize = 512
INFO | hw.sensors.light = true
INFO | hw.sensors.pressure = true
INFO | hw.sensors.humidity = true
INFO | hw.sensors.proximity = true
INFO | hw.sensors.magnetic_field = true
INFO | hw.sensors.magnetic_field_uncalibrated = true
INFO | hw.sensors.gyroscope_uncalibrated = true
INFO | hw.sensors.orientation = true
INFO | hw.sensors.temperature = true
INFO | hw.sensors.rgbclight = false
INFO | hw.sensor.hinge = false
INFO | hw.sensor.hinge.count = 0
INFO | hw.sensor.hinge.type = 0
INFO | hw.sensor.hinge.sub_type = 0
INFO | hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture = 1
INFO | hw.sensor.roll = false
INFO | hw.sensor.roll.count = 0
INFO | hw.sensor.roll.resize_to_displayRegion.0.1_at_posture = 6
INFO | hw.sensor.roll.resize_to_displayRegion.0.2_at_posture = 6
INFO | hw.sensor.roll.resize_to_displayRegion.0.3_at_posture = 6
INFO | hw.sensors.heart_rate = false
INFO | hw.sensors.wrist_tilt = false
INFO | hw.useext4 = true
INFO | hw.arc = false
INFO | hw.arc.autologin = false
INFO | hw.device.name = pixel_4
INFO | kernel.path = /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//kernel-ranchu
INFO | kernel.newDeviceNaming = yes
INFO | kernel.supportsYaffs2 = no
INFO | disk.ramdisk.path = /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//ramdisk.img
INFO | disk.systemPartition.initPath = /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//system.img
INFO | disk.systemPartition.size = 2808m
INFO | disk.vendorPartition.initPath = /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//vendor.img
INFO | disk.vendorPartition.size = 800m
INFO | disk.dataPartition.path = /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/userdata-qemu.img
INFO | disk.dataPartition.size = 6g
INFO | disk.encryptionKeyPartition.path = /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/encryptionkey.img
INFO | PlayStore.enabled = true
INFO | avd.name = TiramisuPrivacySandbox
INFO | avd.id = TiramisuPrivacySandbox
INFO | fastboot.forceColdBoot = false
INFO | android.sdk.root = /Users/lev/Library/Android/Sdk
INFO | android.avd.home = /Users/lev/.android/avd
INFO | .
INFO | QEMU options list:
INFO | argv[00] = "/Users/lev/Library/Android/sdk/tools/../emulator/qemu/darwin-x86_64/qemu-system-x86_64"
INFO | argv[01] = "-dns-server"
INFO | argv[02] = "192.168.1.1"
INFO | argv[03] = "-mem-path"
INFO | argv[04] = "/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/snapshots/default_boot/ram.img"
INFO | argv[05] = "-mem-file-shared"
INFO | argv[06] = "-serial"
INFO | argv[07] = "stdio"
INFO | argv[08] = "-device"
INFO | argv[09] = "goldfish_pstore,addr=0xff018000,size=0x10000,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/data/misc/pstore/pstore.bin"
INFO | argv[10] = "-cpu"
INFO | argv[11] = "android64"
INFO | argv[12] = "-enable-hvf"
INFO | argv[13] = "-smp"
INFO | argv[14] = "cores=4"
INFO | argv[15] = "-m"
INFO | argv[16] = "2048"
INFO | argv[17] = "-lcd-density"
INFO | argv[18] = "440"
INFO | argv[19] = "-nodefaults"
INFO | argv[20] = "-kernel"
INFO | argv[21] = "/Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//kernel-ranchu"
INFO | argv[22] = "-initrd"
INFO | argv[23] = "/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/initrd"
INFO | argv[24] = "-drive"
INFO | argv[25] = "if=none,index=0,id=system,if=none,file=/Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//system.img,read-only"
INFO | argv[26] = "-device"
INFO | argv[27] = "virtio-blk-pci,drive=system,modern-pio-notify"
INFO | argv[28] = "-drive"
INFO | argv[29] = "if=none,index=1,id=cache,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/cache.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
INFO | argv[30] = "-device"
INFO | argv[31] = "virtio-blk-pci,drive=cache,modern-pio-notify"
INFO | argv[32] = "-drive"
INFO | argv[33] = "if=none,index=2,id=userdata,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/userdata-qemu.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
INFO | argv[34] = "-device"
INFO | argv[35] = "virtio-blk-pci,drive=userdata,modern-pio-notify"
INFO | argv[36] = "-drive"
INFO | argv[37] = "if=none,index=3,id=encrypt,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/encryptionkey.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
INFO | argv[38] = "-device"
INFO | argv[39] = "virtio-blk-pci,drive=encrypt,modern-pio-notify"
INFO | argv[40] = "-drive"
INFO | argv[41] = "if=none,index=4,id=vendor,if=none,file=/Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//vendor.img,read-only"
INFO | argv[42] = "-device"
INFO | argv[43] = "virtio-blk-pci,drive=vendor,modern-pio-notify"
INFO | argv[44] = "-drive"
INFO | argv[45] = "if=none,index=5,id=sdcard,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/sdcard.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
INFO | argv[46] = "-device"
INFO | argv[47] = "virtio-blk-pci,drive=sdcard,modern-pio-notify"
INFO | argv[48] = "-netdev"
INFO | argv[49] = "user,id=mynet"
INFO | argv[50] = "-device"
INFO | argv[51] = "virtio-net-pci,netdev=mynet"
INFO | argv[52] = "-chardev"
INFO | argv[53] = "null,id=forhvc0"
INFO | argv[54] = "-chardev"
INFO | argv[55] = "null,id=forhvc1"
INFO | argv[56] = "-device"
INFO | argv[57] = "virtio-serial-pci,ioeventfd=off"
INFO | argv[58] = "-device"
INFO | argv[59] = "virtconsole,chardev=forhvc0"
INFO | argv[60] = "-device"
INFO | argv[61] = "virtconsole,chardev=forhvc1"
INFO | argv[62] = "-chardev"
INFO | argv[63] = "rootcanal,id=rootcanal"
INFO | argv[64] = "-device"
INFO | argv[65] = "virtserialport,chardev=rootcanal,name=bluetooth"
INFO | argv[66] = "-device"
INFO | argv[67] = "virtio-serial,ioeventfd=off"
INFO | argv[68] = "-chardev"
INFO | argv[69] = "socket,port=65378,host=::1,nowait,nodelay,ipv6,id=modem"
INFO | argv[70] = "-device"
INFO | argv[71] = "virtserialport,chardev=modem,name=modem"
INFO | argv[72] = "-device"
INFO | argv[73] = "virtio-rng-pci"
INFO | argv[74] = "-show-cursor"
INFO | argv[75] = "-device"
INFO | argv[76] = "virtio_input_multi_touch_pci_1"
INFO | argv[77] = "-device"
INFO | argv[78] = "virtio_input_multi_touch_pci_2"
INFO | argv[79] = "-device"
INFO | argv[80] = "virtio_input_multi_touch_pci_3"
INFO | argv[81] = "-device"
INFO | argv[82] = "virtio_input_multi_touch_pci_4"
INFO | argv[83] = "-device"
INFO | argv[84] = "virtio_input_multi_touch_pci_5"
INFO | argv[85] = "-device"
INFO | argv[86] = "virtio_input_multi_touch_pci_6"
INFO | argv[87] = "-device"
INFO | argv[88] = "virtio_input_multi_touch_pci_7"
INFO | argv[89] = "-device"
INFO | argv[90] = "virtio_input_multi_touch_pci_8"
INFO | argv[91] = "-device"
INFO | argv[92] = "virtio_input_multi_touch_pci_9"
INFO | argv[93] = "-device"
INFO | argv[94] = "virtio_input_multi_touch_pci_10"
INFO | argv[95] = "-device"
INFO | argv[96] = "virtio_input_multi_touch_pci_11"
INFO | argv[97] = "-device"
INFO | argv[98] = "virtio-keyboard-pci"
INFO | argv[99] = "-netdev"
INFO | argv[100] = "user,id=virtio-wifi,dhcpstart=10.0.2.16"
INFO | argv[101] = "-device"
INFO | argv[102] = "virtio-wifi-pci,netdev=virtio-wifi"
INFO | argv[103] = "-device"
INFO | argv[104] = "virtio-vsock-pci,guest-cid=77"
INFO | argv[105] = "-L"
INFO | argv[106] = "/Users/lev/Library/Android/sdk/emulator/lib/pc-bios"
INFO | argv[107] = "-soundhw"
INFO | argv[108] = "hda"
INFO | argv[109] = "-vga"
INFO | argv[110] = "none"
INFO | argv[111] = "-append"
INFO | argv[112] = "no_timer_check clocksource=pit console=ttyS0,38400 cma=294M@0-4G loop.max_part=7 ramoops.mem_address=0xff018000 ramoops.mem_size=0x10000 memmap=0x10000$0xff018000 printk.devkmsg=on bootconfig"
INFO | argv[113] = "-android-hw"
INFO | argv[114] = "/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/hardware-qemu.ini"
INFO | Concatenated QEMU options: /Users/lev/Library/Android/sdk/tools/../emulator/qemu/darwin-x86_64/qemu-system-x86_64 -dns-server 192.168.1.1 -mem-path /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/snapshots/default_boot/ram.img -mem-file-shared -serial stdio -device goldfish_pstore,addr=0xff018000,size=0x10000,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/data/misc/pstore/pstore.bin -cpu android64 -enable-hvf -smp cores=4 -m 2048 -lcd-density 440 -nodefaults -kernel /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//kernel-ranchu -initrd /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/initrd -drive if=none,index=0,id=system,if=none,file=/Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//system.img,read-only -device virtio-blk-pci,drive=system,modern-pio-notify -drive if=none,index=1,id=cache,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/cache.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=cache,modern-pio-notify -drive if=none,index=2,id=userdata,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/userdata-qemu.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=userdata,modern-pio-notify -drive if=none,index=3,id=encrypt,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/encryptionkey.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=encrypt,modern-pio-notify -drive if=none,index=4,id=vendor,if=none,file=/Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//vendor.img,read-only -device virtio-blk-pci,drive=vendor,modern-pio-notify -drive if=none,index=5,id=sdcard,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/sdcard.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=sdcard,modern-pio-notify -netdev user,id=mynet -device virtio-net-pci,netdev=mynet -chardev null,id=forhvc0 -chardev null,id=forhvc1 -device virtio-serial-pci,ioeventfd=off -device virtconsole,chardev=forhvc0 -device virtconsole,chardev=forhvc1 -chardev rootcanal,id=rootcanal -device virtserialport,chardev=rootcanal,name=bluetooth -device virtio-serial,ioeventfd=off -chardev socket,port=65378,host=::1,nowait,nodelay,ipv6,id=modem -device virtserialport,chardev=modem,name=modem -device virtio-rng-pci -show-cursor -device virtio_input_multi_touch_pci_1 -device virtio_input_multi_touch_pci_2 -device virtio_input_multi_touch_pci_3 -device virtio_input_multi_touch_pci_4 -device virtio_input_multi_touch_pci_5 -device virtio_input_multi_touch_pci_6 -device virtio_input_multi_touch_pci_7 -device virtio_input_multi_touch_pci_8 -device virtio_input_multi_touch_pci_9 -device virtio_input_multi_touch_pci_10 -device virtio_input_multi_touch_pci_11 -device virtio-keyboard-pci -netdev user,id=virtio-wifi,dhcpstart=10.0.2.16 -device virtio-wifi-pci,netdev=virtio-wifi -device virtio-vsock-pci,guest-cid=77 -L /Users/lev/Library/Android/sdk/emulator/lib/pc-bios -soundhw hda -vga none -append 'no_timer_check clocksource=pit console=ttyS0,38400 cma=294M@0-4G loop.max_part=7 ramoops.mem_address=0xff018000 ramoops.mem_size=0x10000 memmap=0x10000$0xff018000 printk.devkmsg=on bootconfig' -android-hw /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/hardware-qemu.ini
VERBOSE | Starting hostapd main loop.
VERBOSE | Android qemu version 31.2.10.0 (build_id 8420304) (CL:N/A)
VERBOSE | Starting QEMU main loop
VERBOSE | registered 'boot-properties' qemud service
VERBOSE | Adding boot property: 'ro.opengles.version' = '196608'
VERBOSE | Adding boot property: 'qemu.sf.fake_camera' = 'front'
VERBOSE | Adding boot property: 'qemu.adb.secure' = '1'
VERBOSE | Adding boot property: 'dalvik.vm.heapsize' = '512m'
VERBOSE | Adding boot property: 'qemu.hw.mainkeys' = '0'
VERBOSE | Adding boot property: 'qemu.sf.lcd_density' = '440'
INFO | Rootcanal has been activated.
VERBOSE | control console listening on port 5554, ADB on port 5555
VERBOSE | goldfish_events.have-dpad: false
VERBOSE | goldfish_events.have-trackball: false
VERBOSE | goldfish_events.have-camera: true
VERBOSE | goldfish_events.have-keyboard: false
VERBOSE | goldfish_events.have-lidswitch: false
VERBOSE | goldfish_events.have-tabletmode: false
VERBOSE | goldfish_events.have-touch: false
VERBOSE | goldfish_events.have-multitouch: false
VERBOSE | Adding boot property: 'net.wifi_mac_prefix' = '5554'
INFO | Warning: QCssParser::parseHexColor: Unknown color name '#FFFFFFs' ((null):0, (null))
VERBOSE | Not using any http proxy
VERBOSE | Adding boot property: 'qemu.timezone' = 'Asia/Jerusalem'
VERBOSE | android_hw_fingerprint_init: fingerprint qemud listen service initialized
INFO | Started GRPC server at 127.0.0.1:8554, security: Local
INFO | Advertising in: /Users/lev/Library/Caches/TemporaryItems/avd/running/pid_12149.ini
VERBOSE | emulator_window_fb_rotate
VERBOSE | config multidisplay with config.ini 0x0 0x0 0x0
VERBOSE | No acpi ini file provided, using default
VERBOSE | Adding boot property: 'ro.opengles.version' = '196608'
VERBOSE | Adding boot property: 'qemu.sf.fake_camera' = 'front'
VERBOSE | Adding boot property: 'qemu.adb.secure' = '1'
VERBOSE | Adding boot property: 'dalvik.vm.heapsize' = '512m'
VERBOSE | Adding boot property: 'qemu.hw.mainkeys' = '0'
VERBOSE | Adding boot property: 'qemu.sf.lcd_density' = '440'
VERBOSE | Adding boot property: 'net.wifi_mac_prefix' = '5554'
VERBOSE | Adding boot property: 'qemu.timezone' = 'Asia/Jerusalem'
INFO | Warning: QImage::pixel: coordinate (1178,0) out of range ((null):0, (null))
INFO | Warning: QImage::pixel: coordinate (1178,1) out of range ((null):0, (null))
.........
.........
.........
.........
INFO | Warning: QImage::pixel: coordinate (1178,2496) out of range ((null):0, (null))
INFO | Warning: QImage::pixel: coordinate (1178,2497) out of range ((null):0, (null))
VERBOSE | Path:/Users/lev/Library/Android/Sdk/platform-tools/adb protocol version: 41
VERBOSE | Path:../platform-tools/adb protocol version: 41
VERBOSE | Path:/Users/lev/Library/Android/Sdk/platform-tools/adb protocol version: 41
VERBOSE | Found: 3 adb executables
VERBOSE | Adb: /Users/lev/Library/Android/Sdk/platform-tools/adb
VERBOSE | Adb: ../platform-tools/adb
VERBOSE | Adb: /Users/lev/Library/Android/Sdk/platform-tools/adb
VERBOSE | Path:/Users/lev/Library/Android/Sdk/platform-tools/adb protocol version: 41
VERBOSE | Path:../platform-tools/adb protocol version: 41
VERBOSE | Path:/Users/lev/Library/Android/Sdk/platform-tools/adb protocol version: 41
@flowenol - thanks for the additional information, I've passed it along to the folks investigating the root cause @yarden-rosenberg - your emulator version is a bit out of date- would you mind updating to the latest stable version and seeing if this repros?
It is reproducible on latest version (was running an older version from command line before), emulator still hangs:
INFO | Android emulator version 31.2.10.0 (build_id 8420304) (CL:N/A)
INFO | Found AVD name 'TiramisuPrivacySandbox'
INFO | Found AVD target architecture: x86_64
INFO | argv[0]: './emulator'; program directory: '/Users/lev/Library/Android/sdk/emulator'
VERBOSE | Found directory: /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64/
INFO | emuDirName: '/Users/lev/Library/Android/sdk/emulator'
INFO | try dir /Users/lev/Library/Android/sdk/emulator
INFO | Trying emulator path '/Users/lev/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64'
INFO | Found target-specific 64-bit emulator binary: /Users/lev/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64
INFO | Adding library search path: '/Users/lev/Library/Android/sdk/emulator/lib64'
INFO | Adding library search path: '/Users/lev/Library/Android/sdk/emulator/lib64/gles_swiftshader'
VERBOSE | Adding library search path for Qt: '/Users/lev/Library/Android/sdk/emulator/lib64/qt/lib'
VERBOSE | Silencing all qWarning(); use qCWarning(...) instead: QT_LOGGING_RULES=default.warning=false
VERBOSE | Setting Qt plugin search path: QT_QPA_PLATFORM_PLUGIN_PATH=/Users/lev/Library/Android/sdk/emulator/lib64/qt/plugins
VERBOSE | Setting Qt to use software OpenGL: QT_OPENGL=software
VERBOSE | Setting QML to use software QtQuick2D: QMLSCENE_DEVICE=softwarecontext
VERBOSE | Overriding pre-existing bad Qt high dpi settings...
VERBOSE | emulator: Running :/Users/lev/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64
VERBOSE | qemu backend: argv[00] = "/Users/lev/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64"
VERBOSE | qemu backend: argv[01] = "-avd"
VERBOSE | qemu backend: argv[02] = "TiramisuPrivacySandbox"
VERBOSE | qemu backend: argv[03] = "-verbose"
VERBOSE | qemu backend: argv[04] = "-show-kernel"
VERBOSE | Concatenated backend parameters: /Users/lev/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64 -avd TiramisuPrivacySandbox -verbose -show-kernel
VERBOSE | autoconfig: -skin pixel_4
VERBOSE | autoconfig: -skindir /Users/lev/Library/Android/sdk/skins/
VERBOSE | autoconfig: -kernel /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//kernel-ranchu
VERBOSE | Target arch = 'x86_64'
VERBOSE | Auto-detect: Kernel image requires new device naming scheme.
VERBOSE | Auto-detect: Kernel does not support YAFFS2 partitions.
VERBOSE | autoconfig: -ramdisk /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//ramdisk.img
VERBOSE | Using initial system image: /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//system.img
VERBOSE | Using initial vendor image: /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//vendor.img
VERBOSE | autoconfig: -data /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/userdata-qemu.img
VERBOSE | autoconfig: -initdata /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/userdata.img
VERBOSE | autoconfig: -cache /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/cache.img
VERBOSE | autoconfig: -sdcard /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/sdcard.img
VERBOSE | Increasing RAM size to 2048MB
VERBOSE | System image is read only
VERBOSE | Found 1 DNS servers:
VERBOSE | 192.168.1.1
WARNING | unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
VERBOSE | Unexpected feature list:
VERBOSE | VirtioSndCard
VERBOSE | trying to load skin file '/Users/lev/Library/Android/sdk/skins//pixel_4/layout'
VERBOSE | CPU Acceleration: working
VERBOSE | CPU Acceleration status: HAXM version 7.6.5 (4) is installed and usable.
VERBOSE | handleCpuAcceleration: feature check for hvf
VERBOSE | Bluetooth requested by guest
VERBOSE | started modem simulator host server at port: 57973
VERBOSE | GPU emulation enabled using 'host' mode
VERBOSE | Initializing hardware OpenGLES emulation support
VERBOSE | create display 0
VERBOSE | setDisplayPose 0 x 0 y 0 w 1080 h 2280 dpi 0
INFO | configAndStartRenderer: setting vsync to 60 hz
WARNING | cannot add library /Users/lev/Library/Android/sdk/emulator/qemu/darwin-x86_64/lib64/vulkan/libvulkan.dylib: failed
INFO | Sending adb public key [QAAAAClrg7/nnu/h/JCFarn05IkzPZigrBJTs/fWcYdjbNYE8QPWF+KmkcC4NfN3MbPrMsjFStvilEaIm3ZZi5Twya4012lkuOtvKph5NT91TESmlMw9/TCKe04GvRTkcI+y3pju1lroerb9QRCA6a4i9iNQap7J/jsCn+vPoqPunTvGseBu4kTaJ67ovnZIIdgpxSdfwRp5Vatp1lWVyw1kZ/pytZTRyunMlIYs2og7jnkn4VTWKbF5PhTt/nKqkNXQvVu4145H/bkm1homxuluOqCD+2ioaY3dlOXJT+IrkwWC/y2Y/Jp3HbWK1HzjLUy3TuzdAk0Nvtp76/m88xfRM7rZ3SfNWT+oVazNeQ4D/J+XJ/qY5oYBZX2lSYSVHo3LvymBEsitEPrqP9sqRG0HG161IxHOba3vov3O+P+s15YSorUmAPJRkG1ro6mYNBCENd7vZua8ysqkgCxD9BZkoGAmHQN9uWZu+X/3l2nkHYUDTsarU/dB7zCa4Wa08nOWLBl9EsCNqtZ5348F47BG/Tbwc3hwobhWLxJSNMG2K5SlgmfTiLLmatlNx3NDDGiHZwyjVtynN4m0qVVmcV68iVYxzvDohJETG7hWjw3lSeE1wYgZHMmUk8XnnBxYDvR8jOkAclFKu//jUzcQdcwYu2QCQ7Bq2VogZwFQvfr1pVr4TFY6tgEAAQA= lev@unknown]
INFO | added library /Users/lev/Library/Android/sdk/emulator/lib64/vulkan/libvulkan.dylib
VERBOSE | Found 1 DNS servers:
VERBOSE | 192.168.1.1
INFO | Content of hardware configuration file:
INFO | hw.cpu.arch = x86_64
INFO | hw.cpu.ncore = 4
INFO | hw.ramSize = 2048
INFO | hw.screen = multi-touch
INFO | hw.mainKeys = false
INFO | hw.trackBall = false
INFO | hw.keyboard = true
INFO | hw.keyboard.lid = false
INFO | hw.keyboard.charmap = qwerty2
INFO | hw.dPad = false
INFO | hw.rotaryInput = false
INFO | hw.gsmModem = true
INFO | hw.gps = true
INFO | hw.battery = true
INFO | hw.accelerometer = true
INFO | hw.gyroscope = true
INFO | hw.audioInput = true
INFO | hw.audioOutput = true
INFO | hw.sdCard = true
INFO | hw.sdCard.path = /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/sdcard.img
INFO | disk.cachePartition = true
INFO | disk.cachePartition.path = /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/cache.img
INFO | disk.cachePartition.size = 66m
INFO | test.quitAfterBootTimeOut = -1
INFO | test.delayAdbTillBootComplete = 0
INFO | test.monitorAdb = 0
INFO | hw.lcd.width = 1080
INFO | hw.lcd.height = 2280
INFO | hw.lcd.depth = 16
INFO | hw.lcd.density = 440
INFO | hw.lcd.backlight = true
INFO | hw.lcd.vsync = 60
INFO | hw.gltransport = pipe
INFO | hw.gltransport.asg.writeBufferSize = 1048576
INFO | hw.gltransport.asg.writeStepSize = 4096
INFO | hw.gltransport.asg.dataRingSize = 32768
INFO | hw.gltransport.drawFlushInterval = 800
INFO | hw.displayRegion.0.1.xOffset = -1
INFO | hw.displayRegion.0.1.yOffset = -1
INFO | hw.displayRegion.0.1.width = 0
INFO | hw.displayRegion.0.1.height = 0
INFO | hw.displayRegion.0.2.xOffset = -1
INFO | hw.displayRegion.0.2.yOffset = -1
INFO | hw.displayRegion.0.2.width = 0
INFO | hw.displayRegion.0.2.height = 0
INFO | hw.displayRegion.0.3.xOffset = -1
INFO | hw.displayRegion.0.3.yOffset = -1
INFO | hw.displayRegion.0.3.width = 0
INFO | hw.displayRegion.0.3.height = 0
INFO | hw.display1.width = 0
INFO | hw.display1.height = 0
INFO | hw.display1.density = 0
INFO | hw.display1.xOffset = -1
INFO | hw.display1.yOffset = -1
INFO | hw.display1.flag = 0
INFO | hw.display2.width = 0
INFO | hw.display2.height = 0
INFO | hw.display2.density = 0
INFO | hw.display2.xOffset = -1
INFO | hw.display2.yOffset = -1
INFO | hw.display2.flag = 0
INFO | hw.display3.width = 0
INFO | hw.display3.height = 0
INFO | hw.display3.density = 0
INFO | hw.display3.xOffset = -1
INFO | hw.display3.yOffset = -1
INFO | hw.display3.flag = 0
INFO | hw.gpu.enabled = true
INFO | hw.gpu.mode = host
INFO | hw.initialOrientation = Portrait
INFO | hw.camera.back = virtualscene
INFO | hw.camera.front = emulated
INFO | vm.heapSize = 512
INFO | hw.sensors.light = true
INFO | hw.sensors.pressure = true
INFO | hw.sensors.humidity = true
INFO | hw.sensors.proximity = true
INFO | hw.sensors.magnetic_field = true
INFO | hw.sensors.magnetic_field_uncalibrated = true
INFO | hw.sensors.gyroscope_uncalibrated = true
INFO | hw.sensors.orientation = true
INFO | hw.sensors.temperature = true
INFO | hw.sensors.rgbclight = false
INFO | hw.sensor.hinge = false
INFO | hw.sensor.hinge.count = 0
INFO | hw.sensor.hinge.type = 0
INFO | hw.sensor.hinge.sub_type = 0
INFO | hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture = 1
INFO | hw.sensor.roll = false
INFO | hw.sensor.roll.count = 0
INFO | hw.sensor.roll.resize_to_displayRegion.0.1_at_posture = 6
INFO | hw.sensor.roll.resize_to_displayRegion.0.2_at_posture = 6
INFO | hw.sensor.roll.resize_to_displayRegion.0.3_at_posture = 6
INFO | hw.sensors.heart_rate = false
INFO | hw.sensors.wrist_tilt = false
INFO | hw.useext4 = true
INFO | hw.arc = false
INFO | hw.arc.autologin = false
INFO | hw.device.name = pixel_4
INFO | kernel.path = /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//kernel-ranchu
INFO | kernel.newDeviceNaming = yes
INFO | kernel.supportsYaffs2 = no
INFO | disk.ramdisk.path = /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//ramdisk.img
INFO | disk.systemPartition.initPath = /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//system.img
INFO | disk.systemPartition.size = 2808m
INFO | disk.vendorPartition.initPath = /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//vendor.img
INFO | disk.vendorPartition.size = 800m
INFO | disk.dataPartition.path = /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/userdata-qemu.img
INFO | disk.dataPartition.size = 6g
INFO | disk.encryptionKeyPartition.path = /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/encryptionkey.img
INFO | PlayStore.enabled = true
INFO | avd.name = TiramisuPrivacySandbox
INFO | avd.id = TiramisuPrivacySandbox
INFO | fastboot.forceColdBoot = false
INFO | android.sdk.root = /Users/lev/Library/Android/Sdk
INFO | android.avd.home = /Users/lev/.android/avd
INFO | .
INFO | QEMU options list:
INFO | argv[00] = "/Users/lev/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64"
INFO | argv[01] = "-dns-server"
INFO | argv[02] = "192.168.1.1"
INFO | argv[03] = "-mem-path"
INFO | argv[04] = "/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/snapshots/default_boot/ram.img"
INFO | argv[05] = "-mem-file-shared"
INFO | argv[06] = "-serial"
INFO | argv[07] = "stdio"
INFO | argv[08] = "-device"
INFO | argv[09] = "goldfish_pstore,addr=0xff018000,size=0x10000,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/data/misc/pstore/pstore.bin"
INFO | argv[10] = "-cpu"
INFO | argv[11] = "android64"
INFO | argv[12] = "-enable-hvf"
INFO | argv[13] = "-smp"
INFO | argv[14] = "cores=4"
INFO | argv[15] = "-m"
INFO | argv[16] = "2048"
INFO | argv[17] = "-lcd-density"
INFO | argv[18] = "440"
INFO | argv[19] = "-nodefaults"
INFO | argv[20] = "-kernel"
INFO | argv[21] = "/Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//kernel-ranchu"
INFO | argv[22] = "-initrd"
INFO | argv[23] = "/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/initrd"
INFO | argv[24] = "-drive"
INFO | argv[25] = "if=none,index=0,id=system,if=none,file=/Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//system.img,read-only"
INFO | argv[26] = "-device"
INFO | argv[27] = "virtio-blk-pci,drive=system,modern-pio-notify"
INFO | argv[28] = "-drive"
INFO | argv[29] = "if=none,index=1,id=cache,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/cache.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
INFO | argv[30] = "-device"
INFO | argv[31] = "virtio-blk-pci,drive=cache,modern-pio-notify"
INFO | argv[32] = "-drive"
INFO | argv[33] = "if=none,index=2,id=userdata,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/userdata-qemu.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
INFO | argv[34] = "-device"
INFO | argv[35] = "virtio-blk-pci,drive=userdata,modern-pio-notify"
INFO | argv[36] = "-drive"
INFO | argv[37] = "if=none,index=3,id=encrypt,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/encryptionkey.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
INFO | argv[38] = "-device"
INFO | argv[39] = "virtio-blk-pci,drive=encrypt,modern-pio-notify"
INFO | argv[40] = "-drive"
INFO | argv[41] = "if=none,index=4,id=vendor,if=none,file=/Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//vendor.img,read-only"
INFO | argv[42] = "-device"
INFO | argv[43] = "virtio-blk-pci,drive=vendor,modern-pio-notify"
INFO | argv[44] = "-drive"
INFO | argv[45] = "if=none,index=5,id=sdcard,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/sdcard.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
INFO | argv[46] = "-device"
INFO | argv[47] = "virtio-blk-pci,drive=sdcard,modern-pio-notify"
INFO | argv[48] = "-netdev"
INFO | argv[49] = "user,id=mynet"
INFO | argv[50] = "-device"
INFO | argv[51] = "virtio-net-pci,netdev=mynet"
INFO | argv[52] = "-chardev"
INFO | argv[53] = "null,id=forhvc0"
INFO | argv[54] = "-chardev"
INFO | argv[55] = "null,id=forhvc1"
INFO | argv[56] = "-device"
INFO | argv[57] = "virtio-serial-pci,ioeventfd=off"
INFO | argv[58] = "-device"
INFO | argv[59] = "virtconsole,chardev=forhvc0"
INFO | argv[60] = "-device"
INFO | argv[61] = "virtconsole,chardev=forhvc1"
INFO | argv[62] = "-chardev"
INFO | argv[63] = "rootcanal,id=rootcanal"
INFO | argv[64] = "-device"
INFO | argv[65] = "virtserialport,chardev=rootcanal,name=bluetooth"
INFO | argv[66] = "-device"
INFO | argv[67] = "virtio-serial,ioeventfd=off"
INFO | argv[68] = "-chardev"
INFO | argv[69] = "socket,port=57972,host=::1,nowait,nodelay,ipv6,id=modem"
INFO | argv[70] = "-device"
INFO | argv[71] = "virtserialport,chardev=modem,name=modem"
INFO | argv[72] = "-device"
INFO | argv[73] = "virtio-rng-pci"
INFO | argv[74] = "-show-cursor"
INFO | argv[75] = "-device"
INFO | argv[76] = "virtio_input_multi_touch_pci_1"
INFO | argv[77] = "-device"
INFO | argv[78] = "virtio_input_multi_touch_pci_2"
INFO | argv[79] = "-device"
INFO | argv[80] = "virtio_input_multi_touch_pci_3"
INFO | argv[81] = "-device"
INFO | argv[82] = "virtio_input_multi_touch_pci_4"
INFO | argv[83] = "-device"
INFO | argv[84] = "virtio_input_multi_touch_pci_5"
INFO | argv[85] = "-device"
INFO | argv[86] = "virtio_input_multi_touch_pci_6"
INFO | argv[87] = "-device"
INFO | argv[88] = "virtio_input_multi_touch_pci_7"
INFO | argv[89] = "-device"
INFO | argv[90] = "virtio_input_multi_touch_pci_8"
INFO | argv[91] = "-device"
INFO | argv[92] = "virtio_input_multi_touch_pci_9"
INFO | argv[93] = "-device"
INFO | argv[94] = "virtio_input_multi_touch_pci_10"
INFO | argv[95] = "-device"
INFO | argv[96] = "virtio_input_multi_touch_pci_11"
INFO | argv[97] = "-device"
INFO | argv[98] = "virtio-keyboard-pci"
INFO | argv[99] = "-netdev"
INFO | argv[100] = "user,id=virtio-wifi,dhcpstart=10.0.2.16"
INFO | argv[101] = "-device"
INFO | argv[102] = "virtio-wifi-pci,netdev=virtio-wifi"
INFO | argv[103] = "-device"
INFO | argv[104] = "virtio-vsock-pci,guest-cid=77"
INFO | argv[105] = "-L"
INFO | argv[106] = "/Users/lev/Library/Android/sdk/emulator/lib/pc-bios"
INFO | argv[107] = "-soundhw"
INFO | argv[108] = "hda"
INFO | argv[109] = "-vga"
INFO | argv[110] = "none"
INFO | argv[111] = "-append"
INFO | argv[112] = "no_timer_check clocksource=pit console=ttyS0,38400 cma=294M@0-4G loop.max_part=7 ramoops.mem_address=0xff018000 ramoops.mem_size=0x10000 memmap=0x10000$0xff018000 printk.devkmsg=on bootconfig"
INFO | argv[113] = "-android-hw"
INFO | argv[114] = "/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/hardware-qemu.ini"
INFO | Concatenated QEMU options: /Users/lev/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64 -dns-server 192.168.1.1 -mem-path /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/snapshots/default_boot/ram.img -mem-file-shared -serial stdio -device goldfish_pstore,addr=0xff018000,size=0x10000,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/data/misc/pstore/pstore.bin -cpu android64 -enable-hvf -smp cores=4 -m 2048 -lcd-density 440 -nodefaults -kernel /Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//kernel-ranchu -initrd /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/initrd -drive if=none,index=0,id=system,if=none,file=/Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//system.img,read-only -device virtio-blk-pci,drive=system,modern-pio-notify -drive if=none,index=1,id=cache,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/cache.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=cache,modern-pio-notify -drive if=none,index=2,id=userdata,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/userdata-qemu.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=userdata,modern-pio-notify -drive if=none,index=3,id=encrypt,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/encryptionkey.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=encrypt,modern-pio-notify -drive if=none,index=4,id=vendor,if=none,file=/Users/lev/Library/Android/Sdk/system-images/android-TiramisuPrivacySandbox/google_apis_playstore/x86_64//vendor.img,read-only -device virtio-blk-pci,drive=vendor,modern-pio-notify -drive if=none,index=5,id=sdcard,if=none,file=/Users/lev/.android/avd/TiramisuPrivacySandbox.avd/sdcard.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=sdcard,modern-pio-notify -netdev user,id=mynet -device virtio-net-pci,netdev=mynet -chardev null,id=forhvc0 -chardev null,id=forhvc1 -device virtio-serial-pci,ioeventfd=off -device virtconsole,chardev=forhvc0 -device virtconsole,chardev=forhvc1 -chardev rootcanal,id=rootcanal -device virtserialport,chardev=rootcanal,name=bluetooth -device virtio-serial,ioeventfd=off -chardev socket,port=57972,host=::1,nowait,nodelay,ipv6,id=modem -device virtserialport,chardev=modem,name=modem -device virtio-rng-pci -show-cursor -device virtio_input_multi_touch_pci_1 -device virtio_input_multi_touch_pci_2 -device virtio_input_multi_touch_pci_3 -device virtio_input_multi_touch_pci_4 -device virtio_input_multi_touch_pci_5 -device virtio_input_multi_touch_pci_6 -device virtio_input_multi_touch_pci_7 -device virtio_input_multi_touch_pci_8 -device virtio_input_multi_touch_pci_9 -device virtio_input_multi_touch_pci_10 -device virtio_input_multi_touch_pci_11 -device virtio-keyboard-pci -netdev user,id=virtio-wifi,dhcpstart=10.0.2.16 -device virtio-wifi-pci,netdev=virtio-wifi -device virtio-vsock-pci,guest-cid=77 -L /Users/lev/Library/Android/sdk/emulator/lib/pc-bios -soundhw hda -vga none -append 'no_timer_check clocksource=pit console=ttyS0,38400 cma=294M@0-4G loop.max_part=7 ramoops.mem_address=0xff018000 ramoops.mem_size=0x10000 memmap=0x10000$0xff018000 printk.devkmsg=on bootconfig' -android-hw /Users/lev/.android/avd/TiramisuPrivacySandbox.avd/hardware-qemu.ini
VERBOSE | Starting hostapd main loop.
VERBOSE | Android qemu version 31.2.10.0 (build_id 8420304) (CL:N/A)
VERBOSE | Starting QEMU main loop
VERBOSE | registered 'boot-properties' qemud service
VERBOSE | Adding boot property: 'ro.opengles.version' = '196608'
VERBOSE | Adding boot property: 'qemu.sf.fake_camera' = 'front'
VERBOSE | Adding boot property: 'qemu.adb.secure' = '1'
VERBOSE | Adding boot property: 'dalvik.vm.heapsize' = '512m'
VERBOSE | Adding boot property: 'qemu.hw.mainkeys' = '0'
VERBOSE | Adding boot property: 'qemu.sf.lcd_density' = '440'
INFO | Rootcanal has been activated.
VERBOSE | control console listening on port 5554, ADB on port 5555
VERBOSE | goldfish_events.have-dpad: false
VERBOSE | goldfish_events.have-trackball: false
VERBOSE | goldfish_events.have-camera: true
VERBOSE | goldfish_events.have-keyboard: false
VERBOSE | goldfish_events.have-lidswitch: false
VERBOSE | goldfish_events.have-tabletmode: false
VERBOSE | goldfish_events.have-touch: false
VERBOSE | goldfish_events.have-multitouch: false
VERBOSE | Adding boot property: 'net.wifi_mac_prefix' = '5554'
VERBOSE | Not using any http proxy
VERBOSE | Adding boot property: 'qemu.timezone' = 'Asia/Jerusalem'
VERBOSE | android_hw_fingerprint_init: fingerprint qemud listen service initialized
INFO | Started GRPC server at 127.0.0.1:8554, security: Local
INFO | Advertising in: /Users/lev/Library/Caches/TemporaryItems/avd/running/pid_17672.ini
VERBOSE | emulator_window_fb_rotate
VERBOSE | config multidisplay with config.ini 0x0 0x0 0x0
VERBOSE | No acpi ini file provided, using default
VERBOSE | Adding boot property: 'ro.opengles.version' = '196608'
VERBOSE | Adding boot property: 'qemu.sf.fake_camera' = 'front'
VERBOSE | Adding boot property: 'qemu.adb.secure' = '1'
VERBOSE | Adding boot property: 'dalvik.vm.heapsize' = '512m'
VERBOSE | Adding boot property: 'qemu.hw.mainkeys' = '0'
VERBOSE | Adding boot property: 'qemu.sf.lcd_density' = '440'
VERBOSE | Adding boot property: 'net.wifi_mac_prefix' = '5554'
VERBOSE | Adding boot property: 'qemu.timezone' = 'Asia/Jerusalem'
VERBOSE | _hwFingerprint_connect: connect finger print listen is called
VERBOSE | Path:/Users/lev/Library/Android/Sdk/platform-tools/adb protocol version: 41
VERBOSE | Path:/Users/lev/Library/Android/sdk/platform-tools/adb protocol version: 41
VERBOSE | Path:/Users/lev/Library/Android/Sdk/platform-tools/adb protocol version: 41
VERBOSE | Found: 3 adb executables
VERBOSE | Adb: /Users/lev/Library/Android/Sdk/platform-tools/adb
VERBOSE | Adb: /Users/lev/Library/Android/sdk/platform-tools/adb
VERBOSE | Adb: /Users/lev/Library/Android/Sdk/platform-tools/adb
VERBOSE | Path:/Users/lev/Library/Android/Sdk/platform-tools/adb protocol version: 41
VERBOSE | Path:/Users/lev/Library/Android/sdk/platform-tools/adb protocol version: 41
VERBOSE | Path:/Users/lev/Library/Android/Sdk/platform-tools/adb protocol version: 41
Thanks for testing that out! Forwarded this information to the team. Will report back when I have any update
@cshmerling I have removed my old intel mac from the attic and I can confirm:
So indeed, that is not related to Apple Silicon but to the macOS version of the emulator. Thank you for your support!
Edit: After some further investigation it turned out to be OS independent, my previously running Linux machine has the same issues with the updated system-image.
Thanks for all the testing. We have identified a potential fix and are looking at how best to get that out, though I can't comment on exactly what day this will be available.
We are also increasing the coverage of our pre-release testing to include some developer flows based on this feedback. If there are any other use cases where you run in to issues please continue to let us know as we are looking in to improving developer experience in this area.
So was able to run the sample on Emulator v31.3.9 taken from HERE.
BTW need to run the xattr -dr com.apple.quarantine emulator/
command on Intel based Macs as well.
I guess from now on I will be reporting stuff on different issue threads :)
We published a new revision of the emulator images last night that address the boot issue on stable Android Studio as well as the reboot issue if using Android Studio Canary. Unfortunately it is tagged with the same revision number so you will have to uninstall the image first before installing again.
Please try it out and let me know if there are any issues. Thanks again for testing this early and often! @flowenol
EDIT: Spoke a bit too soon. The emulator images work now, but if you attempt to redownload the SDK itself there is an error. However, if you leave the SDK in place and download the new device image it should work as expected.
Thank you @cshmerling for the update. I confirm that the new system image works perfectly!
Great! Going to mark this issue as resolved. Thanks again for the feedback
Hi,
I am unable to boot the Privacy Sandbox system image on Apple Silicon and macOS. Emulator hangs with black screen, adb sees the device as offline.
Hardware: Apple M1 Pro OS: macOS 12.4 Emulator version: 31.2.10.0 System image: TiramisuPrivacySandbox, API Level: TiramisuPrivacySandbox, ABI: arm64-v8a Platform tools version: Android Debug Bridge version 1.0.41 / Version 33.0.2-8557947 Device definition: Pixel 4
Other system images boot perfectly fine on the same setup.
Logs from emulator with enabled verbosity: