Docker for Android SDK with preinstalled build tools and emulator image
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Marown fd0e395130
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details
Merge pull request 'Add Drone CI pipeline' (#2) from feature/drone into main
Reviewed-on: #2
5 months ago
licenses initial commit 3 years ago
tools Update to Android SDK 33 (#1) 9 months ago
.drone.yml Fix recovery of Drone secrets 5 months ago
.gitignore initial commit 3 years ago
Dockerfile Update to Android SDK 33 (#1) 9 months ago
README.md Update README 5 months ago

README.md

Docker for Android SDK

Docker for Android SDK with preinstalled build tools and emulator image

Edit from docker-android-sdk/android-31

Usage

  • Interactive way

    $ docker run -it --rm --device /dev/kvm Marown/android-sdk-docker:latest bash
    # check installed packages
    $ sdkmanager --list
    # create and run emulator
    $ avdmanager --verbose create avd --force --name "generic_33" --package "system-images;android-33;google_apis;x86_64" --tag "google_apis" --abi "x86_64"
    $ emulator -avd "generic_33" -no-window -no-audio -no-boot-anim -netdelay none -no-snapshot -wipe-data &
    $ adb devices
    # You can also run other Android platform tools, which are all added to the PATH environment variable
    

    To connect the emulator using adb on the docker host machine, start the container with --network host as well. You could also use scrcpy to do a screencast of the emulator.

  • Non-interactive way

    # check installed packages
    $ docker run -it --rm Marown/android-sdk-docker:latest sdkmanager --list
    # list existing emulators
    $ docker run -it --rm Marown/android-sdk-docker:latest avdmanager list avd
    # You can also run other Android platform tools, which are all added to the PATH environment variable