Last active
November 19, 2025 10:30
-
-
Save arnoldc/21aca172dd252a9e66451339d75a4f72 to your computer and use it in GitHub Desktop.
[Android] Running Emulator with certain DNS server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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