(forked from j4nn) TWRP configuration for Sony Tama (SDM845) platform devices https://xdaforums.com/t/recovery-twrp-3-7-1_12-xz2-xz2c-xz2p-xz3.4772176/
  • C++ 68.3%
  • Makefile 21.8%
  • C 6%
  • Shell 3.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-12-06 21:04:13 +02:00
akari add prebuilt kernels and modules for xz2, xz2c, xz2p and xz3 devices 2025-10-05 00:10:11 +02:00
akatsuki add prebuilt kernels and modules for xz2, xz2c, xz2p and xz3 devices 2025-10-05 00:10:11 +02:00
apollo add prebuilt kernels and modules for xz2, xz2c, xz2p and xz3 devices 2025-10-05 00:10:11 +02:00
aurora add prebuilt kernels and modules for xz2, xz2c, xz2p and xz3 devices 2025-10-05 00:10:11 +02:00
bootctrl pick bootctrl from tama common los 22.1 branch 2025-09-27 23:41:31 +02:00
gpt-utils add missing gpt-utils kernel headers 2025-09-27 23:55:27 +02:00
patches remove vold patch used to support decryption with sodp roms 2025-10-11 19:23:50 +02:00
prebuilt/modules add prebuilt kernels and modules for xz2, xz2c, xz2p and xz3 devices 2025-10-05 00:10:11 +02:00
recovery/root add support for usb mass storage mode for micro SD card 2025-10-11 12:43:07 +02:00
sepolicy add xz2, xz2c, xz2p and xz3 twrp devices product makefiles 2025-09-28 14:45:32 +02:00
Android.bp pick bootctrl from tama common los 22.1 branch 2025-09-27 23:41:31 +02:00
Android.mk add prebuilt kernels and modules for xz2, xz2c, xz2p and xz3 devices 2025-10-05 00:10:11 +02:00
AndroidProducts.mk initial attempt for 14.1 branch 2025-10-11 20:09:28 +02:00
BoardConfigCommon.mk initial attempt for 14.1 branch 2025-10-11 20:09:28 +02:00
device.mk initial attempt for 14.1 branch 2025-10-11 20:09:28 +02:00
README.md add build instructions into readme 2025-12-06 21:04:13 +02:00
recovery.fstab clean up recovery fstab and related twrp flags file 2025-10-05 16:25:39 +02:00
twrp.flags clean up recovery fstab and related twrp flags file 2025-10-05 16:25:39 +02:00
twrp_akari.mk clone qcom recovery rc to device named recovery rc script 2025-10-05 23:42:34 +02:00
twrp_akatsuki.mk clone qcom recovery rc to device named recovery rc script 2025-10-05 23:42:34 +02:00
twrp_apollo.mk clone qcom recovery rc to device named recovery rc script 2025-10-05 23:42:34 +02:00
twrp_aurora.mk clone qcom recovery rc to device named recovery rc script 2025-10-05 23:42:34 +02:00
vendorsetup.sh add xz2, xz2c, xz2p and xz3 twrp devices product makefiles 2025-09-28 14:45:32 +02:00

TWRP configuration for Sony Tama (SDM845) platform devices

Supported Sony Snapdragon 845 based devices

  • Xperia XZ2 H8216/H8266/H8296 => akari
  • Xperia XZ2 Compact H8314/H8324 => apollo
  • Xperia XZ2 Premium H8116/H8166 => aurora
  • Xperia XZ3 H8416/H9436/H9493 => akatsuki

Clone manifest twrp-14.1

repo init -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-14.1

Sync manifest twrp-14.1

repo sync -j$(nproc --all)

Clone the device tree

git clone https://github.com/j4nn/android_device_sony_tama.git -b android-14.1 device/sony/tama

Build

unset JAVAC
unset JAVA_HOME
unset LEX
export ALLOW_MISSING_DEPENDENCIES=true
. build/envsetup.sh
export USE_CUSTOM_VERSION=true

lunch twrp_akari-ap2a-userdebug; mka bootimage
lunch twrp_apollo-ap2a-userdebug; mka bootimage
lunch twrp_aurora-ap2a-userdebug; mka bootimage
lunch twrp_akatsuki-ap2a-userdebug; mka bootimage

Thanks

  • MartinX3 (android9 twrp for tama devices including touch type detection)
  • TWRP developers (other devices setup as a base template)
  • Lineage OS developers (multiple picks from tama devices configs)

Please see commits history for proper attribution.