/aosp-build

AOSP Build System

Primary LanguageMakefileGNU General Public License v3.0GPL-3.0

BiTGApps AOSP Based Build System

Disclaimer

  1. Use this at your own risk. Cyanogenmod received a cease and desist letter from Google when they included Google Apps in their ROM. See: A Note on Google Apps for Android
  2. This project is in no way affiliated with, sponsored by, or related to Google.

Requirement

  • Minimum supported API is 30
  • Supported architecture is ARM

Getting started

1. Download And Install Git LFS

Download git lfs:

https://git-lfs.github.com

Download v3.0.1 (Linux)

Install git lfs:

tar -xz -f git-lfs-linux-amd64-v3.0.1.tar.gz -C lfs
cd lfs
sudo ./install.sh

2. Clone Build System

git clone https://github.com/BiTGApps/aosp-build.git vendor/gapps

3. Check Build System

Check size of cloned sources using below command:

du -h -s vendor/gapps/sources

It should be 696MB, if not then you need to integrate git lfs inside the source by using below commands:

cd vendor/gapps
git lfs install --local
git lfs pull

4. Include Targets And GApps Make File

You need to add targets which declares architecture and platform SDK version. As we are unable to retrieve targets from existing variables TARGET_ARCH and PLATFORM_SDK_VERSION.

In device/manufacturer/product/device.mk file add targets like this:

TARGET_ARCH := arm
TARGET_SDK_VERSION := 31

According to your device architecture, you can specify either arm or arm64 for TARGET_ARCH.

1. arm refers to armeabi/armeabi-v7a/armv7l
2. arm64 refers to aarch64/armv8l

To know more about your device architecture, run this uname -m command on terminal.

After adding targets, The gapps.mk file will make the Android build system build the necessary packages, and include the necessary files.

Just below targets, declare gapps makefile:

$(call inherit-product, vendor/gapps/gapps.mk)

This build system does not support x86/x86-64 architecture of Android.

5. Build Android

If you do not declare targets, it won't build at all and exit installation with error message. Apart from this no extra input required.

6. PlayStoreOverlay

Prebuilt PlayStoreOverlay APK taken from OpenGApps. Source with build instructions.

License

The BiTGApps Project itself is licensed under the GPLv3.