GithubHelp home page GithubHelp logo

lohriialo / aosp-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zawzaww/aosp-android

0.0 0.0 0.0 857 KB

Android platform manifest for building Pure Android system image

Makefile 100.00%

aosp-android's Introduction

PureAOSP

Android Platform Manifest for Building Pure Android

AOSP - Android Open Source Project

  • PureAOSP is a free and Open-source unmodified Android OS also known as Pure Android with Upstream Linux Kernel.
  • This repository is aimed for reducing AOSP Source Code's filesize for my personal PureAOSP project.
  • Remove unused Android Git repositories. Example: device trees, kernel trees, prebuilts, system packages and etc..
  • You can use this PureAOSP manifest repository if you need AOSP Android Platform Sources.

How To Build Pure Android from Source Code

To get started with PureAOSP sources to build Android system image, you'll need to get familiar with Git and Repo.

To initialize your local repository using the PureAOSP trees to build Android system image:

   repo init -u https://github.com/zawzaww/aosp-android.git -b android-11.0.0

(OR)

To initialize a shallow clone, which will save even more space, use a command like this:

   repo init --depth=1 -u https://github.com/zawzaww/aosp-android.git -b android-11.0.0

Then to downloading the sources:

   repo sync

(OR)

Additionally, you can define the number of parallel download repo should do:

  • N - the number of parallel downlods
   repo sync -jN -f --force-sync --no-clone-bundle --no-tags

You can type this:

   repo sync  -f --force-sync --no-clone-bundle --no-tags -j$(nproc --all)

After syncing is done, use these commands to build:

cd <source-dir>

. build/envsetup.sh

lunch <device_name>

make -j4 (OR) make -j$(nproc --all)

Explanation

For make -jN command

  • Official AOSP Docs: Build everything with GNU make can handle parallel tasks with a -jN argument and it's common to use a number of tasks N that's between 1 and 2 times the number of hardware threads on the computer being used for the build. For example, on a dual-E5520 machine (2 CPUs, 4 cores per CPU, 2 threads per core), the fastest builds are made with commands between make -j16 and make -j32.

Blog Post

If you want to know detail about Pure Android OS building for your android device, read more on my Personal Blog.

Contributed by: ZawZaw @XDA-Developers

aosp-android's People

Contributors

arrase avatar bdcgoogle avatar bsimonnet avatar cco3 avatar cferris1000 avatar colincross avatar danalbert avatar danw avatar darkobas avatar delphij avatar deymo avatar enh-google avatar freeinfra avatar gauravsh-google avatar ghartman17022 avatar humberos avatar iam avatar kruton avatar liutikas avatar maxwen avatar mkayyash avatar nfuller avatar nickkral avatar paulduffin avatar pirama-arumuga-nainar avatar stephenhines avatar tornewuff avatar vapier avatar wileyatgoogle avatar zawzaww 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.