adapted for Android 12 based on kernel info from from https://github.com/lineageos-on-pdx201 and twrpdtgen.
- boots
- adb connects
- core partitions are mountable, magisk apk installs correctly
- some partitions can't mount
- backups and flash partitions aren't configured
- FBE (android.hardware.keymaster not loading)
- flashing images doesn't work (android.hardware.boot not loading/missing)
- ALWAYS reboots back to recovery after booting into recovery once (fixed with
dd if=/dev/zero of=/dev/block/platform/soc/4744000.sdhci/by-name/misc
)
# https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp
repo init -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-12.1
repo sync
# include recovery in manifest or clone the repo to device/sony/pdx201
# [...]
# start compiling
. build/envsetup.sh
lunch twrp_pdx201-eng
mka recoveryimage
- https://github.com/TeamWin/android_device_xiaomi_ginkgo - Base device tree
- https://github.com/lineageos-on-pdx201 - Android 12 bringup