The .zip file contains the legacy command line tools given to setup your emulator environment. To setup your emulator environment correctly, please follow the blog instructions given in either of the 2 posts
Emulator CLI is generally boring and anyone in the automation team can say amen to the fact that staring at a non saucy and tedious CLI can be a tad bit unproductive. Here is my bit to make the terminal a colourful play ground, at least, in the terms of autocompletion behaviour which is more or less non existent in the traditional command line tools provided by our dear Android team.
The script uses the prompt-toolkit to implement interactive CLI experience for the user. You can check out the source code in the internal
directory.
- Make sure you follow the two blogs (links) and setup your local system accordingly.
- You'll need to put in APKs you want to test run on (You can find the 9gag apk used in the GIFs here)
- You'll need to run this
$ sdkmanager "build-tools;30.0.2"
- You'll need to adjust your PATH by running
$ export $PATH=$PATH:~/build-tools
- Then run
$pip3 install -r requirements.txt
This is the demo run for creating a new Android Virtual Device. I will be making a classic android-28;google_apis;x86_64
virtual device with no modification in hardware specifications. (Check out the gifs/emuavd1.mp4 in gifs!)
This is a demo run showing autocompletion feature being implemented in apk installation, avd population and synchronizing between apk calls. (Check out the gifs/emurun1.mp4 for better quality!)
Tada! Thanks for reading the mini documentation!