GithubHelp home page GithubHelp logo

mparker17 / docker-fastboot Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 5 KB

Use Docker to run the Android Fastboot tool.

Home Page: https://hub.docker.com/r/mparker17/fastboot/

License: BSD 2-Clause "Simplified" License

Dockerfile 100.00%

docker-fastboot's Introduction

docker-fastboot

Use Docker to run the Android Fastboot tool.

Set up

  1. Clone this repository:

     git clone --recursive https://github.com/mparker17/docker-fastboot.git
     cd docker-fastboot/
    
  2. Build an image:

     docker build -t fastboot .
    

Use

  1. Run fastboot. Replace $subcommand with the fastboot sub-command you want to run.

     docker run --rm -ti --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/fastboot fastboot $subcommand
    

    For example, to list connected devices:

     docker run --rm -ti --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/fastboot fastboot devices
    

    You can leave out $subcommand to run fastboot help:

     docker run --rm -ti --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/fastboot fastboot
    

    Passing -v $PWD:/fastboot maps the current directory to /fastboot in the container, so you can access files in the current directory. Note the working directory is /fastboot by default, so you can refer to files in the current directory using relative paths:

     docker run --rm -ti --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/fastboot fastboot update ./update.img
    

Debugging

If you run into problems, you can run a shell in the container with:

    docker run --rm -ti --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/fastboot --entrypoint /bin/bash fastboot

To run a root shell, add -u root:

    docker run --rm -ti --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/fastboot --entrypoint /bin/bash -u root fastboot

For more information, see the Docker run reference.

Notes

This has only been tested on a Linux system. If you're using something like boot2docker, your USB devices might not be properly mapped.

docker-fastboot's People

Contributors

mparker17 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

vincenzobaz pfcdx

docker-fastboot's Issues

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.