-
Follow the official LineageOS wiki for setting up the build environment up to the Initialize the LineageOS source repository section: https://wiki.lineageos.org/devices/husky/build/
-
Clone LineageOS sources:
repo init -u https://github.com/UDPSendToFailed/android.git -b lineage-23.2 --git-lfs
repo sync
- Create folders for the device-specific sources and clone them:
mkdir -p device/samsung/gta2xlwifi
git clone https://github.com/UDPSendToFailed/android_device_samsung_gta2xlwifi.git -b lineage-23.2 device/samsung/gta2xlwifi/
mkdir -p kernel/samsung/gta2xlwifi
git clone https://github.com/UDPSendToFailed/android_kernel_samsung_gta2xlwifi.git -b lineage-23.2-4.9 kernel/samsung/gta2xlwifi/
mkdir -p vendor/samsung
git clone https://github.com/UDPSendToFailed/proprietary_vendor_samsung.git -b lineage-23.2 vendor/samsung/
- Build the ROM:
cd ~/android/lineage
. build/envsetup.sh
brunch lineage_gta2xlwifi-bp4a-userdebug
If everything goes as expected, the resulting TWRP flashable zip should be in out/target/product/gta2xlwifi/.