Skip to content

mahdi-salimi05/ofrp_device_xiaomi_fire

 
 

Repository files navigation

OFRP 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 (not tested), mouse (works) and disks (works)
  • 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/mahdi-salimi05/ofrp_device_xiaomi_fire.git device/xiaomi/fire
  1. To build:
cd ~/OrangeFox # (or whichever directory has the synced manifest)
  /bin/bash # if your Linux shell isn't bash
  export ALLOW_MISSING_DEPENDENCIES=true
  export FOX_BUILD_DEVICE=<device>
  export LC_ALL="C"

# for all brances
  source build/envsetup.sh

# for branches lower than 11.0
  lunch omni_<device>-eng && mka recoveryimage

# for branches lower than 11.0, with A/B partitioning
  lunch omni_<device>-eng && mka bootimage

# for the 11.0 (or higher) branch
  lunch twrp_<device>-eng && mka adbd recoveryimage

# for the 11.0 (or higher) branch, with A/B partitioning
  lunch twrp_<device>-eng && mka adbd bootimage

# for the 12.1 (or higher) branch, vendor_boot-as-recovery builds [this is highly experimental and unsupported!]
  lunch twrp_<device>-eng && mka adbd vendorbootimage

$~$

How to install "permanently"

  1. download orangefox image here (old version is here).

  2. dump your boot image with mtkclient:

python3 mtk r boot boot.img
  1. flash orangefox image to your boot_a "or boot" partition
fastboot flash boot OrangeFox-R12.1-Unofficial-fire.img
  1. reboot to recovery
fastboot reboot recovery
  1. Once booted, put your stock boot image in Internalstorage , MicroSdcard or Usb-Otg then Flash stock boot image in boot partition and tick (Flash to both slots) (this will remove OF recovery form your device; you need to reflash orange fox from menu>Flash current OF). after that it is better to flash OF.zip file

Device picture

xiaomi-redmi-12-1

Releases

No releases published

Packages

No packages published

Languages

  • C++ 59.1%
  • Makefile 27.1%
  • C 9.9%
  • Shell 3.9%