-
Notifications
You must be signed in to change notification settings - Fork 0
TWRP Build Instructions 9.0
Mladen Milinkovic edited this page Nov 26, 2022
·
1 revision
Steps to build TWRP recovery for HTC Desire 728G Dual Sim (a50cmg_dwg) on Arch Linux.
pacaur -S aosp-devel
See detailed instructions on Arch Android Wiki
mkdir twrp-9.0 && cd twrp-9.0
repo init --depth=1 -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-9.0
Create .repo/local_manifests/a50cmg_dwg.xml
and add:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="maxrd2/android_device_htc_a50cmg_dwg" path="device/htc/a50cmg_dwg" remote="github" revision="android-5.1" />
</manifest>
repo sync -j$(nproc) -c
virtualenv --python /usr/bin/python2 --system-site-packages venv
. venv/bin/activate
export LC_ALL=C # without this compilation will fail
export ANDROID_JAVA_HOME=/usr/lib/jvm/java-8-openjdk
export PATH="$ANDROID_JAVA_HOME/bin:$PATH"
export ALLOW_MISSING_DEPENDENCIES=true
. build/envsetup.sh
lunch omni_a50cmg_dwg-eng
mka installclean
mka recoveryimage
Successfull build will produce TWRP image: out/target/product/a50cmg_dwg/recovery.img
which can be flashed with:
fastboot flash recovery out/target/product/a50cmg_dwg/recovery.img