Skip to content

Instantly share code, notes, and snippets.

@zeroidentidad
Last active June 29, 2022 21:21
Show Gist options
  • Save zeroidentidad/7f69dcfc0f752ca02019848153dfb8ba to your computer and use it in GitHub Desktop.
Save zeroidentidad/7f69dcfc0f752ca02019848153dfb8ba to your computer and use it in GitHub Desktop.
Run ADV emulator externally
#!/usr/bin/env bash
# pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY chmod 777 /dev/kvm - stackoverflow.com/questions/37300811/android-studio-dev-kvm-device-permission-denied
export ANDROID_EMULATOR_LAUNCHER_DIR=/home/zeroidentidad/Android/Sdk/emulator
export LD_LIBRARY_PATH=/home/zeroidentidad/Android/Sdk/emulator/lib64/qt/lib:/home/zeroidentidad/Android/Sdk/emulator/lib64/libstdc++:/home/chucho/Android/Sdk/emulator/lib64/gles_angle11:/home/zeroidentidad/Android/Sdk/emulator/lib64/gles_angle9:/home/zeroidentidad/Android/Sdk/emulator/lib64/gles_angle:/home/zeroidentidad/Android/Sdk/emulator/lib64/gles_swiftshader:/home/zeroidentidad/Android/Sdk/emulator/lib64
EMULATOR86="/home/zeroidentidad/Android/Sdk/emulator/qemu/linux-x86_64/qemu-system-x86_64"
EMULATOR="/home/zeroidentidad/Android/Sdk/emulator/emulator"
DEVICE=`$EMULATOR -list-avds tail -1`
RUN="$EMULATOR86 -netdelay none -netspeed full -avd $DEVICE"
$RUN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment