You'll need to get familiar with Git and Repo as well as How to build a GSI.
Create the directory
mkdir derp
cd derpTo initialize your local repository using the AOSP/CAF based DerpFest source, use a command like this:
repo init -u https://github.com/DerpFest-AOSP/android_manifest.git -b 16.2 --git-lfsSync up with this command:
repo sync -j192clone all repo
git clone https://github.com/Doze-off/treble_app -b master treble_app
git clone https://github.com/Doze-off/vendor_interfaces -b android-16.0 vendor/interfaces
git clone https://github.com/Doze-off/device_phh_treble -b android-16.2 device/phh/treble
git clone https://github.com/AndyCGYan/android_packages_apps_QcRilAm -b master packages/apps/QcRilAm
git clone https://android.googlesource.com/platform/prebuilts/vndk/v30 prebuilts/vndk/v30
git clone https://android.googlesource.com/platform/prebuilts/vndk/v28 prebuilts/vndk/v28
git clone https://github.com/TrebleDroid/platform_prebuilts_vndk_v29 prebuilts/vndk/v29
git clone https://github.com/ponces/treble_adapter -b master treble_adapter
git clone https://github.com/Doze-off/vendor_hardware_overlay -b pie vendor/hardware_overlay
git clone https://github.com/phhusson/vendor_magisk.git -b android-10.0 vendor/magisk
git clone https://github.com/Doze-off/patches.git -b patches-16.1 patches
git clone https://github.com/phhusson/vendor_lptools.git -b master vendor/lptoolsMove the apply-patches.sh script inside the patches folder to the main folder
Use the command:
bash apply-patches.sh ~/derpNote: if some patches fail, you have to apply them manually
Move the files AndroidProducts.mk, derp.mk, derpfest_gsi.mk to folder, device/phh/treble
Compilation: Follow the commands
source build/envsetup.sh
lunch derpfest_gsi-bp1a-userdebug
make systemimage -j48Compress:
xz -9 -T0 -v -z out/target/product/tdgsi_arm64_ab/system.imgFinish