Available at https://github.com/corsicanu/android_kernel_samsung_universal9830
cd ~
sudo apt install git aria2 -y
git clone https://gitlab.com/OrangeFox/misc/scripts
cd scripts
sudo bash setup/android_build_env.sh
sudo bash setup/install_android_sdk.sh
mkdir ~/OrangeFox_sync
cd ~/OrangeFox_sync
git clone https://gitlab.com/OrangeFox/sync.git
cd ~/OrangeFox_sync/sync/
./orangefox_sync.sh --branch 12.1 --path ~/fox_12.1
cd ~/fox_12.1
git clone -b orangefox-12.1 https://github.com/ItsPi3141-Exynos/orangefox_device_samsung_z3s.git device/samsung/z3s
. build/envsetup.sh
export ALLOW_MISSING_DEPENDENCIES=true
export FOX_BUILD_DEVICE=z3s
export LC_ALL="C"
. device/samsung/z3s/vendorsetup.sh
lunch twrp_z3s-eng && mka adbd recoveryimage
Note
Sometimes, you will need to clean the build tree so that certain files can be regenerated.
mka clean
- Original TWRP device tree: https://github.com/TeamWin/android_device_samsung_z3s/tree/android-11
- vendorsetup.sh: https://gitlab.com/OrangeFox/device/a51nsxx
- OrangeFox configuration: https://gitlab.com/OrangeFox/vendor/recovery/-/blob/master/orangefox_build_vars.txt
- Flashlight fix: https://gitlab.com/OrangeFox/device/a72q
- Additional reference: https://github.com/PitchBlackRecoveryProject/android_device_samsung_z3s-pbrp/