yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 4C] Cozzmy13:
-- story --

It can't be done because CM doesn't have support for Theme Engine anymore, simply because there is RRO(substratum) which is an official feature in Android Nougat. It was available in Marshmallow too for AOSP-based ROMs(using the Layers app) but CM still had the old Theme Engine and adding RRO would have caused problems.

The reason for CM abandoning Theme Engine is simple, having a similar feature provided by Google means less work for the CM theme.

-- end of story --

The latest build feels a bit smoother.
[Xiaomi Mi 4C] militantmind:
It would be nice if Sir Hikari opens a new thread and post his build there.
[Xiaomi Mi 4C] Vlad Paul:
+1

Please, Hikari

---------- Post added at 13:49 ---------- Previous post was at 13:46 ----------

I booted the phone in TWRP, deleted cache and all seems to be ok, the phone stoped freezing until now from yesterday.
[Xiaomi Mi 4C] Vlad Paul:
Freezed again :(
[Xiaomi Mi 4C] Vlad Paul:
Again freezing.

---------- Post added at 16:27 ---------- Previous post was at 16:26 ----------

What is going on?
[Xiaomi Mi 4C] Plunato:
Try another rom man. Better than suffering with freeze. Wait for developer fix. :rolleyes:
[Xiaomi Mi 4C] Vlad Paul:
Try you another ****ing roms. I wait fixing. **** you my friend
[Xiaomi Mi 4C] Plunato:
Calm down hothead ?
[Xiaomi Mi 4C] Vlad Paul:
Hotdead? Looool :D

---------- Post added at 18:33 ---------- Previous post was at 18:31 ----------

My friend, I installed now Resurection Remix 07.01.2017,, i tested it.
[Xiaomi Mi 4C] philipnzw:
Uhm Devs do free work man don't bloody bash them if things break

And most of all they are real people , they have regular life issues too , that's why they don't reply often ._.

Srsly what's wrong with these users shouting at Devs
[Xiaomi Mi 4C] Plunato:
Hot Head* man ? ignore it ahaha

Im on the same build. And no freeze. Enjoy :p
[Xiaomi Mi 4C] Vlad Paul:
Hot Head, sorry, swiftkey predicting fault :D hothead loooool :D
[Xiaomi Mi 4C] PeterMarkoff:
you are paying him something that you demand answer? if you don't like it, switch the ROM or shut up

just for the record i don't experience any freeze or reboots, so fix your phone before you complain about ROM
[Xiaomi Mi 4C] Vlad Paul:
Sorry. Ok, i swiched to another rom, RR is magic. I shut up, shutdown from this thread. Sorry again ;)
[Xiaomi Mi 4C] solis_f:
Is lineage rom with pixel launcher?
[Xiaomi Mi 4C] ericp2:
No, but you can download it from playstore. last time i checked, as it stands, long press menus, or round containers are not supported.
[Xiaomi Mi 4C] AtypicalCerebralFan:
Using a combination of substratum themes and installing pixel launcher as a system app, I've managed to get the launcher fully functional in this ROM, with long press menus, round icons, Google assistant, swipe for Google now page and hotword recognition.
[Xiaomi Mi 4C] ataralgin2:
Hikari's new release:

https://cloud.mail.ru/public/3mDq/BbZDdbtSi

Changelog:

translation, GPS, sound

Mi4C LOS14.1
[Xiaomi Mi 4C] Plunato:
Hi! Can you upload in another host the ROM? The baseband is too sloow :/ I have slow internet too. Please :fingers-crossed:
[Xiaomi Mi 4C] Chinezu78:
doesn't work to download...
[Xiaomi Mi 4C] Cozzmy13:
https://drive.google.com/file/d/0B9WMSJf5LSatalBhZUNPVTVwSzA/view?usp=sharing
[Xiaomi Mi 4C] Plunato:
THANKS!!!
[Xiaomi Mi 4C] ericp2:
last version issues lineage-14.1-20170124

i had installed the last version of HNT https://cloud.mail.ru/public/FMt4/jmFPmdqeD ,

lineage-14.1-20170124

but it makes the phone application crash. i tried several things, such as starting in airplane mode, etc, but nothing does it. it may be needed to do a clean install for this version. infos from Hikari are:

(translated from Russian)

Changes: Many executables, libraries, frameworks, applications, replaced out of beta MiUI 7.1.17 (except temperature control files and performance, camera, graphics). Removed various applications, which fell from the Nexus 5x.

IF IMPORTANT fully working GPS, do not bet!

i have reverted to 20170122 as i don't have time right now to do a clean re-install. has anybody else tried?
[Xiaomi Mi 4C] solis_f:
Where did you find that link ?
[Xiaomi Mi 4C] Cozzmy13:
4pda, http://4pda.ru/forum/index.php?showtopic=697094&view=findpost&p=57581110.
[Xiaomi Mi 4C] Stardust89:
Strange,after 20170122 all well,but only Facebook have heavy force out's after 5 sec in app
[Xiaomi Mi 4C] solis_f:
Clean install everything fine
[Xiaomi Mi 4C] ataralgin2:
I'm dirty flashed over 22.01. build, no issues till now.

GPS is working for me.

PS: One more info from Hikari (posted later)

This build should work with any modem file, without bootloop.

Mi4C LOS14.1
[Xiaomi Mi 4C] solis_f:
Getting pretty bad wakelocks that drain the battery fast but I didn't isolate the problem so far. Phone is almost always awake
[Xiaomi Mi 4C] ericp2:
i have modem 2.6.c1-2-1111_1857_4a134be. i am also using 2 sims on GSM (4G), and f2fs on cache and data. what about you?
[Xiaomi Mi 4C] ermacwins:
Anyone have problems with battery? Was at 46% then I rebooted because one of the sims lost connection. Then after reboot it said 0% shutting down. It then rebooted showing 13%
[Xiaomi Mi 4C] danbrown162:
Common issue with mi4c. For some reason when you reboot, this happens.

I clear it by rebooting to recovery then back into the ROM. Otherwise a normal charge cycle is required. I believe team superluminal have fixed this in their cm13 build.
[Xiaomi Mi 4C] Chinezu78:
I can confirm on cm 13.1 ts it's ok

Trimis de pe al meu Mi-4c folosind Tapatalk
[Xiaomi Mi 4C] akiralee:
maybe this issue come from hardware or battery?... how long have u used this phone?
[Xiaomi Mi 4C] arh91:
Hikari no Tenshi

lineage-14.1-20170127-UNOFFICIAL-libra

https://cloud.mail.ru/public/5gFn/T7fFXu2Ap

http://4pda.ru/forum/index.php?showtopic=697094&view=findpost&p=57666225
[Xiaomi Mi 4C] naaiil:
want to ask, lineage os has screenshot tiles and headset icons?
[Xiaomi Mi 4C] dla5244:
[MENTION=4337348]Hikari no Tenshi[/MENTION]

WIFI issue fix

/system/etc/wifi/WCNSS_qcom_cfg.ini

- gEnablePowerSaveOffload=2

+ gEnablePowerSaveOffload=1

In readiness for nougat bootloader, It seems imperative to change the way to include dtb in kernel

https://xdaforums.com/mi-4c/general/note-dev-information-nougat-t3545771
[Xiaomi Mi 4C] PeterMarkoff:
anyone tried newest 20170130 build from HnT? He said you should first flash MIUI nougat which will lick your bootloader, then unlock it, TWRP and flash finally his new build

OR

if you are not experiencing any touch issues you can flash directly new build, but you should as well flash boot.img provided by him. anyone tried this second option? i don't feel like eating hours flashing miui and trying to unlock bootloader if it's even possible on MIUI nougat

all links are here

https://www.reddit.com/r/Mi4c/comments/5r10wp/unofficial_lineage_os_141_android_71_for_xiaomi/
[Xiaomi Mi 4C] Stardust89:
Such a big deal to update...better wait more till stability since 20170122 working +/- well..
[Xiaomi Mi 4C] PeterMarkoff:
i had camera issues with recording on that build, for me last stable with no camera issues was 20170112
[Xiaomi Mi 4C] ataralgin2:
As Hikari mentioned later, he is heading to more MIUI way, so he will not test changes on Lineage builds. It's fully on us.

Mi4C LOS14.1
[Xiaomi Mi 4C] Ydraulikos:
this commit may fix the battery problems (thanks TSL)

