Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TWRP/OFRP Device Tree for Xiaomi Redmi 12

License

NotificationsYou must be signed in to change notification settings

mahdi-salimi05/ofrp_device_xiaomi_fire

 
 

Repository files navigation

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

It was announced and released in June 2023.

Device specifications

FeatureSpecification
ChipsetMediatek MT6769H Helio G88
CPUOcta-core (2x2.0 GHz Cortex-A75 & 6x1.8 GHz Cortex-A55)
GPUMali-G52 MC2
Memory4GB / 6GB / 8GB RAM (LPDDR4X)
Shipped OSAndroid 13, MIUI 14
Storage128GB / 256GB (eMMC 5.1)
SIMHybrid Dual SIM (Nano-SIM, dual stand-by)
MicroSDUp to 1TB
Battery5000mAh Li-Po (non-removable), 18W fast charge
Dimensions168.6 x 76.3 x 8.2 mm (6.64 x 3.00 x 0.32 in)
Display6.79", 1080 x 2460 pixels, IPS LCD, 90Hz (~396 ppi density)
Rear Camera 150 MP, f/1.8, (wide), PDAF
Rear Camera 28 MP, f/2.2, 120˚ (ultrawide)
Rear Camera 32 MP, f/2.4, (macro)
Front Camera8 MP, f/2.1
Fingerprint(side-mounted)
Sensorsaccelerometer, 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 instructionshere

  2. In the root folder of the fetchedrepo, 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 bashexport ALLOW_MISSING_DEPENDENCIES=trueexport FOX_BUILD_DEVICE=<device>export LC_ALL="C"# for all brancessource 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 imagehere.

  2. dump your boot image withmtkclient:

python3 mtk r boot boot.img
  1. flashorangefox 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

Credits

AntarcticShaurant TWRP Device tree:https://github.com/redmi-fire-devs/twrp_device_xiaomi_fire

Device picture

xiaomi-redmi-12-1

Releases

No releases published

Packages

No packages published

Languages

  • C++59.1%
  • Makefile27.1%
  • C9.9%
  • Shell3.9%

[8]ページ先頭

©2009-2025 Movatter.jp