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

Support Custom System Images #29

Open
destinyb-realityi opened this issue Mar 6, 2020 · 6 comments
Open

Support Custom System Images #29

destinyb-realityi opened this issue Mar 6, 2020 · 6 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@destinyb-realityi
Copy link

I was wondering if there is / will be support for emulators running custom system images? For example, if I had gotten the system image directly from a manufacturer it would be awesome to be able to use this to test my application(s) on the device without actually needing the hardware.

It would also be really useful for rooted images as well.

@ychescale9
Copy link
Member

Sorry I'm not familiar with custom system images. A few questions:

  • How would that workflow work? do you need any custom tooling for launching an emulator created with the custom image?
  • How would you use avdmanager to create a new android virtual device from the custom image?
  • Do you have any samples / scripts for automating this process?

@ychescale9 ychescale9 added the question Further information is requested label Mar 6, 2020
@destinyb-realityi
Copy link
Author

Thanks for getting back so quickly! To my understanding, as long as you have a "system.img" file in your AVD directory, the AVD will launch using the custom image automatically. See here for more information.

I unfortunately don't have any samples or scripts for automating the process. I'm very early into my research of seeing how to do this.

I do imagine though if you created a custom_image field in the yml configuration, and we pass a directory in our repo where it's located, you could copy the file into the directory our AVD is created.

Thoughts?

@ychescale9
Copy link
Member

That seems easy enough on my end. Again I'm not familiar with custom ROM, so if you managed to get this to work locally let me know so I can look at how to best integrate the process into the action.

If we were to add this support I'd like to test this with a sample image on CI. Would you put the custom image in the repository or some cloud storage?

@destinyb-realityi
Copy link
Author

destinyb-realityi commented Mar 9, 2020

Sorry for the late reply! Been doing some research. I'm not entirely sure how to get the "system.img" so I reached out to one of our device manufacturers to see if we can get it from them.

Another question; would we possibly be able to have this action use our own AVDs?
For example, if we use the script to download a custom AVD from AWS S3, can we pass into the script to use a custom AVD at a specific location?

@ychescale9
Copy link
Member

ychescale9 commented Mar 9, 2020 via email

@mrk-han mrk-han added the help wanted Extra attention is needed label Nov 2, 2022
@mrk-han
Copy link
Collaborator

mrk-han commented Nov 2, 2022

Wouldn't it be possible to create the emulator, download the .avd then manually drop it into the .avd folder?

Could be an interesting PR, provide path to custom system image. Marking as help wanted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants
@ychescale9 @mrk-han @destinyb-realityi and others