Xiaomi 12 (xiaomi-cupid)

From postmarketOS Wiki
Xiaomi 12
Xiaomi 12
Xiaomi 12
Manufacturer Xiaomi
Name 12
Codename xiaomi-cupid
Released 2021
Type handset
Hardware
Chipset Qualcomm Snapdragon 8 Gen 1 (SM8450)
CPU Octa-core (1x 3.00 GHz Cortex-X2 & 3x 2.50 GHz Cortex-A710 & 4x 1.80 GHz Cortex-A510)
GPU Adreno 730
Display 1080 x 2400 (120Hz 6.28" AMOLED)
Storage 128/256 GB
Memory 8/12 GB
Architecture aarch64
Software
Original software Android (MIUI)
Original version 12 (MIUI 13)
Extended version 14 (HyperOS 1.0)
FOSS bootloader no
postmarketOS
Category testing
Pre-built images no
Mainline yes
Unixbench Whet/Dhry score 9409.3
This device has been tested with postmarketOS, but its device package has not yet been added to the postmarketOS repositories.
This means that it cannot be selected in pmbootstrap.
Status: mainline heavy WIP
Features
Flashing
Works
USB Networking
Works
Internal storage
Works
Battery
Broken
Screen
Broken
Touchscreen
Broken
Multimedia
3D Acceleration
Works
Audio
Broken
Camera
Broken
Camera Flash
Works
IR TX
Works
Connectivity
WiFi
Works
Bluetooth
Works
GPS
NFC
Broken
Modem
Calls
Broken
SMS
Broken
Mobile data
Broken
Miscellaneous
FDE
Broken
USB OTG
Broken
Sensors
Accelerometer
Broken
Magnetometer
Broken
Ambient Light
Broken
Proximity
Broken
Haptics
Broken
This device is based on the Snapdragon 8 Gen 1.
See the SoC page for common tips, guides and troubleshooting steps

The Xiaomi 12 is the most recent Xiaomi flagship device that can boot a source-built downstream kernel.

Contributors

Maintainer(s)

Users owning this device

  • Adrian (Notes: x2, working on mainline and u-boot)
  • ArianK16a (Notes: 2201123G, 8/256, LineageOS 21)


Flashing

Flashing requires wiping some partitions to make sure the bootloader does not mess up the mainline kernel devicetree.

fastboot set_active b
fastboot erase vendor_boot
fastboot erase dtbo

Afterwards, you can flash the device as usual using pmbootstrap's flasher utilities. If your rootfs is under 2GB in size, you can flash to the cust partition which is only used by MIUI, otherwise super is recommended (make sure you have a backup or a super_empty.img to restore Android if you intend to go back).

External links