Docker for Android SDK with preinstalled build tools and emulator image
Go to file
Amab dddb2756a6
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details
Fix README.md (#7)
Reviewed-on: #7
Co-authored-by: Amab <juanmi1982@gmail.com>
Co-committed-by: Amab <juanmi1982@gmail.com>
2023-12-01 15:50:49 +01:00
licenses initial commit 2020-10-07 17:58:47 -04:00
tools Update to Android SDK 34 (#6) 2023-06-10 11:52:12 +02:00
.drone.yml Revert "Run Drone CI pipeline on pull requests only" 2023-07-08 10:32:45 +02:00
.gitignore initial commit 2020-10-07 17:58:47 -04:00
Dockerfile Update to Android SDK 34 (#6) 2023-06-10 11:52:12 +02:00
README.md Fix README.md (#7) 2023-12-01 15:50:49 +01:00

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 git.cuernodehipnos.es/marown/android-sdk-docker:latest bash
    # check installed packages
    $ sdkmanager --list
    # create and run emulator
    $ avdmanager --verbose create avd --force --name "generic_34" --package "system-images;android-34;google_apis;x86_64" --tag "google_apis" --abi "x86_64"
    $ emulator -avd "generic_34" -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 git.cuernodehipnos.es/marown/android-sdk-docker:latest sdkmanager --list
    # list existing emulators
    $ docker run -it --rm git.cuernodehipnos.es/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