Can someone inform the dev to include this to our kernel too?
[Xiaomi Mi 4C] mendro:
Anyway to flash it separately to another rom?
[Xiaomi Mi 4C] naaiil:
[MENTION=2511007]csolanol[/MENTION]
[Xiaomi Mi 4C] csolanol:
What battery problems?. Drain, % left calculations, shutdown when battery is at x%?.

I think tsl has this problemst too. Btw i will test. Thanks.
[Xiaomi Mi 4C] Cozzmy13:
That commit is so bloated!

Cyclic counter is already modified in all current kernels, but I'll make a commit with the rest of the changes added.

I so hate people who don't know/want to keep a git history understandable.
[Xiaomi Mi 4C] naaiil:
i think the problem about battery drop after restart, because they fix that on latest cm13 TS..
[Xiaomi Mi 4C] csolanol:
What do you think buddy, would this improve something?. [emoji53]
[Xiaomi Mi 4C] Cozzmy13:
After a deeper analysis, the commit by TS updates qpnp-fg to the latest CAF version, in which battery doesn't drop after a restart.

You can try cherry-picking this but it will conflict a lot.

The problem is that every kernel used the patch Xiaomi provided without analyzing its contents. The patch was older than the CAF base and this introduced some regressions, including this problem.

If anyone wants to test a kernel which (probably) doesn't have the problem, please try this flashing this

https://drive.google.com/open?id=0B9WMSJf5LSatWDlRTFBnbHR5bmM

WiFi won't work on AICP because [MENTION=2511007]csolanol[/MENTION] now builds the WiFi driver as a module(why?).

With enough contributors I can maybe make a good kernel which doesn't have any of those bugs and is also good with battery-life.
[Xiaomi Mi 4C] DaVe1987:
Is for a specific rom this kernel?

Inviato dal mio Mi-4c utilizzando Tapatalk
[Xiaomi Mi 4C] Cozzmy13:
It should work with any ROM.
[Xiaomi Mi 4C] csolanol:
I am still building WiFi driver as a module because of I had some problems with tethering with it built in the kernel. Build get rid of the module for next build.

I cherry picked the commit and fixed conflicts, built just the kernel but didn't boot. Would try it building the entire rom.
[Xiaomi Mi 4C] Ydraulikos:
Battery drops after restart should be fixed.

CUTOFF_VOLTAGE & IRQ_VOLT_EMPTY are also affected by this commit, so it may fix the unexpected shutdowns when the battery has still power. My guess is that the voltage of the battery decreases (when the battery level lowers), so when the A57 load is high (A57 requires a lot of power) the voltage decreases even more, CUTOFF_VOLTAGE is reached and the device shuts down.

Not sure though if this should be an #ifndef (lower CUTOFF_VOLTAGE reduces the chance of an unexpected shutdown).

Maybe someone can try this too (although it might not be safe)
[Xiaomi Mi 4C] Cozzmy13:
If you don't get it to boot i'll send you a PR tomorrow.

---------- Post added at 20:21 ---------- Previous post was at 20:18 ----------

The lower CUTOFF_VOLTAGE is from the CAF driver, the higher one is the one modified by Xiaomi.

https://github.com/Demon000/libra/blob/msm-clean/drivers/power/qpnp-fg.c

CAF driver for reference
[Xiaomi Mi 4C] Ydraulikos:
Then it should be safe to reduce it.

this is not the value from CAF so someone can test

IRQ_VOLT_EMPTY 3100

CUTOFF_VOLTAGE 3200

and see if that fixes the problem
[Xiaomi Mi 4C] Cozzmy13:
The best thing to do right now would be to get rid of Xiaomi driver modifications. I pretty much am the only one who spent time(entire months) analyzing what should be added and what not from Xiaomi's patch. I came too late in this game to be able to make my development work noticed.

---------- Post added at 20:56 ---------- Previous post was at 20:39 ----------

The kernel I posted earlier uses those values.
[Xiaomi Mi 4C] DaVe1987:
Working in RR i'm test now.

But have a problem with buttons and is not possible setting the button vibrations is too strong for me and double tap not working.THX for share.

Inviato dal mio Mi-4c utilizzando Tapatalk
[Xiaomi Mi 4C] blagru:
I'd be grateful if someone can get this to work. My battery issues are greatly diminished in slim 6, but I still have battery turning off at 40ish but then I can turn the phone back on and use it till 0%. Quite impressive and I couldn't find any other Rom with the same functionality.
[Xiaomi Mi 4C] Cozzmy13:
It's not supposed to be 100% working, it's just so people can test if the phone still has battery problems.

