https://github.com/znerol/android-emulator-standalone
A simple script to generate standalone macOS apps from existing Android Emulator AVDs.
https://github.com/znerol/android-emulator-standalone
Last synced: about 2 months ago
JSON representation
A simple script to generate standalone macOS apps from existing Android Emulator AVDs.
- Host: GitHub
- URL: https://github.com/znerol/android-emulator-standalone
- Owner: znerol
- License: mit
- Created: 2019-12-05T16:25:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-09T12:30:00.000Z (almost 3 years ago)
- Last Synced: 2025-01-27T06:28:25.175Z (over 1 year ago)
- Language: Shell
- Size: 108 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Android Emulator Standalone
A simple script to generate standalone macOS apps from existing Android Emulator AVDs.
[](https://travis-ci.org/znerol/android-emulator-standalone)
```
Usage: build-app.sh AVD_NAME [ANDROID_SDK_ROOT]
```
The `build-app.sh` script will prepare a directory, copy the AVD and download the necessary SDK components. If the `AVD_NAME` is something like `Pixel_2_API_29`, then the script will create a directory with the name `Pixel 2 API 29.XXXXXX` (where `X` signifies a random character). After the script finishes, the directory can be renamed into `Pixel 2 API 29.app`.
The app bundle then can be distributed to machines without having to install Android Studio or Java.

Whenever the app is first started, the embedded AVD will be copied over to `~/Library/Application Support/Android Emulator Standalone AVD`.
## Caveats
* Use `x86_64` variants of system images. 32bit versions do not seem to work.
* This script calls into `sdkmanager` command line and thus requires Java. It is recommended to set `JAVA_HOME` environment variable to the JRE shipping with Android Studio.
```
export JAVA_HOME=/Applications/Android\ Studio/Contents/jre/jdk/Contents/Home
```
* Produced bundles can become several GB in size.
## License
This Software is licensed under the terms of MIT license.