ehubbard / Emulator-CLI-Autocompleter

Python autocomplete CLI for android emulators (Creation and APK Run demonstration)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thanks for Reading my Blog!

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


Using the emulator demo script (with autocompletion support)

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.

Requirements to run the script in your system

  • 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

Demo Run [Create new AVD]

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!)

CreateAVD

Autocompletion example (system image choice step)

system-image

Demo Run [Run AVD]

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!)

RunAVD

Autocompletion example (AVD choice step)

avdchoice

Autocompletion example (APK choice step)

apkchoice


Tada! Thanks for reading the mini documentation!

About

Python autocomplete CLI for android emulators (Creation and APK Run demonstration)


Languages

Language:Python 100.0%