Git Product home page Git Product logo

docker_build_aosp's Introduction

Docker build AOSP

Build AOSP or CustomROM With Docker technology


Usage

  1. Clone this repository.

    git clone https://github.com/EndCredits/Docker_build_AOSP -b main
    
    cd  Docker_build_AOSP
    
  2. Copy your local git configs.

    cp ~/.gitconfig gitconfig
    
  3. Build docker image.

    docker build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) --build-arg username=$(id -un) -t android-build-host .
    

    If you are using fish

    docker build --build-arg userid=(id -u) --build-arg groupid=(id -g) --build-arg username=(id -un) -t android-build-host .
    

    Note that if you are using proxy tools like v2raya you may need enable host network mode by appending --network host in build command like:

    docker build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) --build-arg username=$(id -un) -t android-build-host --network host .
    
    
  4. Set Android Build working directory.

    export DOCKER_WORKING_DIRECTORY=<path to your android os source tree>
    

    If you are using fish

    set DOCKER_WORKING_DIRECTORY <path to your android os source tree>
    
  5. Start Docker and map the working directory.

    docker run -it --rm -v $DOCKER_WORKING_DIRECTORY:/android android-build-host
    
  6. Init repo (e.g. PixelExperience 11 Plus)

    cd /android
    
    repo init -u https://github.com/PixelExperience/manifest -b eleven-plus
    
  7. Sync up

    repo sync -j$(nproc --all) --force-sync --no-tags --no-clone-bundle
    
  8. Add your device specific files.

  9. Starting build

    . build/envsetup.sh
    
    lunch aosp_<codename>-< eng | userdebug | user >
    
    m bacon -j$(nproc --all)
    

Credits

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.