The Mer Wiki now uses your Mer user account and password (create account on

Adaptations/libhybris/Install SailfishOS for gemini

From Mer Wiki
< Adaptations | libhybris
Revision as of 07:29, 25 September 2020 by Birdzhang (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Vendor: Xiaomi
Product name: Mi 5
Sailfish OS version:
Last update: 26.05.2017


Hardware Support

Legend:  Y  - Working (y=hack),  Y  - HAL works, not hooked up to UI/MW/init yet,  N  - Not working,  ?  - Untested,  N/A  - N/A on device.
Device released Linux
Display Touch LED Audio NFC Bluetooth GSM WLAN GPS Camera Fingerprint Sensors Keys Vibra Haptics Power
USB FM Radio
SMS Voice Data Connect Hotspot ALS PS Accel. Gyro. Magne. Vol+/- Home Net. Charge
3.18.31 Y Y Y Y  ? N Y Y Y Y Y Y Y  ? Y N Y Y Y Y Y Y Y Y  ? Y Y N/A


  • 21th Jul 2017: most sensors work, and also OTA :)
  • 16th Jul 2017: audio/video playback works, camera partially works, preview and capture work, video record not.
  • 26th May 2017: tried krnlyng's hwc workround, now lipstick working happily :), many thanks to krnlyng!
  • 16th February 2017: wifi works.
  • 14th February 2017: Unstable, not ready for use :)


Last image you can get here

Steps to install


  • flash twrp recovery & format data partition (press and hold Volume down and Power key, boot to bootloader)
 fastboot flash recovery twrp-3.0.2-3-gemini.img
  • flash cm13.0 zip with twrp (press and hold Volume up and Power key, boot to recovery)
  • flash sailfishos zip with twrp
  • reboot!

Build image by yourself

Known Issues

1. lipstic crash sometimes.[fixed with krnlyng's hybris patch].


[ +19.213579] __create_fence: fb0_release: get_unused_fd_flags failed error:0xffffffe8
[  +0.000018] __handle_buffer_fences: unable to retrieve release fence
[  +0.044521] binder: send failed reply for transaction 6048, target dead

2. The working version of is borrowed from ghosalmartin. :)

[fixed by: <krnlyng> zhxt, revert the thread_local stuff, and add LOCAL_CLANG := false to in ]

Personal tools