Android Pie libra by @Kenga

Search This thread

kdk_warhead

Member
Nov 9, 2008
6
0
GPS do not work with Havoc-OS?

yes..Finally!! i am able to resurrect the phone to use the latest android 10 on mi4c (libra).
I tried a full day and at the end manage to get it work, but it takes some trial on error and the prerequisite is to have the phone bootloader unlock using the mi unlock official software. The downgrade to 6.1.7 with unlock bootloader wont work for me. The phone will stuck at mi logo after you load the TWRP 3.1.1.1. The reason is it can only work on twrp 3.1.1.0 due to boot loader is android 5.1(lollipop) and twrp 3.1.1.1 only work for android 7(nougat). Look back the thread from slimdick 31st August 2017, 05:26 PM |#123. (https://xdaforums.com/mi-4c/development/libra-twrp-3-0-t3315059/page13)
besides, If read through the history of the thread here, files from vovan77 has locked from the androidfile website so cant get all the necessary files to flash to android 10. (Yossarrian
10th January 2019, 09:18 PM |#63 , this thread )

my way to make it work,
1. flash back the mi4c back to MIUI latest version V10.1.1.0.NXKCNFI (https://mifirm.net/model/libra.ttt) using the fastboot method.
2. unlock the bootloader by going to the developer setting. it will ask for mi account to link to the phone. For me, i ran the mi unlock app and i can successfully unlock the bootloader without and waiting period. it unlock instantly!
the version that i used is miflash_unlock-en-3.4.703.18, not sure why but probably due to the model itself is old.
3.once the bootloader is successfully unlock, boot back to the fastboot mode and start to flash the TWRP.
4. The twrp version that i used is 3.3.0.0 ( https://androidfilehost.com/?fid=1395089523397945946)
5. Once TWRP flashed successfully, boot to the twrp 3.3.0.0 and start to perform full WIPE, that mean everything. It will ask you to type YES.
6. Once done. Reboot the phone and back to TWRP recovery.
7. Now side load the rom that you want to install, my case i am using the havoc 3.1 from kyoto44. Full Credits to him and the team behind Havoc OS. (https://sourceforge.net/projects/havoc-os/files/libra/) .
8. For Gapps , i am using unofficial android 10 beta version. You can get it from this link. ( https://sourceforge.net/projects/opengapps/files/arm64/beta/20200116/)
9. Both rom and gapps installation didnt give me any error. Once done boot back to system. and voila, your have the android 10 on Mi4c.

Hope you all will have the same result and good luck. :)

nLGKmjZ
,
M5zGgP9
,
yPGpkCv
,
H2pcD2g
,
FwhZ07b

I followed despeh instructions #199 but I used the latest files. I went from cm-13.1-20161231-TS-libra.zip to havoc-os 3.2 with the following files (clean flash):
Firmware: V10.1.1.0.NXKCNFI
TWRP: 3.3.0.0
ROM: Havoc-OS-v3.2-20200208-libra-Official.zip (newer version than the instruction)
Gapps: open_gapps-arm64-10.0-nano-20200212.zip (newer version than the instruction)
It’s nice upgrade but the following don’t work:
GPS (GPS Test app: “The GNSS is receiver is turned off”, GPS status app “GPS: disabled)
Included keyboard crash when swiping (booth Swedish and English).
Call recording don’t work (because of android 9/10 don’t allow it).
Screen seems dimmer even when set to full. (might be my imagination)
(I checked that there are no battery saving activated and a full battery)

Swiftkey works so the crashing keyboard is not a problem but GPS not working is a deal breaker.

I then did a dirty flash with Havoc-OS-v3.1-20200121-libra-Official.zip (same as instruction) with the same result. I can’t find open beta gaps 20200116 for android 10.
What to do? I would like to run android 10 but if the GSP don’t work then I have to try Lineage 15.1 instead.
 

despeh

Senior Member
Apr 15, 2014
62
20
Kuala Lumpur


I followed despeh instructions #199 but I used the latest files. I went from cm-13.1-20161231-TS-libra.zip to havoc-os 3.2 with the following files (clean flash):
Firmware: V10.1.1.0.NXKCNFI
TWRP: 3.3.0.0
ROM: Havoc-OS-v3.2-20200208-libra-Official.zip (newer version than the instruction)
Gapps: open_gapps-arm64-10.0-nano-20200212.zip (newer version than the instruction)
It’s nice upgrade but the following don’t work:
GPS (GPS Test app: “The GNSS is receiver is turned off”, GPS status app “GPS: disabled)
Included keyboard crash when swiping (booth Swedish and English).
Call recording don’t work (because of android 9/10 don’t allow it).
Screen seems dimmer even when set to full. (might be my imagination)
(I checked that there are no battery saving activated and a full battery)

Swiftkey works so the crashing keyboard is not a problem but GPS not working is a deal breaker.

I then did a dirty flash with Havoc-OS-v3.1-20200121-libra-Official.zip (same as instruction) with the same result. I can’t find open beta gaps 20200116 for android 10.
What to do? I would like to run android 10 but if the GSP don’t work then I have to try Lineage 15.1 instead.

No idea on this as i am not expert on custom rom. Probably can drop a msg to kyoto44 and check if he can advise on this. he is the PIC of havoc dev for mi4c.
 

godbenu

New member
Apr 14, 2020
1
0
Ok I've just managed to get PIE working on mi4c. Here are the steps for those who cannnot unlock their phone officially or for those who just dont want to wait if Xiaomi allows them to unlock their Nougat 7 bootloader.

1. Unlock the bootloader the old way by using MiFlash application (phone in fastboot EDL mode) and flashing old version of miui dev china with unlocked bootloader libra_images_6.1.7_20151221.0000.11_5.1_cn_b09dac70a0.tgz (if you already have unlocked bootloader you may skip obviously)
2. Install with fastboot universal TWRP (works on both lollipop and nougat bootloader) twrp-20180106-1033.img
3. In TWRP (without rebooting!!!) install via adb sideload in batch firmware patch libra_miui_fw_patch_MI4c_V9.5.1.0.NXKCNFA.zip, install ROM RR-O-v6.1.0-20180627-libra-Unofficial.zip, Gapps (in this case PixelMod_Gapps_arm64_Oreo_libra_universal_27.06.18.zip) and finally Magisk-latest_version.zip
4. Restart to the system
5. After that I was able to copy twrp-3.2.1-0.img to sdcard and install this image to upgrade TWRP (This way you can upgrade also to TWRP+3.2.3-0_libra.img)

After this you have a locked bootloader but it is working with latest TWRP and you can install PIE ROMs and updates, but always remember to install Magisk !!!​

All files mentioned except the the dev ROM are accessible at Vovan77 https://androidfilehost.com/?w=files&flid=256671
Unlocked dev ROM can be found here: https://xdaforums.com/mi-4c/general/guide-unlocking-mi4c-bl-verification-t3336779
All credits goes to Vovan77 and his work...thanks mate for updating mi4c for PIE...much appreciated!!!
original thread found here: http://en.miui.com/thread-3111433-1-1.html

Not sure yet if the PIE is worth to upgrade but the first impression is good. And last crDroidAndroid-v5.0 was updated 2 days ago by Vovan77!

The link to the libra_miui_fw_patch_MI4c_V9.5.1.0.NXKCNFA.zip seems to be outdated. Can anyone provide the file or does this manual also work with the following file, I found: libra_images_V10.1.1.0.NXKCNFI_20181009.0000.00_7.0_cn_24e34e7e33.tgz
Thanks a lot.
 

ThePeKo

Member
Sep 11, 2011
36
3
@ Home
The link to the libra_miui_fw_patch_MI4c_V9.5.1.0.NXKCNFA.zip seems to be outdated. Can anyone provide the file or does this manual also work with the following file, I found: libra_images_V10.1.1.0.NXKCNFI_20181009.0000.00_7.0_cn_24e34e7e33.tgz
Thanks a lot.

You can find the Firmware Versions here:
https://xiaomifirmwareupdater.com/archive/firmware/libra/
but libra_miui_fw_patch_MI4c_V9.5.1.0.NXKCNFA.zip seems not available.
Earliest is V9.5.2.0.NXKCNFA

Ah i found some fastboot version, but it's the whole ROM:
http://bigota.d.miui.com/V9.5.1.0.NXKCNFA/miui_MI4c_V9.5.1.0.NXKCNFA_e805b31b81_7.0.zip
Here: https://xiaomifirmwareupdater.com/archive/miui/libra/
 
Last edited:
  • Like
Reactions: godbenu

Schmith

Member
Jul 5, 2021
6
0
Hy all,please help-me with my Mi 4c,now work only with FASTBOOT.
I can't install twrp anymore.
Help me please!
 

Attachments

  • vvvv.PNG
    vvvv.PNG
    29.3 KB · Views: 20
  • ffff.PNG
    ffff.PNG
    56.1 KB · Views: 20

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    https://androidfilehost.com/?fid=11410963190603852543

    Here latest rom by @kenga

    Give our support :highfive::good:
    4
    Yes i have the same problem . When try to install gapps error 70.

    I am very disappointed for this , the Play Store with ROM don't working , and is a live - dead pie ROM. I 'll try to install Play Store from Aptoide but nothing happen...

    I come back to Kenga ROM and i pray to find a pie ROM who work well. Or i think so it's time to buy a new mobile and RIP Mi4C :(

    ---------- Post added at 04:58 AM ---------- Previous post was at 04:57 AM ----------



    How to install app uninstaller ap without play store ?

    Can't install gapps on WJXXBSH dev ROM even with pico build.
    But first, pie from WJXXBSH seems good, compared by Kenga.

    That's beacuse the free space in "/system" is almost used up in the lineage-16.0 builds. I decided to make "/system" full of use since I built the lineage-15.1 roms, but didn't save enough space for GAPPs (mostly because Google is still blocked in China).
    It's simple to solve this problem by removing something in "/system". Just delete /system/fonts/NotoSerifCJK-*.ttc (totally 2 files, 48MB), then you could install the pico version of GAPPs. If you also removed /system/fonts/NotoSansCJK-*.ttc (not recommend, 109MB), you could install a much bigger one.
    The extra space this rom uses in /system is mainly from dex2oat and full-weight Noto fonts.
    For the first one: The filter flags of dex2oat is set to "speed" for better performance, which takes more time and space when building the rom but will improve the performance and boot-up speed on the first boot. It will also takes more time when you install your APKs, but you'll get better performance for the first start-up on the app you install. In most roms with default configs, all the free space that "dex2oat" used at last (eg. when you charging your phone and don't use it) will appear in "/data" (exactly, /data/dalvik-cache/). The APK installing speed is faster, but it need to be compiled again as "speed" filter at last and cause poor performance until this procedure fully completed. So I use a more aggressive way for such cases, which sets "speed" filter as default values. This part should not be removed.
    For the second one: In android pie, Google add full weight Noto fonts for English only, and other languages like Chinese/Japanese/Korean (CJK) do not have full-weight fonts at all (only regular and bold fonts). So I complete the NotoCJK fonts family and the visual experience becomes much better after that, which is also at the cost of free space in "/system". This part could be directly removed if C/J/K are not your main languages.
    4
    This ROM is running smoothly on my device guys :angel:
    4
    Ok I've just managed to get PIE working on mi4c. Here are the steps for those who cannnot unlock their phone officially or for those who just dont want to wait if Xiaomi allows them to unlock their Nougat 7 bootloader.

    1. Unlock the bootloader the old way by using MiFlash application (phone in fastboot EDL mode) and flashing old version of miui dev china with unlocked bootloader libra_images_6.1.7_20151221.0000.11_5.1_cn_b09dac70a0.tgz (if you already have unlocked bootloader you may skip obviously)
    2. Install with fastboot universal TWRP (works on both lollipop and nougat bootloader) twrp-20180106-1033.img
    3. In TWRP (without rebooting!!!) install via adb sideload in batch firmware patch libra_miui_fw_patch_MI4c_V9.5.1.0.NXKCNFA.zip, install ROM RR-O-v6.1.0-20180627-libra-Unofficial.zip, Gapps (in this case PixelMod_Gapps_arm64_Oreo_libra_universal_27.06.18.zip) and finally Magisk-latest_version.zip
    4. Restart to the system
    5. After that I was able to copy twrp-3.2.1-0.img to sdcard and install this image to upgrade TWRP (This way you can upgrade also to TWRP+3.2.3-0_libra.img)

    After this you have a locked bootloader but it is working with latest TWRP and you can install PIE ROMs and updates, but always remember to install Magisk !!!​

    All files mentioned except the the dev ROM are accessible at Vovan77 https://androidfilehost.com/?w=files&flid=256671
    Unlocked dev ROM can be found here: https://xdaforums.com/mi-4c/general/guide-unlocking-mi4c-bl-verification-t3336779
    All credits goes to Vovan77 and his work...thanks mate for updating mi4c for PIE...much appreciated!!!
    original thread found here: http://en.miui.com/thread-3111433-1-1.html

    Not sure yet if the PIE is worth to upgrade but the first impression is good. And last crDroidAndroid-v5.0 was updated 2 days ago by Vovan77!