Module for manipulating apk's with adb Install, uninstall, run, stop application on your device from command line
To install the most recent release from npm, run:
npm install apk-runner -g
You can do many things with this module:
- Install apk on device
- Uninstall apk on device
- Run app on device
- Stop app on device
Once you have installed the module globaly you will have 2 optional commands for running the module:
- apk-runner [arguments]
- ar [arguments]
2.1. Command line
Will install and run apk on connected device:
Running the module with no arguments (as shown in example above) will run the following procedure for the apk:
- stop application (if running and exists on device)
- uninstall apk (if exists on device)
- install apk
- run application
if any option from the available options is specified then the module will execute only the specified option. For instance running the following command will only install the apk.
apk-runner --install yourapk.apk
This command will uninstall and install the apk.
apk-runner --uninstall --install yourapk.apk
The logical order of the command will always be stop,uninstall,install,run.
To run tests, use the following command from module's root: