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

Rework Android Emulators and such #24

Open
bramus opened this issue Jul 6, 2021 · 0 comments
Open

Rework Android Emulators and such #24

bramus opened this issue Jul 6, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@bramus
Copy link
Owner

bramus commented Jul 6, 2021

Install required stuff

Android Tools

brew install --cask android-platform-tools
brew install --cask android-studio

Questions / 2check

Specific SDKs

sdkmanager "platform-tools" "extras;intel;Hardware_Accelerated_Execution_Manager" "emulator"

(Questions: Long ago I also installed "platforms;android-25" "build-tools;25.0.3" which is needed for building. I see that "build-tools;28.0.3" is still installed on my system too …)

Create Android Emulators

@ref https://gist.github.com/mrk-han/66ac1a724456cadf1c93f4218c6060ae

(Android 9, Chrome 69)

sdkmanager --install "system-images;android-28;google_apis;x86"
echo "no" | avdmanager --verbose create avd --force --name "pixel_9.0" --device "pixel" --package "system-images;android-28;google_apis;x86" --tag "google_apis" --abi "x86"
alias pixel_9.0='emulator @pixel_9.0 -no-boot-anim -netdelay none -no-snapshot -skin 1080x1920'

(Android 10, Chrome 74)

sdkmanager --install "system-images;android-29;google_apis;x86"
echo "no" | avdmanager --verbose create avd --force --name "pixel_10.0" --device "pixel" --package "system-images;android-29;google_apis;x86" --tag "google_apis" --abi "x86"
alias pixel_10.0='emulator @pixel_10.0 -no-boot-anim -netdelay none -no-snapshot -skin 1080x1920'

(Android 11, Chrome 83)

sdkmanager --install "system-images;android-30;google_apis;x86"
echo "no" | avdmanager --verbose create avd --force --name "pixel_11.0" --device "pixel" --package "system-images;android-30;google_apis;x86" --tag "google_apis" --abi "x86"
alias pixel_11.0='emulator @pixel_11.0 -no-boot-anim -netdelay none -no-snapshot -skin 1080x1920'

Connect Hardware Keyboard to Emulators

@ref https://coderwall.com/p/i2heaw/enable-hardware-keyboard-input-in-android-emulators

Edit all avd configs and add hw.keyboard=yes to them.

One-liner:

for f in ~/.android/avd/*.avd/config.ini; do echo 'hw.keyboard=yes' >> "$f"; done
@bramus bramus added the enhancement New feature or request label Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant