Skip to content

redmi-fire-devs/twrp_device_xiaomi_fire

Repository files navigation

TWRP Device Tree for Xiaomi Redmi 12

The Xiaomi Redmi 12 (codenamed "fire") is an entry-level smartphone from Xiaomi.

It was announced and released in June 2023.

Device specifications

Feature Specification
Chipset Mediatek MT6769H Helio G88
CPU Octa-core (2x2.0 GHz Cortex-A75 & 6x1.8 GHz Cortex-A55)
GPU Mali-G52 MC2
Memory 4GB / 6GB / 8GB RAM (LPDDR4X)
Shipped OS Android 13, MIUI 14
Storage 128GB / 256GB (eMMC 5.1)
SIM Hybrid Dual SIM (Nano-SIM, dual stand-by)
MicroSD Up to 1TB
Battery 5000mAh Li-Po (non-removable), 18W fast charge
Dimensions 168.6 x 76.3 x 8.2 mm (6.64 x 3.00 x 0.32 in)
Display 6.79", 1080 x 2460 pixels, IPS LCD, 90Hz (~396 ppi density)
Rear Camera 1 50 MP, f/1.8, (wide), PDAF
Rear Camera 2 8 MP, f/2.2, 120˚ (ultrawide)
Rear Camera 3 2 MP, f/2.4, (macro)
Front Camera 8 MP, f/2.1
Fingerprint (side-mounted)
Sensors accelerometer, compass

$~$

Working features so far

Blocking checks

  • Correct screen/recovery size
  • Working Touch, screen
  • Working slot switching
  • Backup to internal/microSD
  • Restore from internal/microSD
  • reboot to system
  • ADB

Medium checks

  • update.zip sideload
  • UI colors (red/blue inversions)
  • Screen goes off and on
  • F2FS/EXT4 Support, exFAT/NTFS where supported
  • all important partitions listed in mount/backup lists
  • backup/restore to/from external (USB-OTG) storage
  • backup/restore to/from adb (https://gerrit.omnirom.org/#/c/15943/)
  • decrypt /data
  • Correct date

Minor checks

  • MTP export
  • reboot to bootloader
  • reboot to recovery
  • poweroff
  • battery level
  • temperature
  • encrypted backups (no option)
  • input devices via USB (USB-OTG) - keyboard, mouse and disks
  • USB mass storage export (unavailable)
  • set brightness
  • vibrate
  • screenshot
  • partition SD card

$~$

How to build

  1. Set up the build environment following the instructions here

  2. In the root folder of the fetched repo, clone the device tree:

git clone https://github.com/AntarticShaurant/android_device_xiaomi_fire.git device/xiaomi/fire
  1. To build:
export ALLOW_MISSING_DEPENDENCIES=true
. build/envsetup.sh
lunch twrp_fire-eng
mka bootimage

$~$

Device picture

xiaomi-redmi-12-1