yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 4C] Yossarrian:
Battery on crdroidv5.0 is absolutely amazing....the doze on PIE is doing great job. So far so good...did not test GPS yet though.
[Xiaomi Mi 4C] Gourcuff14:
Hello Yossarrian. My battery looks gone. I will replace it then test again, sorry. The ROM does looks greatx thank you:fingers-crossed:
[Xiaomi Mi 4C] Yossarrian:
I see :). Can I ask you...where did you get battery replacement for mi4c and are you gonna change it by yourself? Is that easy task? I plan to keep mi4c for some time but changing battery will be must at some point.
[Xiaomi Mi 4C] Gourcuff14:
Hello Yossarrian. Replacing the battery seems straight forward. I thought it would have been a lot harder but it isn't having seen videos on youtube and dismantling it myself just to look before purchase of battery replacement. Just note to be sure to unscrew to screws behind the tiny mi stickers too under the hard back case. I brought a replacement battery from aliexpress, there are also a few on ebay but I opted for aliexpress. The battery is a BM35.

https://www.youtube.com/results?search_query=mi4c+battery+replacement
[Xiaomi Mi 4C] Yossarrian:
I've just checked the videos...seems to be doable and straightforward. Let me know if the battery you bought is ok...I've read tehy usually worn out after 2-3 months :(. Good luck :good:
[Xiaomi Mi 4C] caxwan:
What Pie rom that already enforcing SElinux?

I'm on Aex Pie now, but still permissive SElinux
[Xiaomi Mi 4C] }{uMEPA:
Have you tried LineageOS v16?
[Xiaomi Mi 4C] jones321:
Can confirm that this method works. Thanks for the receipe buddy!

I now finally got the phone updated since it was 2 years behind! A joy to have newest TWRP and finally PIE installed.

Thanks again!
[Xiaomi Mi 4C] xdami4c:
CameraApi2 dont work here...
[Xiaomi Mi 4C] neonzoff:
2api don't working on any android version more than 7.x.x
[Xiaomi Mi 4C] xdami4c:
thx for reply.

Anyway this rom is good.

Better ram managment versus miui 10 with android 7.

It feels fatser.

Battery the same.

Camera not as good.

Audio volume has too many steps (not good).
[Xiaomi Mi 4C] neonzoff:
you can flash port of MI A2 or MI A1 camera, but you need set the permissions in settings :)
[Xiaomi Mi 4C] AgiZ10:
Can you give me some link or something which port you mean?

I am on LineageOS 15.1 for the past half year and love it. But i cant find any good camera for it.

Thanks.
[Xiaomi Mi 4C] Gourcuff14:
Hello Yossarrian. I fitted the battery and as much as it has improved battery life it isn't holding charge for long enough which questions the replacement battery, phone or ROM? The battery is dated manufactured this year 2019 to my surprise I have got a brand new replacement battery and bar the phones serial number sticker it looks original. I'm not sure what to do :confused: When l purchased the phone the battery held charge for a long period of time. This replacement is dropping 1 percent every couple of minutes in use but remains fine in sleep mode. It seems a little weak. I have charged it a few times now too so it should have woken up. Thx.
[Xiaomi Mi 4C] georgemundor:
anyone tried CrDroid pie?
[Xiaomi Mi 4C] rianawirawan:
Link please ?
[Xiaomi Mi 4C] Yossarrian:
Hi Gourcuff14,

Well I did change the battery yesterday :). First charging looks good (check the screenshot from AccuBattery). But I have not tested the SOT endurance.

Battery bought here: NOHON-BM35-BM36-BM22-BM45-BM46-Battery-For-Xiaomi-Mi-5-5S-4C

I have tested over night which drained 0.3% per hour which is fully dozed performance. I can suggest to you this tool, which is absolutely perfect for any investigation what could cause the unreleased wakelocks preventing the device from sleep: Battery Historian https://bathist.ef.lc/ where you can upload .zip bugreport file ...simply connect to device with ADB and run adb bugreport > filename.txt

More info here: Battery Historian/

If you have issues with Screen On Time..it really depends on brightness and application which you are running. Still you can use some CPU kernel optimizer such as LKT which could help manage the CPU usage.
[Xiaomi Mi 4C] Yossarrian:
Hi,

using this ROM for almost 2 months. It is really good and smooth ROM. Tons of options and very well organized. Fully dozed after screen off.

Here you can find all releases: Vovan77s android dev hub

---------- Post added at 03:34 PM ---------- Previous post was at 03:32 PM ----------

https://androidfilehost.com/?w=files&flid=254197
[Xiaomi Mi 4C] Gourcuff14:
Hello Yossarrian

The battery replacement I purchased was this one https://www.aliexpress.com/item/Xia...lgo_pvid=4777a7bf-4d0b-479c-8982-1b44e656e3eb I have brought generic ones before for example a Samsung one and they have been great, infact it turned out to be bigger than the original capacity but because the original was available here I had to try it before considering the generic one or at least it looks original. I'm not sure what is going on tbh, it may be the phone. I tried loading stock firmware back on via MiFlash to test the battery and it was still dropping. If I remember correctly at purchase the phone lasted at the very least a day even with heavy use but this is running dry pretty quick within the day. I have a bug report in .zip format. What would you like from it? Graph is attached. Thx.
[Xiaomi Mi 4C] AndWhale:
Has anyone tried https://androidfilehost.com/?fid=1395089523397888743 ?
[Xiaomi Mi 4C] Yossarrian:
Well from the screen provided I can only see that you have been using phone quite heavily (assuming video + audio or gaming which means highest CPU states and overheating the battery) with almost 4 hrs of screen on time which under these conditions is pretty normal for Mi4c I suppose. Between 7AM - 8:30 AM it drained almost nothing (Screen Off). This phone can have 0.3%/hr in doze pretty easily so for regular usage you can get 2 days battery life without problem. For continuous gaming/youtubing the battery gets hot easily and if you not lower down your CPU states the baterry can get only 3-4 hrs of sot.

The Battery Historian is more for screen off wakelocks analysis if you need to check whether your phone is dozed or not and what apps or processes are draining your battery when the phone should be sleeping.
[Xiaomi Mi 4C] Yossarrian:
Sorry mate...no idea why there is this GAP in the log even if the phone was turned ON. Maybe try a different ROM or kernel? I'm using CrDroid Pie crDroidAndroid-9.0-20190108-libra-v5.0.zip from Vovan77 for about two months and I have no issues at all.

https://androidfilehost.com/?w=files&flid=288349
[Xiaomi Mi 4C] Gourcuff14:
Hello Yossarrian

I am on that ROM version too. I don't know what is going on to be honest :eek: The phone has definitely been malfunctioning. Is there a Xiaomi test tool or is the bug report generator close as it gets to a deep rooted check?

Thx for your help x
[Xiaomi Mi 4C] Yossarrian:
Well, If I were you I'd flash a different ROM and kernel to verify whether the issue is software or hardware related. If the problem persists even on official stable ROM it might be hardware related issue. You can use logcat app for system logging and then you can check what was happening on the system in the precise moment when you have issues.
[Xiaomi Mi 4C] Gourcuff14:
Hello Yossarrian

I did revert back to stock firmware to test and the problem persisted although battery life did slightly improve. Behaviour has changed since I took a bug report. I don't know if the device was glitched somewhere with the dead battery within it but the phone has changed behaviour since generating a full bug report through developer options. I didn't logcat before or after the bug report I only have those two reports. I haven't clean installed anything since generating the bug report just monitoring the battery it's on its 2nd full charge since the behavioural change. Can logcat see system idle issues it isn't app related?

A system UI reboot, or deep bug report check has had effect here. I think something's screwed within the hardware software, or glitched. Is there anyway to clear the phone totally bar twrp format? I mean where total wipe isn't advised because the phone still needs to boot. Can boot be reflashed?

Thank you x
[Xiaomi Mi 4C] edu27:
With latest crdroid 5.0 I'm having problems when receiving calls. I can't answer the call because no action is showed, no full screen swipe to answer nor notification.

Only after caller stop the call a notification appears.

I'm using two SIMS and can't disable one of them.

I'll try removing one from the phone later today.

Edit:

Solved installing other phone app. It seems that Google phone app doesn't want to work.
[Xiaomi Mi 4C] blltzs:
Hello! I've installed crdroid by vovan but i cant get magisk to work, i've tried flashing the latest stable zip but it's like it isn't even installed. I can't even install the manager apk. Any help?
[Xiaomi Mi 4C] SalCelli:
will this pixel experience rom by Kenga ever have the official pixel backgrounds?

[IMG="pixel experience backgrounds 2018"]https://i.vgy.me/4sStiI.png[/IMG]

And, I just found out that the notifications that should appear on phone stand by black screen, are too light to be seen
[Xiaomi Mi 4C] SalCelli:
Anyway, [MENTION=5695009]kenga[/MENTION] , you have done a nice work an I'm wondering why you don't join the pixel experience web page with your porting.

Maybe you could contact [MENTION=6519039]jhenrique09[/MENTION] to see what to do and start collaborating.
[Xiaomi Mi 4C] Sindalf:
Hello SalCelli, are you using pixel experiance rom on Libra ? i have this phone and am planing to upgrad it to android 9 pie.

Any advise guys ? LOS 16 ? PixelExperience ? or any other rom ?

What about sot ?

Thank you guys.
[Xiaomi Mi 4C] SalCelli:
yes, pixel experience is running on Xiaomi MI 4c. It has very smooth animations, fast phone opening and closing, doesn't heat at all, battery power is ok and applications run a lot better. Before I had on lineage stable for MI 4c, but if I wanted to share a picture from a web page to instagram, I had to close all the apps in memory or the sharing bottom panel would not show up. Now, with pixel experience, this is not a problem anymore. The ROM is not official, but comparing it with an official ROM running on a Xiaomi RedMi 4x, The only two differences that I see is that the Theme App doesn't have pixel backgrounds loaded and that on black stand by screen, notifications show in with a low light. If you have the idea to load the ROM, i would remember you to install xiaomi's firmware update before the ROM, or it wouldn't load at all. These are the files I used:

twrp-3.1.1-0-libra.img

libra_miui_fw_patch_MI4c_V9.5.1.0.NXKCNFA.zip (firmware patch)

PixelExperience_libra-9.0-20190324-0524-UNOFFICIAL.zip

Thats it. No need for GApps.
[Xiaomi Mi 4C] Sindalf:
Thanks man for the clarifications ! Please what about battery life ? What is your SOT please with this ROM ?
[Xiaomi Mi 4C] SalCelli:
as I said, there's absolutely no heating, so the battery lasts more. I find only a little warming when i see youtube videos for more than 30 minutes, but its nothing compared with the heating I had using MIUI 9/10 (from xiaomi.eu) and LineageOs 14.1.

The only annoying thing is that you have to wait a couple of seconds before wifi and SIM get connected, but it may be only a false screen signal, because as soon as I open an App, everything returns to normal with both signal icons shown on the top right near the time.
[Xiaomi Mi 4C] qtotter:
I could not set up a SIP account with PixelExperience_libra-9.0-20190324-0524-UNOFFICIAL.zip by Kenga ...

How about other builds of his?
[Xiaomi Mi 4C] SalCelli:
did you try it on the unofficial LineageOS pie?

https://androidfilehost.com/?w=files&flid=285685
[Xiaomi Mi 4C] Sindalf:
Anyones of you guys are using lineageos 16.0 libra ? Any feedback ?
[Xiaomi Mi 4C] rojobrono:
-fingerprint sensor & sd card work fine in mi4s with this rom, awesome

-gps work

-network traffic monitor don't work

thanks a lot to kenga

btw do he have a forum for this rom?
[Xiaomi Mi 4C] qtotter:
I found it was just a cosmetic issue on the SIP setting page. The '+' button to add A SIP account, which should be on the top right, was simply invisible but there. Thanks, anyway.
[Xiaomi Mi 4C] mr-mauro:
All good for me!

Only problem, I couldn't find a MIUI camera that works :)
[Xiaomi Mi 4C] }{uMEPA:
I'm using that ROM for 3 month. Pretty good.
[Xiaomi Mi 4C] lolailogd:
any kernel is needed?
[Xiaomi Mi 4C] SalCelli:
this is what i used for pixel experience for mi4c by Kenga

twrp-3.1.1-0-libra

libra_miui_fw_patch_MI4c_V9.5.1.0.NXKCNFA

PixelExperience_libra-9.0-20190324-0524-UNOFFICIAL

The firmware most be installed before the rom.

could be useful:

earn free bitcoins
[Xiaomi Mi 4C] rianawirawan:
As far i'm using it,

The only bug is navigation button. Whenever i'm using softkey and do charging, the capactive button is turning on even the softkey is enabled. It doesn't appear on Pixel Experience.
[Xiaomi Mi 4C] snic:
Vovan remove all files of roms , any other link or gdrive etc ? croid
[Xiaomi Mi 4C] mr-mauro:
Try to use Kenga builds: https://androidfilehost.com/?a=show&w=files&flid=200221

Or those ones: https://androidfilehost.com/?w=files&flid=289411
[Xiaomi Mi 4C] Alphajet71:
Same problem for me.

I didn't have the latest version of twrp (twrp 3.2.3) so I can't install the lineageOS 16.

An idea to help me please ?
[Xiaomi Mi 4C] Kan_narhio:
Hi

What's the requirements to install these ROM´s?

Which version of TWRP and Firmware?

SInce Vovan seem's to have removed all files, did anyone kept is TWRP file?
[Xiaomi Mi 4C] mr-mauro:
Actually, to install LOS16, I had to use twrp-3.2.1-0 (and the FW patch). It wasn't working with the 3.2.3-0.

Mauro
[Xiaomi Mi 4C] snic:
I have the Kenga latest pie rom , but i want to try another rom.

I try the second rom (WJXXBSH Developer) and i pray to work well!!!!!

Thank you very much for your information's

---------- Post added at 11:32 AM ---------- Previous post was at 11:26 AM ----------

Check this : https://androidfilehost.com/?fid=1395089523397945946

Yhis is the twrp to installed in my phone . It is 3.3.0.0 version .

---------- Post added at 11:37 AM ---------- Previous post was at 11:32 AM ----------

Check Mr-Mauro and my reply and if you want more help write us to help you.
[Xiaomi Mi 4C] rianawirawan:
Can't install gapps on WJXXBSH dev ROM even with pico build.

But first, pie from WJXXBSH seems good, compared by Kenga.
[Xiaomi Mi 4C] rojobrono:
[MENTION=7250411]rianawirawan[/MENTION]

error 255?

1. install the rom & root it

2. reboot

3. install system app uninstaller app

4. uninstall some system app ( uninstall Android web view if you'll use chrome )

5. reboot to recovery (wipe cache dalvik if needed )

6.install gapps (pico is recommended)

it works for me

but back to kenga's

coz can't remove WhatsApp & telegram red status bar icon notification counter & some apps i installed from apk is crash

on twrp 3.1.1-1 aqua
[Xiaomi Mi 4C] snic:
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 ?
[Xiaomi Mi 4C] rianawirawan:
No, error 70. Insufficient memory system

---------- Post added at 06:32 AM ---------- Previous post was at 06:31 AM ----------

Download uninstaller from 3rd source like apkpure, etc.

But, i have tried this and nothing work. No gapps installed even picp ver.
[Xiaomi Mi 4C] rojobrono:
ok, the error code is different although the reason is same insufficient bla 3..

good luck

if anyone find the way to remove red notification counter share here please..
[Xiaomi Mi 4C] coiso0:
Using Kenga "PixelExperience_libra-9.0-20190324-0524-UNOFFICIAL", probably, the best experience I've had, in this device, so far (4C 2Gb).

My TWRP gave me the "error 7", but this guide solved it.

https://xdaforums.com/showthread.php?t=2522762

Thank you Kenga!
[Xiaomi Mi 4C] snic:
I 'll try this ROM but have temperature problems (very hot when use WiFi or Mobile Data and Charging) and not very smooth when install all apk's and use the phone (2/16GB and 4GB free)

I install again the latest Kenga Lineageos 16 Pie ROM and all is good but the battery drain is the problem . And i 'll try to buy a new battery and check it.

Thank you Kenga and from me !!!!!
[Xiaomi Mi 4C] BugInAHole:
I tried the PixelExperience_libra-9.0-20190324-0524-UNOFFICIAL.zip and it's really bad. I get alot of appcrash and the system is not smoot at all! The PixelExperience_libra-9.0-20190217-1523-UNOFFICIAL.zip instead is far way better in battery life and system stability. I'm going to the the Lineage OS 16 let's hope that will be my daily driver.
[Xiaomi Mi 4C] BugInAHole:
I tried the last LineageOS and the bluetooth is not working anyone have the same problem ?
[Xiaomi Mi 4C] :
I found the gapps-config.txt file.

This file can help to delete system apps and i also decided that TTS should not be installed.

after flash rom just install gapps with config file (storage: sdcard)

Play Store and Google Services works fine for me.

I had the same problem "red status bar icon" and one app crashed :( . I switched back to LOS 16 from Kenga.

I tried to get a better battery life here, but it didnt work. Maybe i will switch back to LOS14 (Battery is better) if i found the old files.
[Xiaomi Mi 4C] rojobrono:
i found LOS 16 from Kenga is very good in battery life

maybe your problem on hardware
[Xiaomi Mi 4C] Arman Yuzbashyan:
How to enable camera 2 API on Pie ?

This - https://xdaforums.com/mi-4c/general/mod-enable-camera2api-mi4c-t3827561 - does not help

Please help me, I'm still using Nougat cos of Google Camera.
[Xiaomi Mi 4C] eNemy-:
Could you please let me know which lines you removed?

I have removed everything about assert but now I am getting "error 6".
[Xiaomi Mi 4C] WJXXBSH:
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.
[Xiaomi Mi 4C] rianawirawan:
Thankyou sir :good:
[Xiaomi Mi 4C] rojobrono:
[MENTION=9635581]WJXXBSH[/MENTION] thanks 4 your rom it's great.

:good::good:

btw how to disable red counter status bar icon?
[Xiaomi Mi 4C] WJXXBSH:
The value of the "status bar counter icon" was set by overlay in device tree, which is before making the rom. (So, it's a feature but not a bug, and you couldn't disable it directly. It's mainly used for showing how many notifications you get from one app, but the icon itself is too large in Android pie.)

If you (or others) don't like this or think it useless, I will remove it in the next update.

<!-- Whether or not we show the number in the bar. -->
<bool name="config_statusBarShowNumber">true</bool>
[Xiaomi Mi 4C] rojobrono:
thanks a lot 4 your attention

i know it's not bug

OK , we're waiting for it :good:
[Xiaomi Mi 4C] Paradika123:
PLEASE HELP!!!

My Exchange account cant sync calendar in Google Calendar app since I use custom rom ( I can sync them when I was using MIUI).. What should I do?
[Xiaomi Mi 4C] dheztafaq:
Great work bro, waiting for an update
[Xiaomi Mi 4C] snic:
Hello mr WJXXBSH i ll try to install your rom but how to delete the system fonts ? Install a file explorer find the sytem/fonts directory but cannot delete this files. Please Help !!!!

Edit : I find it how to !!!!!!!!!!

Edit 2 : I install the OpenGapps arm64 pie nano but cannot connect with my play store account . I dont know how to fix this problem. Please if you want to fix this problems and create a new version of this rom.
[Xiaomi Mi 4C] WJXXBSH:
You could delete the fonts just in TWRP: mount /system, and then open the built-in file manager.

If you install the right version of gapps, it should work (may need a clean install, but otherwise should be OK as opengapps will handle such situation). For Google is blocked in China and I cannot use gapps without an always connected VPN, I use MicroG for instead and seldom use common gapps, so I don't know much about that...sorry.
[Xiaomi Mi 4C] snic:
I install the rom first ,wipe davil/cache ,after reboot to recovery again , delete the fonts,wipe davil/cache , reboot on recovery again , install the opengapps pie arm64 ,wipe davil/cache, reboot to system. The play store not working well dont connect with my account. This is the problem because without playstore not working everything.

I find the crdroid pie rom of vovan77, install and checkit..... and i pray to working well , because i tired to install again and again roms.....!!!!!!!! :(
[Xiaomi Mi 4C] dheztafaq:
Im using latest version with june update, roms is smooth but its need long time to boot up, and sometimes when i reboot its didnt booting up, just stay on boot animation like a bootloop phone,, its need to press power button to booting again..

It is a bug or what?
[Xiaomi Mi 4C] WJXXBSH:
If you found it takes a long while to boot than before (except your first boot after an update or cleared dalvik-cache), just reboot again. It's caused by "SELinux Enforcing", which may prevent some system services from init during boot time. However, I have not exactly found which one it is in logcat right now.

I'll delay the time of "selinux enforcing" (enable it after boot completed) in the next update to solve this problem. That way never caused reboot issues (I have tested since last week), but will show up a warning after boot (like "SELinux is disabled") just like previous builds.
[Xiaomi Mi 4C] rojobrono:
[MENTION=9635581]WJXXBSH[/MENTION]

I installed your last build rom, & it's :good::good: very like it, but how to enable fingerprint sensor

Thanks
[Xiaomi Mi 4C] WJXXBSH:
I think this issue is probably caused by SELinux (too), you could run "setenforce 0" in terminal (with root access, which will set selinux to permissive) to test if it's working. I have Mi-4c on my own, so I don't have a device to test if fingerprint is working.