Also, can you explain what's the problem with the buttons?
[Xiaomi Mi 4C] csolanol:
Doesn't boot even building from clobber. This is the patch i applied: https://github.com/csolanol/kernel_xiaomi_msm8992/commit/7117005e360a893d4a55aab61de0a45ff4b14241

Thanks [MENTION=5994357]Cozzmy13[/MENTION]
[Xiaomi Mi 4C] Brunnys:
IMHO, what we really miss in this phone development is a person that could bring us a custom kernel, fully functional and stable, cleaning the mess that xiaomi have done. We have a lot of ROMs, but neither one developer focused entirely on the kernel (even if they obviously work on it).

So, we really appreciate your help, keep up the good work!
[Xiaomi Mi 4C] DaVe1987:
Working reboot % battery is solved. Work only back buttons, i using touch buttons for now.

Inviato dal mio Mi-4c utilizzando Tapatalk
[Xiaomi Mi 4C] csolanol:
[MENTION=5994357]Cozzmy13[/MENTION] doing an awesome work. If you get a rock kernel base with all hardware supported, add features to it is the easiest part. Keep going!

Thanks!.
[Xiaomi Mi 4C] Autines:
WiFi sometimes change slow in aicp rom. It cannot connect to network.
[Xiaomi Mi 4C] Danny94:
[MENTION=6343169]Autines[/MENTION]

did you tryed latest build ?
[Xiaomi Mi 4C] Autines:
Yes, it is the latest build.
[Xiaomi Mi 4C] elangbayu17:
Hi guys, where this thread is going? Where is LineageOS by HnT discussion? I'm waiting for his new build, but when i'm checked here, it doesn't come out yet. Can someone tell me what's going on?
[Xiaomi Mi 4C] ataralgin2:
HnT is going it's own way - he's building over MIUI and posted on 4PDA...

Mi4C AICP12.1
[Xiaomi Mi 4C] Calhy:
https://4pda.ru/forum/index.php?showtopic=697094&st=7540#entry58414475

https://cloud.mail.ru/public/Jgm1/33W251tHA
[Xiaomi Mi 4C] Plunato:
Bugs?
[Xiaomi Mi 4C] ermacwins:
So he's still don't lineage builds :)
[Xiaomi Mi 4C] PeterMarkoff:
all the new builds from HnT require flashing new MIUI nougat firmware/blobs which will lock your bootloader and can be unlocked only official, the unofficial method doesn't work

same goes for Resurrection Remix 5.7.2 (5.7.1 is last proper on previous bootloader)

if you can unlock bootloader official way and don't mind wasting hours dealing with this to receive future updates, feel free to proceed, if not stay on your current ROM until there will be Android 8, otherwise I don't think it's worthy to update and lock bootloader
[Xiaomi Mi 4C] ermacwins:
When did custom roms lock the bootloader?
[Xiaomi Mi 4C] elangbayu17:
Can you give me the tutorial to update it to latest HnT build?:confused:
[Xiaomi Mi 4C] ermacwins:
Any new builds?
[Xiaomi Mi 4C] kurokuroninja:
Here it is

https://cloud.mail.ru/public/5chd/nq9kzQdfW
[Xiaomi Mi 4C] ermacwins:
Seem to be in a bootloop with latest build. Anyone else having this problem?
[Xiaomi Mi 4C] ataralgin2:
http://xdaforums.com/showthread.php?p=71140885

Mi4C AICP12.1
[Xiaomi Mi 4C] turcanda:
14 march build

here is the build from 14 march 2017 :

drive.google.com/open?id=0By1Axtdp_C7LYWJrdHpHb21WTGM
[Xiaomi Mi 4C] onsen wanderer:
Hey!

Here is new build lineage-14.1-20170317-UNOFFICIAL-libra.zip

ttps://yadi.sk/d/h8fI6v6Y3G7R6U

but, my Mi4s has boot-looped. Has anyone resolve about this problem?

[MENTION=4337348]Hikari no Tenshi[/MENTION] said below for Mi4s. Zip install on TWRP is Ok, but bootloop…

1. Open firmware file archiver (preferably 7-Zip).

2. Extract the file / the META-the INF / com / the google / android / the updater-script .

3. Open the file updater-script with a program of Notepad ++ .

4. Remove the string type:

(! less_than_int (1489732598, getprop ( "ro.build.date.utc")) ) || abort ( "E3003: Can not install this package ( Friday, 17 Bereznev 2017 08:36:38 +0200) over newer build (" + getprop ( "ro.build.date") + ").");

assert (getprop ( "ro.product.device") == "4C" || getprop ( "ro.build.product") == "4C" || getprop ( "ro.product.device") == "libra "|| getprop (" ro.build.product ") ==" libra "|| abort (" E3004: This package is for device: 4C, libra; this device is "+ getprop (" ro.product.device ") +) ".";);

5. Save the file and throw back into the firmware.

ttps://4pda.ru/forum/index.php?showtopic=697094&st=7860#entry59475586
[Xiaomi Mi 4C] ermacwins:
Super Mario Run not showing in play store nor does the apk install.
[Xiaomi Mi 4C] cezarmed2:
I think it's because you have root.

Trimis de pe al meu Mi-4c folosind Tapatalk
[Xiaomi Mi 4C] ermacwins:
Xposed only way to hide root?
[Xiaomi Mi 4C] vafele:
Which is the latest LineageOS build that does not use MIUI nougat FW? in other words.. which is the latest build to flash safely without locking bootloader?

PS. i edited your statement on ResurrectionRemix to correct version numbers. 5.8.2 is the first build locking bootloader
[Xiaomi Mi 4C] PeterMarkoff:
The last one working properly without camera issues (video recording) and not requiring new bootloader for me was 20170112. Miror to it is in subreddit Mi4c.
[Xiaomi Mi 4C] vafele:
thanks, just tried it. it still has the same GPS stability issues as all resurrection builds + some unique ones like file transfer is not working while ADB is enabled.

guess i'm back to good old CM 13.1
[Xiaomi Mi 4C] MacGyver17:
Hello. I'm using LineageOS 14.1 by HnT. And got an accidentally reboot after changing my system profiles.

Here's my log

https://drive.google.com/file/d/0B5xi4dSIx-Oic2xLbWViTWNOSkU/view?usp=drivesdk

Hope it's help.

It's little bit annoying because changing system profiles must be make your work faster (especially with changing setting, right ?)
[Xiaomi Mi 4C] MacGyver17:
Is there's no new information about newest build from HnT ??

Or he's stop working stop workinb for lineage mi4c ?? :(
[Xiaomi Mi 4C] josepmaria:
See last build in http://4pda.ru/forum/index.php?showtopic=697094&st=8480#entry60402894

You need nougat bootloader. It's my daily driver and works perfect.
[Xiaomi Mi 4C] MacGyver17:
Nougat bootloader ?

So it can't direct flash from 20170112 ??
[Xiaomi Mi 4C] josepmaria:
yes, the last firmware of miui with android 7.0. Download it from https://xiaomi.eu/community/threads/7-4-13-14.39618/ Download also the twrp 7.0 version from https://www.androidfilehost.com/?fid=457095661767135741

Flash the rom and inmediatly the twrp. Reboot to twrp and flash HnT rom and gapps.
[Xiaomi Mi 4C] MacGyver17:
I think I will stick to 20170112 rather than update it. Considering a lost of my data..
[Xiaomi Mi 4C] miimaa:
I've managed to flash nougat bootloader yesterday with this guide: https://xdaforums.com/mi-4c/general/guide-unlocking-mi4c-bl-verification-t3336779

I tried to flash Lineage but I got "error 7". However I managed to flash AICP with no errors.

I have TWRP 3.0.2.0 installed.

Am I doing something wrong?
[Xiaomi Mi 4C] josepmaria:
Use this twrp https://www.androidfilehost.com/?fid=457095661767135741

Ensure you flashed nougat bootloader, the guide you mentioned is for unlocking bootoader.
[Xiaomi Mi 4C] miimaa:
In that guide at step 4 you flash miui 6.17. Isn't that where you get the nougat bootloader?
[Xiaomi Mi 4C] josepmaria:
No, this rom is lollipop bootloader. Look at post #476
[Xiaomi Mi 4C] Cozzmy13:
-- Wrong post. --
[Xiaomi Mi 4C] miimaa:
So does this lock the bootloader?
[Xiaomi Mi 4C] josepmaria:
In theory yes, but i flashed twrp just after the rom and reboot recovery and flashed HnT rom without a problem.
[Xiaomi Mi 4C] miimaa:
Then we have a problem.

