Andy CrossGate Yan f2fae9f416 Major overhaul
More automation, less manual steps
Credits to @Magendanz for many of the ideas!
2020-04-13 11:35:09 +00:00

27 lines
1.1 KiB
Markdown

## Building PHH-based LineageOS GSIs ##
To get started with building LineageOS GSI, you'll need to get familiar with [Git and Repo](https://source.android.com/source/using-repo.html) as well as [How to build a GSI](https://github.com/phhusson/treble_experimentations/wiki/How-to-build-a-GSI%3F).
First, open a new Terminal window, which defaults to your home directory. Clone the modified treble_experimentations repo there:
git clone https://github.com/AndyCGYan/treble_experimentations
Create a new working directory for your LineageOS build and navigate to it:
mkdir lineage-17.x-build-gsi; cd lineage-17.x-build-gsi
Initialize your LineageOS workspace:
repo init -u https://github.com/LineageOS/android.git -b lineage-17.1
Clone the modified treble patches and this repo:
git clone https://github.com/AndyCGYan/treble_patches -b lineage-17.1
git clone https://github.com/AndyCGYan/treble_build_los -b lineage-17.1
Finally, start the build script:
bash treble_build_los/buildbot_treble.sh
Be sure to update the cloned repos from time to time!