- Do you want to be part of our team? Read our documentation and fill out our application form
- Around 250G disk space
- 20G or more usable internet
- A computer with at least 16G RAM running Linux or MacOS
-
Preparing the SERVER
- To prepare your server, i recommend using Akhil Narang scripts.
- Make directory for the repo binary
mkdir ~/bin - Add directory for the repo binary to its path
PATH=~/bin:$PATH - Downloading repo binary and placing it in the proper directory
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo - Giving the repo binary the proper permissions
chmod a+x ~/bin/repo - Creating directory for where the ROM repo will be stored and synced
mkdir ~/AOSPK cd ~/AOSPK
-
Preparing the ROM
- Make sure you have a build environment setup.
- Make a new directory, cd to it and run
repo init -u https://github.com/AOSPK/manifest -b twelve - Sync!
repo sync -c -j$(nproc --all) --no-clone-bundle --no-tags --force-sync
-
Preparing device
- Clone your tree repositories
Example:
git clone https://github.com/YourUser/device_xiaomi_beryllium -b twelve device/xiaomi/beryllium - Move/copy your
<ROM>.mk(Example:lineage.mkorlineage_beryllium.mk) file toaosp_beryllium.mk. - Open this file and
- Set PRODUCT_NAME to
aosp_<device>(Example:aosp_beryllium) - For a Phone or tablet with a SIM Card, add
# Inherit from aosp vendor $(call inherit-product, vendor/aosp/config/common_full_phone.mk) - For a WiFi-only tablet, add
# Inherit from aosp vendor $(call inherit-product, vendor/aosp/config/common_full_tablet_wifionly.mk)
- Set PRODUCT_NAME to
- Save and exit
- Clone your tree repositories
Example:
-
Building
- If you want to do it manually, run:
Example:
. build/envsetup.sh lunch aosp_<device>-userdebug make -j$(nproc --all) baconFor detailed logs, use:. build/envsetup.sh lunch aosp_beryllium-userdebug make -j$(nproc --all) baconmake -j$(nproc --all) bacon 2>&1 | tee log.txt - This will start compiling the build.
- Resolve errors if any and continue building.
- Remember to
make clobber && make cleanevery now and then!
- If you want to do it manually, run:
- For common porting related errors, visit Android Building Help
- Make sure you provide relevant logs, screenshots and details with all sources you used.