Xiaomi Mi 5 (xiaomi-gemini)

From postmarketOS
(Redirected from Xiaomi Mi5 (xiaomi-gemini))
Xiaomi Mi 5
Xiaomi Mi5 and phosh on mainline kernel
Xiaomi Mi5 and phosh on mainline kernel
Manufacturer Xiaomi
Name Mi 5
Codename xiaomi-gemini
Released 2016
Category testing
Pre-built images no
Original software Android (MIUI)
Original version 6.0
Extended version 8.0
Hardware
Chipset Qualcomm Snapdragon 820 (MSM8996)
CPU Quad-core (2x 1.8 GHz Kryo & 2x 1.36 GHz Kryo) or Quad-core (2x 2.15 GHz Kryo & 2x 1.6 GHz Kryo)
GPU Adreno 530
Display 1080x1920
Storage 32/64/128 GB
Memory 3/4 GB
Architecture AArch64
Type Handset
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Works
FDE
Works
Mainline
Works
Battery
Broken
3D Acceleration
Works
Audio
Partial
Bluetooth
Works
Camera
Broken
GPS
Broken
Mobile data
Partial
Internal storage
SMS
Partial
Calls
Partial
USB OTG
Works
NFC
Works
Sensors
Accelerometer
Broken
Magnetometer
Ambient Light
Proximity
Hall Effect
Barometer
Power Sensor
Misc
Built-in DVB
Camera Flash
Keyboard
Touchpad
USB-A
HDMI/DP
Ir TX
Ir RX
Stylus
Memory Card
Haptics
Ethernet
FOSS bootloader
This device is based on the Snapdragon 820.
See the SoC page for common tips, guides and troubleshooting steps

A nice and thin Xiaomi ex-flagship from 2016. Originally with Android 6, it was updated up to Android 8. It is one of the official LineageOS supported devices, making it a nice choice for developers, and performs very well in spite of its 3GB of RAM.

Contributors

  • R

Maintainer(s)

  • R
  • Tooniis

Device owners


How to enter flash mode

Either run `adb reboot bootloader` while the phone is booted in Android, or turn the device off and hold the power button and the volume down button. Your device should now be in "fastboot" mode.

Installation

Standard procedure, boot to Fastboot and then flash boot.img and the rootfs

What's missing

In general, the device works very nicely. But some relevant things are to be noticed:

  • Battery does not charge (i.e., needs reboot to recovery mode), and status (%) is not shown yet.
  • Wi-Fi works, but is unstable and reception is bad
  • Audio works only through the headphone jack, and only if SLPI is disabled. The speaker needs a codec which isn't mainlined yet
  • Clearly, no fingerprint sensor or support for capacitive keys (those around the home button)
  • Sensors, including the accelerometers, are not enabled yet. This is due to the odd Qualcomm SLPI subsystem
  • Modem and GPS can be get to work only by using significant hacks and patchwork around ModemManager and ofono. This will take a while to be solved
  • Camera. This device uses a Sony IMX298 (the same as the Oneplus 3/3T) as back camera and an OmniVision OV4688 as front camera.

Mainline

Works and pending upstreaming. Essentially we are in the same state as Xiaomi Mi Note 2 (xiaomi-scorpio).


Charging

As there is no charger driver yet, you need to boot into recovery mode (TWRP or similar) to charge the phone. This is a known limitation of all MSM8996 devices, which will be hopefully fixed soon.

See also