The Xiaomi Redmi 7 (codenamed "onclite") and Xiaomi Y3 (codenamed "onc") is a mid-range smartphone from Xiaomi. It was announced on March, 2019.
Basic | Spec Sheet |
---|---|
CPU | Octa-core (4x1.8 GHz Kryo 250 Gold & 4x1.8 GHz Kryo 250 Silver) |
Chipset | Qualcomm SDM632 Snapdragon 632 (14 nm) |
GPU | Adreno 506 |
Shipped Android Version | 9.0 |
Memory | 64 GB, 4 GB RAM or 32 GB, 3 GB RAM |
MicroSD | microSD, up to 512 GB (dedicated slot) |
Battery | Non-removable Li-Ion 4000 mAh battery |
Display | 6.26 inches, 97.8 cm2 (~81.5% screen-to-body ratio) |
Rear Camera | 12 MP, f/1.8, 1.25µm, PDAF |
Front Camera | 8 MP, f/2.0, 1.12µm |
This TWRP automatically detects the device region and updates the device code name "onclite" or "onc"
First checkout Minimal TWRP with OmniROM Tree:
repo init -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-9.0
repo sync
You need to clone kernel source:
git clone -b twrp https://github.com/AlpacaGang/kernel_xiaomi_onclite.git kernel/xiaomi/onclite
And execute these:
export ALLOW_MISSING_DEPENDENCIES=true # Only if using Minimal TWRP Tree
. build/envsetup.sh
lunch omni_onclite-eng
mka recoveryimage
Testing it:
fastboot boot out/target/product/onclite/recovery.img
Flash it via fastboot:
fastboot flash recovery recovery.img
Or use Official TWRP App to install it.
Thanks to @mauronofrio for his work on TWRP
Thanks to @Dhina_17 for 'onclite' blobs