Last active
December 24, 2016 13:12
-
-
Save yamatt/2c62edba9921108304145d763b4ad54b to your computer and use it in GitHub Desktop.
Running Android emulator from command line
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
$ apt-get install openjdk-8-jre | |
$ wget https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz | |
$ tar xvf android-sdk_r24.4.1-linux.tgz | |
$ cd android-sdk-linux/ | |
$ tools/android list sdk --all --extended | |
$ tools/android update sdk --all --no-ui --filter sys-img-x86_64-android-22,platform-tools,android-22,sysimg-22 # android 5.0.1 | |
$ tools/android list targets | |
$ tools/android create avd --name test --target 1 --abi default/x86_64 | |
$ tools/android avd -list-avd # these bits don't work. Need tidying up. Trying to list available avds that you just created | |
$ tools/android avd -u -list-avd | |
$ tools/./emulator64-x86 -avd test -no-window | |
$ platform-tools/adb tcpip 5555 | |
# Get copy of what's on screen, for processing | |
$ platform-tools/adb shell uiautomator dump /data/screen.xml | |
$ platform-tools/adb pull /data/screen.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment