Xiaomi 12 (xiaomi-cupid)

From postmarketOS
Xiaomi 12
File:Xiaomi-cupid.png
Xiaomi 12
Manufacturer Xiaomi
Name 12
Codename xiaomi-cupid
Released 2021
Category testing
Pre-built images no
Original software Android (MIUI)
Original version 12 (MIUI 13)
Extended version 14 (HyperOS 1.0)
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
Type handset
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
USB Networking
Works
Flashing
Works
Touchscreen
Broken
Display
Broken
WiFi
Broken
FDE
Broken
Mainline
Works
Battery
Broken
3D Acceleration
Works
Audio
Broken
Bluetooth
Broken
Camera
Broken
GPS
Mobile data
Broken
Internal storage
Works
SMS
Broken
Calls
Broken
USB OTG
Broken
NFC
Broken
Sensors
Accelerometer
Broken
Magnetometer
Broken
Ambient Light
Broken
Proximity
Broken
Misc
Camera Flash
Works
Ir TX
Works
Haptics
Broken
FOSS bootloader
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: Working on mainline)
  • 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