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

Explore the docker Android Emulator #389

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

hydraxman
Copy link
Member

@hydraxman hydraxman commented Mar 22, 2023

Pull Request Checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Code compiles correctly with all tests are passed.
  • I've read the contributing guide and followed the recommended practices.
  • Wikis or README have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

If this introduces a breaking change for Hydra Lab users, please describe the impact and migration path.

  • Yes
  • No

Pull Request Description

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Build related changes
  • Refactoring (no functional changes, no api changes)
  • Code style update (formatting, renaming) or Documentation content changes
  • Other (please describe):

A few words to explain your changes: We attempt to start an Android emulator in the docker container so that when the agent is started, we will have a initial Android emulator phone available.

Issue ID: #

How you tested it

Please make sure the change is tested, you can test it by adding UTs, do local test and share the screenshots, etc.

Feature UI screenshots or Technical design diagrams

If this is a relatively large or complex change, kick it off by drawing the tech design with PlantUML and explaining why you chose the solution you did and what alternatives you considered, etc...

@hydraxman hydraxman marked this pull request as draft March 22, 2023 01:06
@olivershen-wow
Copy link
Contributor

olivershen-wow commented Mar 22, 2023

Updated, current status:

  • Emulator can be created and enabled before agent starts.
  • ADB host for emulator is different from the one for real phone devices of PC.
    • TODO: multiple adb servers should be enabled to support this scenario.
    • TODO: when set ADB host to localhost to enable emulator connection, adb commands within agent will fail.

@olivershen-wow
Copy link
Contributor

olivershen-wow commented Mar 28, 2023

Update, current status for emulator startup in Docker (based on OS architecture):

  • x86/x86_64的模拟器不能跑 (需要硬件加速)
# apt-get install cpu-checker
# kvm-ok
  INFO: Your CPU does not support KVM extensions
  KVM acceleration can NOT be used
# egrep -c '(vmx|svm)' /proc/cpuinfo
  0 (means no CPU for hardware acceleration)

@olivershen-wow
Copy link
Contributor

olivershen-wow commented Mar 28, 2023

According to the following section, we may not proceed this item in current context:

@hydraxman hydraxman marked this pull request as ready for review September 27, 2023 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants