Xiaomi Redmi 12 (xiaomi-fire)

From postmarketOS


Xiaomi Redmi 12
Manufacturer Xiaomi
Name Redmi 12
Codename xiaomi-fire
Released 2023
Category testing
Pre-built images no
Original software Android
Original version 13
Extended version 14
Hardware
Chipset MediaTek Helio G88 (MT6769H)
CPU 2x 2.0 GHz ARM Cortex-A75 & 6x 1.8 GHz ARM Cortex-A55
GPU Mali-G52 MC2
Display 1080 x 2460 PLS IPS
Storage 128/256 GB
Memory 4/8 GB
Architecture AArch64
Type handset
Features
USB Networking
Partial
Flashing
Partial
Touchscreen
Partial
Display
Works
WiFi
Broken
FDE
Broken
Mainline
Broken
Battery
Broken
3D Acceleration
Broken
Audio
Broken
Bluetooth
Broken
Camera
Broken
GPS
Broken
Mobile data
Broken
Internal storage
SMS
Broken
Calls
Broken
USB OTG
Works
NFC
Broken
Sensors
Accelerometer
Proximity
Misc
Built-in DVB
Camera Flash
Memory Card
Haptics


Xiaomi Redmi 12 is a MediaTek Helio G88 (MT6769H) device released by Xiaomi in 2023.

Contributors

  • Buildingat90degreesC (Currently running LineageOS 21 GSI on it)

Users owning this device


How to enter flash mode

When the phone is powered off, hold the Power and Volume Down button to enter into fastboot mode.

To boot into recovery, hold the Power and Volume Up buttons.

To enter into fastbootd, enter into fastboot mode and type $ fastboot reboot fastboot

Unlocking the Bootloader

You'll need to unlock the bootloader using the official method with Mi Unlock Tool

https://en.miui.com/unlock

You'll need to link your device with your Mi Account and wait 7 days to unlock the device.

Installation

Make sure your phone has its bootloader unlocked.

Preparation

Choose the following in the pmbootstrap init wizard:

Vendor: xiaomi
Device codename: fire
User interface: xfce4

xfce4 and MATE is tested and works out of the box. Other UIs are not guaranteed to work.

After choosing an user interface and the rest, type the below command to begin downloading and preparing postmarketOS for installation

$ pmbootstrap install

Now type the following commands to flash pmOS to your device.

$ pmbootstrap flasher flash_kernel

$ pmbootstrap flasher flash_rootfs

type "fastboot reboot" to exit fastboot.

That's it, if you get a boot splash and then the xfce desktop you successfully installed postmarketOS to your Redmi 12.

Icon WARNING: THIS WILL ERASE YOUR SUPER PARTITION. Backup your super partition with MTKClient before flashing, or you won't be able to flash GSIs into system partition again.

Touchscreen

Touchscreen doesn't work currently, and I've tried evtest and it didn't output anything.

fts_ts seems to search for a firmware file called "focaltech_ts_fw_.bin" somewhere, but I haven't figured it out yet. I created an issue for it on pmaports.


https://gitlab.com/postmarketOS/pmaports/-/issues/2608

UPDATE: Touchscreen works in MATE after waiting for screen to completely turn off.

Graphical Interfaces

Interface Info Working
none Doesn't work. But gets stuck at the loading splash. N
GNOME 3 Unknown - Not tested
i3wm Unknown - Not tested
MATE works fine, do not open power statistics or anything power management related or the device will shutdown.
[1]Phosh Unknown - Not tested.
Plasma-Desktop Unknown - Not tested
[2]Plasma Mobile Unknown - Not tested.
Shelli Unknown / Not tested.
Sxmo Unknown - Not Tested.
[3]Sway Wayland doesn't work on this device. N
[4]Weston Unknown / Not tested
[5]Xfce4 Works like expected, except it shows the battery as 1% and then shuts down afterwards if not plugged in. Y

See also

pmaports!4827 Initial merge request

Device package

Kernel package