Skip to content

Commit 6932225

Browse files
committed
Try running emulator with -no-accel
1 parent c97c292 commit 6932225

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/scripts/android/android-emulator-tests.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,15 @@ emulator -accel-check || true
102102

103103
# enable KVM on Linux, else error on emulator launch:
104104
# CPU acceleration status: This user doesn't have permissions to use KVM (/dev/kvm).
105-
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
106-
sudo udevadm control --reload-rules
107-
sudo udevadm trigger --name-match=kvm
108-
emulator -accel-check
105+
#echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
106+
#sudo udevadm control --reload-rules
107+
#sudo udevadm trigger --name-match=kvm
108+
#emulator -accel-check
109109

110110
log "Starting Android emulator"
111111
# launch the emulator in the background; we will cat the logs at the end
112-
nohup emulator -no-metrics -memory 4096 -avd "${EMULATOR_NAME}" -wipe-data -no-window -no-snapshot -noaudio -no-boot-anim &
112+
# TODO: -no-accel disables the need for KVM, but is very slow
113+
nohup emulator -no-accel -no-metrics -memory 4096 -avd "${EMULATOR_NAME}" -wipe-data -no-window -no-snapshot -noaudio -no-boot-anim &
113114
#2>&1 > emulator.log &
114115

115116
#adb logcat 2>&1 > logcat.log &

0 commit comments

Comments
 (0)