Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install system-images of additional Android versions #20 #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions docs/Install_System_Images_of_Android.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@

##
Install system-images of additional Android versions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This text should be along with ## like ## Install system-images.......
Remove the new line before the text.


**1. Listing Available SDK Packages:**

```
sdkmanager --list
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sdkmanager would not work directly on majority of systems. Also mention the steps on how to go to the location where sdkmanager binary is present and how to run it. Or maybe we need to add the binaries location to PATH. The same goes for avdmanager.

Also, on Windows, I think we need to use sdkmanager.exe to run it, please verify the same.


```

This command displays all available SDK packages you can install or update.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also briefly explain what all the different system images mean. Like the difference between Google APIs system image vs Google Play system image; ARM vs Intel; etc. and which system image to install in which case.

You can also add a link if you find a good resource to follow regarding this.


**2. Installing System Images:**

```
sdkmanager --install "system-images;android-30;google_apis;x86_64"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mention it as sdkmanager --install "<system-image-id>" and then mention the above as an example.


```

This command installs the system image for Android 30 with Google APIs for the x86_64 architecture. Replace `android-30` with your desired version.

**3. Creating an Emulator:**

```
avdmanager create avd -n <name> -k "system-images;android-30;google_apis;x86_64"

```

This command creates an emulator named `<name>` and uses the system image for Android 30 with Google APIs for the x86_64 architecture.

**4. Starting an Emulator:**

```
emulator -avd <name>

```

This command starts the emulator named `<name>`.

**5. Listing Created Emulators:**

```
emulator -list-avds

```

This command displays all the emulators you have created.

**6. Updating SDK Packages:**

```
sdkmanager --update

```

This command updates all installed SDK packages to their latest versions.

**7. Installing Additional SDK Packages:**

```
sdkmanager --install "extras;google;google_play_services"

```

This command installs additional SDK packages, such as Google Play services.

**8. Deleting an Emulator:**

```
avdmanager delete avd -n <name>

```

This command deletes the emulator named `<name>`.

Remember to replace `<name>` with the actual name of your emulator in the commands requiring it.
45 changes: 45 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"url": "git+https://github.com/nightwatchjs/mobile-helper-tool"
},
"devDependencies": {
"@nightwatch/mobile-helper": "^0.1.12",
Copy link
Contributor

@SanjayDevTech SanjayDevTech Feb 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should not include this dependency. This dependency points to this same repository.
Once removed run npm install, so package-lock.json can be restored to its original state.

"@types/appium-adb": "^9.4.1",
"@types/cli-progress": "^3.11.0",
"@types/download": "^8.0.1",
Expand Down