Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e47bf3099a | ||
|
|
05330a22e9 | ||
|
|
2ace4e4189 | ||
|
|
1f63a1b361 | ||
|
|
99612391a8 | ||
|
|
a2df947ba3 | ||
|
|
a2f21d4e6a | ||
|
|
1809ec0bc1 |
@@ -0,0 +1 @@
|
||||
/local_manifests_device
|
||||
@@ -1,20 +1,20 @@
|
||||
|
||||
## Building PHH-based LineageOS GSIs ##
|
||||
## Building TrebleDroid-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), and set up your environment by referring to [LineageOS Wiki](https://wiki.lineageos.org/devices/redfin/build) (mainly "Install the build packages") and [How to build a GSI](https://github.com/phhusson/treble_experimentations/wiki/How-to-build-a-GSI%3F).
|
||||
Set up your environment by referring to [LineageOS Wiki](https://wiki.lineageos.org/devices/TP1803/build) (mainly "Install the build packages" and "Install the repo command").
|
||||
|
||||
First, open a new Terminal window, which defaults to your home directory. Create a new working directory for your LineageOS build and navigate to it:
|
||||
Create a new working directory for your LineageOS build and navigate to it:
|
||||
|
||||
mkdir lineage-19.x-build-gsi; cd lineage-19.x-build-gsi
|
||||
mkdir lineage-20-build-td; cd lineage-20-build-td
|
||||
|
||||
Initialize your LineageOS workspace:
|
||||
|
||||
repo init -u https://github.com/LineageOS/android.git -b lineage-19.1 --git-lfs
|
||||
repo init -u https://github.com/LineageOS/android.git -b lineage-20.0 --git-lfs
|
||||
|
||||
Clone both this and the patches repos:
|
||||
|
||||
git clone https://github.com/AndyCGYan/lineage_build_unified lineage_build_unified -b lineage-19.1
|
||||
git clone https://github.com/AndyCGYan/lineage_patches_unified lineage_patches_unified -b lineage-19.1
|
||||
git clone https://github.com/AndyCGYan/lineage_build_unified lineage_build_unified -b lineage-20-td
|
||||
git clone https://github.com/AndyCGYan/lineage_patches_unified lineage_patches_unified -b lineage-20-td
|
||||
|
||||
Finally, start the build script - for example, to build for all supported archs:
|
||||
|
||||
@@ -24,7 +24,7 @@ Be sure to update the cloned repos from time to time!
|
||||
|
||||
---
|
||||
|
||||
Note: VNDKLite and Secure targets are generated from built images instead of source-built - refer to [sas-creator](https://github.com/AndyCGYan/sas-creator).
|
||||
Note: VNDKLite targets are generated from built images instead of source-built - refer to [sas-creator](https://github.com/AndyCGYan/sas-creator).
|
||||
|
||||
---
|
||||
|
||||
|
||||
+10
-20
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
echo ""
|
||||
echo "LineageOS 19.x Unified Buildbot"
|
||||
echo "LineageOS 20 Unified Buildbot"
|
||||
echo "Executing in 5 seconds - CTRL-C to exit"
|
||||
echo ""
|
||||
sleep 5
|
||||
@@ -45,7 +45,7 @@ echo\
|
||||
)' ERR
|
||||
|
||||
START=`date +%s`
|
||||
BUILD_DATE="$(date +%Y%m%d)"
|
||||
BUILD_DATE="$(date -u +%Y%m%d)"
|
||||
|
||||
prep_build() {
|
||||
echo "Preparing local manifests"
|
||||
@@ -62,14 +62,11 @@ prep_build() {
|
||||
mkdir -p ~/build-output
|
||||
echo ""
|
||||
|
||||
repopick -t twelve-burnin -r -f
|
||||
repopick -t 13-burnin -r -f
|
||||
repopick -t 13-taro-kalama -r -f
|
||||
repopick 321337 -r -f # Deprioritize important developer notifications
|
||||
repopick 321338 -r -f # Allow disabling important developer notifications
|
||||
repopick 321339 -r -f # Allow disabling USB notifications
|
||||
repopick 329229 -r -f # Alter model name to avoid SafetyNet HW attestation enforcement
|
||||
repopick 329230 -r -f # keystore: Block key attestation for SafetyNet
|
||||
repopick 331534 -r -f # SystemUI: Add support to add/remove QS tiles with one tap
|
||||
repopick 331791 -r -f # Skip checking SystemUI's permission for observing sensor privacy
|
||||
}
|
||||
|
||||
apply_patches() {
|
||||
@@ -83,7 +80,7 @@ prep_device() {
|
||||
|
||||
prep_treble() {
|
||||
apply_patches patches_treble_prerequisite
|
||||
apply_patches patches_treble_phh
|
||||
apply_patches patches_treble_td
|
||||
}
|
||||
|
||||
finalize_device() {
|
||||
@@ -106,15 +103,8 @@ finalize_treble() {
|
||||
}
|
||||
|
||||
build_device() {
|
||||
if [ ${1} == "arm64" ]
|
||||
then
|
||||
lunch lineage_arm64-userdebug
|
||||
make -j$(lscpu -b -p=Core,Socket | grep -v '^#' | sort -u | wc -l) systemimage
|
||||
mv $OUT/system.img ~/build-output/lineage-19.1-$BUILD_DATE-UNOFFICIAL-arm64$(${PERSONAL} && echo "-personal" || echo "").img
|
||||
else
|
||||
brunch ${1}
|
||||
mv $OUT/lineage-*.zip ~/build-output/lineage-19.1-$BUILD_DATE-UNOFFICIAL-${1}$($PERSONAL && echo "-personal" || echo "").zip
|
||||
fi
|
||||
brunch ${1}
|
||||
mv $OUT/lineage-*.zip ~/build-output/lineage-20.0-$BUILD_DATE-UNOFFICIAL-${1}$($PERSONAL && echo "-personal" || echo "").zip
|
||||
}
|
||||
|
||||
build_treble() {
|
||||
@@ -129,9 +119,9 @@ build_treble() {
|
||||
esac
|
||||
lunch lineage_${TARGET}-userdebug
|
||||
make installclean
|
||||
make -j$(nproc --all) systemimage
|
||||
mv $OUT/system.img ~/build-output/lineage-19.1-$BUILD_DATE-UNOFFICIAL-${TARGET}$(${PERSONAL} && echo "-personal" || echo "").img
|
||||
make vndk-test-sepolicy
|
||||
make -j$(lscpu -b -p=Core,Socket | grep -v '^#' | sort -u | wc -l) systemimage
|
||||
mv $OUT/system.img ~/build-output/lineage-20.0-$BUILD_DATE-UNOFFICIAL-${TARGET}$(${PERSONAL} && echo "-personal" || echo "").img
|
||||
#make vndk-test-sepolicy
|
||||
}
|
||||
|
||||
if ${NOSYNC}
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<manifest>
|
||||
<project name="phhusson/vendor_hardware_overlay" path="vendor/hardware_overlay" remote="github" revision="pie" />
|
||||
<project name="phhusson/device_phh_treble" path="device/phh/treble" remote="github" revision="android-12.0" />
|
||||
<project name="TrebleDroid/vendor_hardware_overlay" path="vendor/hardware_overlay" remote="github" revision="pie" />
|
||||
<project name="TrebleDroid/device_phh_treble" path="device/phh/treble" remote="github" revision="android-13.0" />
|
||||
<project name="phhusson/vendor_vndk-tests" path="vendor/vndk-tests" remote="github" revision="master" />
|
||||
<project name="phhusson/vendor_interfaces" path="vendor/interfaces" remote="github" revision="android-11.0" />
|
||||
<project name="TrebleDroid/vendor_interfaces" path="vendor/interfaces" remote="github" revision="android-13.0" />
|
||||
<project name="phhusson/vendor_lptools" path="vendor/lptools" remote="github" revision="master" />
|
||||
<project name="phhusson/vendor_magisk" path="vendor/magisk" remote="github" revision="android-10.0" />
|
||||
<project name="TrebleDroid/treble_app" path="treble_app" remote="github" revision="master" />
|
||||
<project name="AndyCGYan/android_packages_apps_QcRilAm" path="packages/apps/QcRilAm" remote="github" revision="master" />
|
||||
<remote name="gitlab" fetch="https://gitlab.com/" />
|
||||
<project name="davi.sh/gms-android-12" path="vendor/partner_gms" remote="gitlab" revision="master" />
|
||||
<project name="MindTheGapps/vendor_gapps" path="vendor/gapps" remote="gitlab" revision="tau" />
|
||||
</manifest>
|
||||
|
||||
Reference in New Issue
Block a user