OT:

I've been flashing custom roms since HTC Desire. Few years ago I thought the flashing was really difficult back in those days. Have to say, flashing custom roms today is extremely difficult. :D
[Xiaomi Mi 4C] MacGyver17:
Is there's any update for system profile or bluetooth setting ? I got a lot of reboot from it I think..

The condition is :

- I have 1 System Profiles that automatic active when I connected to my Bluetooth earphone.

The problem :

- On the first time system profile kicks in, there's no restart.

- But after sometimes, my screen not responded with any touch (but the screen keep doing his job like playing video from YouTube)

- After screen timeout, the screen goes off and the sound of video still played on my Bluetooth earphone but power button won't make the screen on.

- After some minute, the phone accidentally restart and showing android logo..

I don't know where the bug is. Is the system profile or the bluetooth ?

I hope HnT make an update process more simple to do, or at least fix this bug :( . I'm okay with this version (20170112) but I annoyed by this problem
[Xiaomi Mi 4C] MacGyver17:
Anyone can read a log and find the problem ?? I got this directly after my phone reboot.

https://drive.google.com/file/d/0B5xi4dSIx-OiTEtTX3puTXhGWjQ/view?usp=drivesdk
[Xiaomi Mi 4C] zahri15:
Hi masters, please shared step how to flase lineage from cm14.1

I had tray to flash with twrp and always bootlop
[Xiaomi Mi 4C] PeterMarkoff:
just flash LOS 14.1 from Cozzmy13 (see other XDA thread), that one is for Lollipop bootloader which I guess you have if you are coming from old CM14.1, the other release of LOS 14.1 from HnT is using since end of January already Nougat bootloader which will make your phone bootloop
[Xiaomi Mi 4C] zahri15:
Thanks, I've successfully flash LOS 14.1
[Xiaomi Mi 4C] eliaspizarro:
Can't add contacts to Google account, doesn't have the option
[Xiaomi Mi 4C] rahulshankar:
Currently running LOS14.1 build 20170707

Has anyone experienced GPS issues? In particular when using navigation apps like Google Maps or Waze? The GPS can find your location but besides that doesn't aid in navigation. GPS apps keep saying searching for GPS signal...

Does anyone have a fix for this?

Navigation was working fine for me in CM 13.1

Thanks.
[Xiaomi Mi 4C] nosteres:
so led notifications work but only russian and english language :/
[Xiaomi Mi 4C] artofghost:
Led light notification is working

if at stuck logo, you try with delete bootanimation.zip in system/media

its working for me:D
[Xiaomi Mi 4C] ermacwins:
[MENTION=4420061]nosteres[/MENTION] [MENTION=5412973]artofghost[/MENTION] can you check if video recording works with bacon camera please? https://play.google.com/store/apps/details?id=com.fgnm.baconcamera

Shutter lag seems decent for pictures
[Xiaomi Mi 4C] nosteres:
on bacon camera i can only take a picture... no video recording and panorama

google camera working very well
[Xiaomi Mi 4C] itsignas:
Where do I find it? There isn't any zip in ROM archive system and there is only build.prop file.
[Xiaomi Mi 4C] tsymbik:
It's OK. First boot takes a looooong time (if you are on a russian one). I'm on 2/16 too and experienced exactly the same situation as you did, so you just have to wait a bit ;)

Or: reboot into twrp. Mount system, go to Advanced->File Manager->system->media and delete the file "bootanimation.zip"
[Xiaomi Mi 4C] Ippfcox:
I'm not sure, seems it works.
[Xiaomi Mi 4C] itsignas:
Thanks! Actually it worked, but booted about 15mins, which is quite long, cause other roms boot in few mins. Everything working, 70k antutu score. LED working, no crashes so far, multitasking is great, far better than ressurection remix 5.7.4. Great!
[Xiaomi Mi 4C] sch3ggi4:
There is any way to flash it to mi4s?

Inviato dal mio SM-G930F utilizzando Tapatalk