Skip to content

Instantly share code, notes, and snippets.

@arnoldc
Last active November 19, 2025 10:30
Show Gist options
  • Select an option

  • Save arnoldc/21aca172dd252a9e66451339d75a4f72 to your computer and use it in GitHub Desktop.

Select an option

Save arnoldc/21aca172dd252a9e66451339d75a4f72 to your computer and use it in GitHub Desktop.
[Android] Running Emulator with certain DNS server
# list all avds
emulator -list-avds
emulator -avd Pixel_6_API_35
# KILL
adb -s Pixel_2_API_31 emu kill
adb -s Pixel_5_API_33 emu kill
# Settings DNS server for emulator
emulator -avd Pixel_5_API_31 -dns-server 8.8.8.8
# Lock and Unlock
SLEEP = adb shell input keyevent 223
WAKE UP = adb shell input keyevent 224
# SHAKE
adb shell input keyevent 82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment