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

Include Android emulator in Ubuntu images #836

Closed
1 of 5 tasks
mganandraj opened this issue May 6, 2020 · 4 comments
Closed
1 of 5 tasks

Include Android emulator in Ubuntu images #836

mganandraj opened this issue May 6, 2020 · 4 comments
Assignees
Labels

Comments

@mganandraj
Copy link

Tool information

  • Tool name: Android x86 Emulator from the Android SDK
  • Tool license: Same as Android SDK
  • Add or update? Add
  • Desired version:
  • Approximate size:
  • If this is an add request:
    • Brief description of tool: Currently the Ubuntu images include all the build toolchains but no emulators are included for running CI validations.
    • URL for tool's homepage: https://developer.android.com/

Area for Triage: Android

Question, Bug, or Feature?: "Feature"

Virtual environments affected

  • macOS 10.15
  • Ubuntu 16.04 LTS
  • Ubuntu 18.04 LTS
  • Windows Server 2016 R2
  • Windows Server 2019

Can this tool be installed during the build? Yes

Tool installation time in runtime

Are you willing to submit a PR?
Yes

@andy-mishechkin
Copy link
Contributor

This emulator is shipped by Apache 2.0 license

@maxim-lobanov
Copy link
Contributor

Hello @mganandraj, thank you for your suggestion.
Considering the fact that android emulators are pretty huge, we don't have resources to pre-install and support android emulators on Ubuntu image for now. Probably, we will be able to revisit this decision in future if we see more interests for it and have resources to support it.

Emulators can be installed in runtime using the android-emulator-runner action (in case if you use GitHub Action).
Also emulators can be installed using the following code (it takes about 1 minute to install one particular emulator):

${ANDROID_HOME}/tools/bin/sdkmanager --install "system-images;android-29;google_apis_playstore;x86_64"

@mganandraj
Copy link
Author

mganandraj commented May 8, 2020 via email

@maxim-lobanov
Copy link
Contributor

We understand that it can be pretty painful to install Android emulators in runtime, especially if the number of builds is pretty huge.
We are trying to improve our images constantly and currently, our main focus is improving stability of our images and software that is already installed. It means that we have to be fairly picky right now about new software.

Are there network caching layers to serve this kind of download patterns ?

By default, no, but you can use actions/cache to cache android emulators folder. Potentially, It can speed up your builds because access to the cache is significantly faster than external sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants