TWRP Device configuration for realme X2 Pro (samurai)
Works:
- ADB
- Decryption of /data
- Screen brightness settings
- Correct screenshot color
- MTP
- Flashing (opengapps, roms, images and so on)
- Backup/Restore
- USB OTG
First checkout minimal twrp source:
repo init --depth=1 -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-12.1
repo sync
git clone https://github.com/HyperTeam/twrp_device_realme_samurai -b twrp-12 device/realme/samurai
Finally execute these:
. build/envsetup.sh
lunch twrp_RMX1931-eng
mka recoveryimage
To test it:
fastboot boot out/target/product/RMX1931/recovery.img