Giter Site home page Giter Site logo

nageswar255 / docker-android-sdk-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paldom/docker-android-sdk-tools

0.0 1.0 0.0 3 KB

Docker Android SDK extension with avd devices, python 2.7 for systrace and more.

License: MIT License

Dockerfile 100.00%

docker-android-sdk-tools's Introduction

docker-android-sdk-tools

This repository contains the Dockerfile of the dpal/docker-android-sdk-tools image. Dockerfile is an extension of bitriseio/docker-android-alpha:latest with the following tools:

  • python 2.7 environment for systrace
  • avd system images and predefined emulator (named testdevice)

Usage

Pull image

From Docker Hub:

docker pull dpal/docker-android-sdk-tools:latest

Or build from GitHub:

docker build -t dpal/docker-android-sdk-tools github.com/paldom/docker-android-sdk-tools

Run docker image

Run docker image with docker-composer:

docker-compose run --rm app bash

This command will also bind your current working directory into /var/android.

Android SDK tools

This is a short guide how to use android tools.

Emulator

Here's an example how to run emulator inside container:

echo "no" | emulator64-arm -avd testdevice -noaudio -no-window -gpu off -verbose -qemu -usbdevice tablet

If you build with this image, don't forget to set sdk location in local.properties

sdk.dir=/opt/android-sdk-linux

Build

Example how to build APK, build test APK and intall them on emulator:

./gradlew :app:assembleDebug :app:assembleDebugAndroidTest :app:installDebug :app:installDebugAndroidTest

Performance test

Run systrace with the following command:

python $ANDROID_HOME/platform-tools/systrace/systrace.py --time=10 -o ./trace.html gfx view res

More about android automated performance tests: https://codelabs.developers.google.com/codelabs/android-perf-testing/index.html?index=..%2F..%2Findex#0

docker-android-sdk-tools's People

Contributors

nageswar255 avatar paldom avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.