Android emulator(Android Studio) Home button not working and giving logcat - I/WindowManager: Not starting activity because user setup is in progress

Viewed 11156

Started emulator from Android Studio and it's Home button not working. When I press Home button, in logcat I can see

I/WindowManager: Not starting activity because user setup is in progress: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 (has extras) }

And same happens(same logcat) when keyboard shortcut(keyboard Home button) is used.

I restarted emulator and my machine several times, but no help.

The thing I want to achieve is killing my app by Home button Long Press

Emulator details:

Name: 2_7_QVGA_slider_API_23_L
CPU/ABI: ARM (armeabi-v7a)
Path: C:\Users\sh56000\.android\avd\2_7_QVGA_slider_API_23_L.avd

Target: Android 6.0 (API level 23)
Skin: 240x320
SD Card: 100M
Snapshot: no
hw.dPad: no
runtime.network.speed: full
hw.accelerometer: yes
hw.device.name: 2.7in QVGA slider
vm.heapSize: 16
skin.dynamic: yes
hw.device.manufacturer: Generic
hw.gps: yes
hw.audioInput: yes
hw.keyboard.lid: yes
hw.cpu.model: cortex-a8
tag.id: default
hw.camera.back: none
hw.mainKeys: yes
AvdId: 2_7_QVGA_slider_API_23_L
hw.camera.front: none
hw.lcd.density: 120
runtime.scalefactor: auto
avd.ini.displayname: 2.7 QVGA slider API 23 L
snapshot.present: no
hw.device.hash2: MD5:89d*************55e42054c413
hw.ramSize: 512
hw.trackBall: no
hw.battery: yes
hw.sdCard: yes
tag.display: Default
runtime.network.latency: none
hw.keyboard: yes
hw.sensors.proximity: yes
disk.dataPartition.size: 200M
hw.sensors.orientation: yes
avd.ini.encoding: UTF-8
hw.gpu.enabled: yes
8 Answers

If the above doesn't work, try:

adb shell settings --user 0 put secure user_setup_complete 1
adb shell settings --user 0 put secure tv_user_setup_complete 1
adb shell settings --user 0 put global device_provisioned 1

No reboot needed!

It might be a different situation but here is what helped. Wnen on Android Q, home button would not work, but when I dragged the ask google desktop widget up (don't ask me why I did that), this revealed the apps drawer. When here, home button does work by showing desktop.

I had this issue with my Android emulator (Google Pixel 2). Wiping the data in the Android Studio AVD manager fixed it for me.

Restarting the virtual device with a cold boot from AVD Manager fixed it for me.

Related