Skip to content

Commit

Permalink
Add a few examples for using Android dotcommands.
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 committed Sep 13, 2024
1 parent 35bb502 commit 997ec25
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,25 @@ npx @nightwatch/mobile-helper android.<binary_name> [args]

Currently supported binaries: `adb`, `avdmanager`, `sdkmanager` and `emulator`.

#### Examples

1. List all the devices connected through `adb`:
```sh
npx @nightwatch/mobile-helper android.adb devices
```
2. Start the Android Emulator with an AVD:
```sh
npx @nightwatch/mobile-helper android.emulator @nightwatch-android-11
```
3. List all installed system images (along with other packages):
```sh
npx @nightwatch/mobile-helper android.sdkmanager --list_installed
```
4. List all installed Android Virtual Devices (AVDs):
```sh
npx @nightwatch/mobile-helper android.avdmanager list avd
```

Check the following docs to know more about the usage of the above mentioned binaries:

* [Installing Android application](./docs/install-android-application-from-apk.md)
Expand Down

0 comments on commit 997ec25

Please sign in to comment.