yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 4C] emfox:
yes.

and though it's simple but maybe someone need it, the local_manifest/libra.xml:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="kumajaya/android_device_xiaomi_libra" path="device/xiaomi/libra" remote="github" revision="cm-13.0" />
<project name="kumajaya/android_kernel_xiaomi_msm8992" path="kernel/xiaomi/msm8992" remote="github" revision="cm-13.0" />
<project name="kumajaya/proprietary_vendor_xiaomi" path="vendor/xiaomi" remote="github" revision="cm-13.0" />
</manifest>
[Xiaomi Mi 4C] ketut.kumajaya:
Use xiaobai112220's work for camera shim as a reference but using a different method, now I have a working camera. Thanks [MENTION=5594486]xiaobai112220[/MENTION] :good: I'll push my local changes after a rebuild.
[Xiaomi Mi 4C] ketut.kumajaya:
Just won fighting against non-jack build. Now, I'm thinking maybe proguard still disabled in jack build :confused:
[Xiaomi Mi 4C] ketut.kumajaya:
[MENTION=3813099]emfox[/MENTION] Working camera source update:

- https://github.com/kumajaya/proprietary_vendor_xiaomi/commits/cm-13.0

- https://github.com/kumajaya/android_device_xiaomi_libra/commits/cm-13.0

- Cherry-pick: http://review.cyanogenmod.org/140184

Now I need more Saturday night for libra sensors :laugh:
[Xiaomi Mi 4C] emfox:
Good work! keep going!

I'll always do regression build test :)
[Xiaomi Mi 4C] kevinnol:
Now that's what I call dedication:good:
[Xiaomi Mi 4C] dexxa05:
I will try to build it ;)
[Xiaomi Mi 4C] gonzalocav:
Hi [MENTION=3813099]emfox[/MENTION] ! I found a CM13 libra build from saturday in your Drive. Has it been built from [MENTION=4021423]ketut.kumajaya[/MENTION] sources? Can be flashed without risks? I suppose there are bugs as this build hasn't been announced.

Thanks in advance! :good:
[Xiaomi Mi 4C] ketut.kumajaya:
Don't flash it! It's just a test build, still under development.
[Xiaomi Mi 4C] ketut.kumajaya:
I found open source sensor HAL for our device. My device sensor now increased from 0 to 11 :)
[Xiaomi Mi 4C] ketut.kumajaya:
Still not properly configured but open source will be win ;)
[Xiaomi Mi 4C] thesofty:
Exiting :) Thanks for the hard work here. Really glad we got kernel sources and devs now this greatly improves the appeal of the phone and its possible usefull lifespan :)
[Xiaomi Mi 4C] emfox:
I use greenify and no reboot since 3 days ago.
[Xiaomi Mi 4C] Pikachu8119:
ok, i've rebooted the phone and all apps that i installed have gone

UPD: its like they become invisible, i've tried to install gapps but anyway, the're missing
[Xiaomi Mi 4C] COMI80:
No sound from SoundCloud nor headset, nor speaker.
[Xiaomi Mi 4C] ketut.kumajaya:
Seems a common audio issue, WhatsApp also affected. Upstream bullhead patch https://github.com/CyanogenMod/andr...mmit/280a2051db3cd4d8df83bc80e454553ae0a77e04 will fix it.
[Xiaomi Mi 4C] Soymicmic:
Updated using OTA. Perfect, slow but it's ok

Enviado desde mi Mi-4c mediante Tapatalk
[Xiaomi Mi 4C] scrofanionel:
After fix the Camera (please put Snapdragon cam by default), :and the audio issues, I think that will be the best ROM for MI4C.

But, meantime, please take a look to Súperlumial Team, they are working now to optimize the battery consumption. How will be the road map of this ROM? Faster is, stable, will be, battery friendly???. Now is my default ROM to use.

Please help me to keep it and no change.

Thanks for update.
[Xiaomi Mi 4C] Morloc2:
thx for your work

whats the difference between ASOP and CM13?

and, whats about the GPS in this ROM? works fine?

better audio than TSL?
[Xiaomi Mi 4C] ketut.kumajaya:
Official CyanogenMod device usually my main reference but official Google device more interesting for now.

CM ported bullhead from AOSP without too much low level changes (without QCOM_HARDWARE flag) and I ported CM for bullhead to Mi-4c. This ROM GPS performance so good. I don't know what Google have done, GPS blobs completely from bullhead.
[Xiaomi Mi 4C] ketut.kumajaya:
No serious development this night, my company 1500kW, 3.3kV compressor starting panel blown yesterday. No big problem for me, I always found a way out, just a bit tired.
[Xiaomi Mi 4C] ketut.kumajaya:
[MENTION=3813099]emfox[/MENTION] Please remove http://review.cyanogenmod.org/141292 and switch to http://review.cyanogenmod.org/141615 . Just pushed audio fix to github also.

EDIT: For end user, you can copy https://raw.githubusercontent.com/kumajaya/android_device_xiaomi_libra/cm-13.0/audio/mixer_paths.xml to /system/etc/ to fix SoundCloud audio, may be also applicable for WhatsApp audio issue.
[Xiaomi Mi 4C] ketut.kumajaya:
Just fixed it. Please report if you found a bug but please don't over reacting. You scared me ;)
[Xiaomi Mi 4C] Pikachu8119:
Sry[emoji4]

What about viper4android on your build?

Does it work?
[Xiaomi Mi 4C] ketut.kumajaya:
I don't know, AudioFX more than enough for me :D
[Xiaomi Mi 4C] gonzalocav:
[MENTION=4021423]ketut.kumajaya[/MENTION] You da man, Mr. Kumajaya!

This ROM is so smooooooth and speedy! Dude... this is awesome!

Kudos and thanks to [MENTION=4021423]ketut.kumajaya[/MENTION] for sharing and developing the next masterpiece for libra.

Thanks [MENTION=3813099]emfox[/MENTION]!
[Xiaomi Mi 4C] mendocino_610:
what is for daily usage? any bugs??
[Xiaomi Mi 4C] Soymicmic:
Yes, it is. I'm using from 3 days ago, and it's fast and smooth

Enviado desde mi Mi-4c mediante Tapatalk
[Xiaomi Mi 4C] scrofanionel:
This ROM is very fast and is a good ROM, but depend of your expectations maybe is good or not so good.

2 bugs that maybe are not for daily use:

1. audio message in Whatsapp is not working (in the next build this will be solved as said kumajaya)

2. The camera is not the best of this ROM. Not working in slow motion video, and no take photos in HDR mode. (but you can install other app camera than work well.

I use this ROM from more than 3 days and is the best for my daily use. (I've try other cm13 ROM)
[Xiaomi Mi 4C] Pikachu8119:
When i turn off the wifi connection and then mobile internet and lock the phone(turn off the screen, idk how to name it), it reboots

UPD: it's just when i turn off wifi connection and then turn off screen.
[Xiaomi Mi 4C] kevinnol:
could you upload the last_kmsg ?

It's probably easier for [MENTION=4021423]ketut.kumajaya[/MENTION] to find a solution
[Xiaomi Mi 4C] ketut.kumajaya:
I'll try to reproduce it. Logcat will be useful, I managed to fix SoundCloud audio issue using a single on device logcat command.
[Xiaomi Mi 4C] SOK4:
Guys, last builds (after 11-09) were buggy enough.. I'm always looking for a fresh builds and hoped that in future it will come more and more stable, but the development is ended, so it's time to roll back to the most stable build.. There was some posts in Exceed Kernel topic about most stable Kuma build, it's 11-09 version. But Emfox has deleted almost all previous builds from his G.Drive.

Can anyone help to get this build?
[Xiaomi Mi 4C] BlackXhorneT:
I have 11-07 and 11-17 if either would help? 1107 was the best I got out of my mi4s on this rom
[Xiaomi Mi 4C] SOK4:
Can you, pls, load it to google drive and post link here?
[Xiaomi Mi 4C] BlackXhorneT:
1107 build

https://drive.google.com/file/d/0B4fhgyAt44uHNkJORjlONlZ3bnc/view?usp=drivesdk

If you want 1117 let me know
[Xiaomi Mi 4C] SOK4:
Is it better than 1107?
[Xiaomi Mi 4C] BlackXhorneT:
As I said before, 1107 is the best I got. Just trying to be helpful in case you wanted it
[Xiaomi Mi 4C] SOK4:
I'm decided to use Resurrection Remix 5.8.0 based on Android 7.1

The most fresh verison available here:

http://downloads.resurrectionremix.com/libra/

It's not 100% perfect, but better than latest emfox builds and it's Android 7.1 !!
[Xiaomi Mi 4C] adr1st:
Here cm-13.0-20161109-NIGHTLY-libra 11-09 version
[Xiaomi Mi 4C] terence.tan:
Hi all,

In the next few weeks I plan to release an updated version of this line of development (LineageOS 13.0 using kumajaya's sources). Like a successor to emfox's builds. I posted about it here previously: https://xdaforums.com/mi-4c/general/check-lineageos-13-0-nightlies-mi-4c-t3537867

This will initially be a one-off build to see if it improves on other people's work. We'll decide afterwards if this is worthwhile or if I should really be doing a 14.1 build.

In the meantime I still have a few tasks: add the firmware updater so people are running a consistent version of firmware; clean up my change history in git; upload to Github so people can inspect the source; actually test the build to ensure it's as stable as I want. Oh, and make 10 posts to the forum so I can post download links without the mods thinking I'm a spammer :)
[Xiaomi Mi 4C] militantmind:
Looking forward to it sir.
[Xiaomi Mi 4C] terence.tan:
lineage-13.0-20170212-UNOFFICIAL-libra.zip

Hi all. As promised, I have released the following build to the wide world:

lineage-13.0-20170212-UNOFFICIAL-libra.zip available at: https://drive.google.com/drive/folders/0B6syT4ByVmXsN21KYldYUFFaUFk

Device source: https://github.com/calroth/android_device_xiaomi_libra

Kernel source: https://github.com/calroth/android_kernel_xiaomi_msm8992

Based on: [MENTION=4021423]ketut.kumajaya[/MENTION]'s sources, with inspiration from [MENTION=3813099]emfox[/MENTION]. And dozens of others. Thanks to you all :)

Now, some important notes:

Standard disclaimer: there is no warranty. Back up your device first :)

If you find this ROM unstable, let me know! Then revert to the ROM of your choice

Contains radio firmware from MIUI V8.1.3.0; will automatically update your device when you flash

There is no root (su) access. This is how LineageOS comes these days (source)

All proprietary blobs are from official MIUI V8.1.3.0, except for the "gatekeeper" library which is from official MIUI developer V7.1.20

Tested with TS TWRP 3.0.2-0 from Team Superluminal

Tested with Open GApps ARM64 6.0 Stock

What works and what doesn't:

Works and tested 3G/4G data and voice (a.k.a. the radio)

Works and tested Wi-Fi

Works and tested GPS, including AGPS

Works and tested Sensors (accelerometer, compass, gyroscope etc.)

Works and tested OpenGL-based apps and games

Works and tested Hardware encryption

Works and tested Use of f2fs for /data partition

Mostly working Camera and flash for still photos; seems to work OK but needs more testing

Mostly working Bluetooth works, but sometimes turns itself off; trying to find out why

Untested Qualcomm CnE for quick handoff between Wi-Fi and 3G/4G data

Untested Qualcomm IZat for getting your location using a mix of GPS, Bluetooth, Wi-Fi and other sensors

Broken Camera for video recording; working on a fix

Broken RenderScript, if anyone was using this; unsure if I can get this working or if there's demand

Removed Qualcomm Wireless Display (Miracast), if anyone was using this

Removed IP Multimedia Subsystem packages, if anyone was using this

Good luck! And thanks to the community.
[Xiaomi Mi 4C] IcyGlacial:
great man, will do testing tommorow.
[Xiaomi Mi 4C] DDvnguyen:
Just install it to my device. will report later :D
[Xiaomi Mi 4C] yanardians:
Bug lineage-13.0-20170212-UNOFFICIAL-libra

1. Can't change network from settings & 4636

2. If I reject or drop a call, it still connected must restart phone to make it normal again.

Sorry for my bad english
[Xiaomi Mi 4C] adewisman:
Just wanted to say happy birthday om [MENTION=4021423]ketut.kumajaya[/MENTION] , wish you all the best !!
[Xiaomi Mi 4C] terence.tan:
Hi all. Still here. Haven't had much time to look at code recently!

I noticed a few issues with calls and SMS not working OK. Working on it...
[Xiaomi Mi 4C] emfox:
am building.

I suppose moving from 141292 to 141615 doesn't change the real thing, we have already use custom rild right? then it's useless to cdma support, I have test that on 141292.
[Xiaomi Mi 4C] ketut.kumajaya:
Review 141292 most preferred, both still under review. A fully working ROM without any upstream change will be perfect. A new patch and revert just a normal process. Maybe I'll found a better solution.

About CDMA support issue, I need a complete list of network type from stock MIUI *#*#4636#*#* - Phone information. Anyone around you with Mi-4c original ROM?
[Xiaomi Mi 4C] emfox:
Yes, I have one friend using 4c on MIUI, I'll ask him tomorrow.

But is that important? Since it's working while only one cdma sim card inserted (but not working while another gsm card inserted and switch data to that gsm card...)

---------- Post added at 12:36 PM ---------- Previous post was at 12:35 PM ----------

build completed and uploaded, those have audio issues could test now.
[Xiaomi Mi 4C] ketut.kumajaya:
I hate a random patch, my patch should be based on a correct information and/or a correct reason. Still try to find the reason behind about your CDMA issue. How about Redmi 2, no such bug like this?
[Xiaomi Mi 4C] Pikachu8119:
There's no last_kmsg in /proc folder(
[Xiaomi Mi 4C] ketut.kumajaya:
last_kmsg is not a must, you can use dmesg command.
[Xiaomi Mi 4C] emfox:
Most Redmi 2 variant doesn't support cdma at all. though there's a cdma variant, but it doesn't support data over gsm. so no such kind of problems.
[Xiaomi Mi 4C] Pikachu8119:
i've made dmesg.log right after this reboot
[Xiaomi Mi 4C] scrofanionel:
Hi guys.

Updated to the last build 24.

Audio issue solved. Whatzapp audio message work well.

The bug of HDR camera still there.

Thanks. Good work.
[Xiaomi Mi 4C] Brunnys:
Here we go (if I have understood [emoji6] )
[Xiaomi Mi 4C] emfox:
That's it. Thanks.
[Xiaomi Mi 4C] Pikachu8119:
new bug: i can't pull down status bar and there is no notifications

P.S. i made clean install, version 2404
[Xiaomi Mi 4C] made-in-tirol:
phone info
[Xiaomi Mi 4C] celticslment:
Me too, and the lock screen not appear in slide mode as if nonblocking.
[Xiaomi Mi 4C] ketut.kumajaya:
Maybe upstream bug, no idea for now, dirty update here.

WiFi bug fix available from upstream https://review.cyanogenmod.org/141626
[Xiaomi Mi 4C] ketut.kumajaya:
Just pushed updated kernel and WiFi driver, CAF's current branch for MSM8992/MSM8994. Small change in device tree in attempt to fix GSM and CDMA combination issue. [MENTION=3813099]emfox[/MENTION] will rebuild the ROM in his free time :good:
[Xiaomi Mi 4C] notohp:
No such issues here. Just did a 2404 clean install, no gapps and restored TiBu apps.

Thanks ketut.kumajaya and emfox. I will be testing this rom as my daily driver. I have tested xiaobai cm13 (camera issues) and TS (dont like their init.d addons/scripts). Nothing like AOSP for a clean experience on your hardware.
[Xiaomi Mi 4C] Pikachu8119:
Does the notification bar pull down?
[Xiaomi Mi 4C] notohp:
Yes it does. The default setting of pulldown from right is what i use.
[Xiaomi Mi 4C] Ydraulikos:
Same problem here. I think its related to google play services
[Xiaomi Mi 4C] schjor:
After i turned on airplane mode and screen goes off (automatically lock) phone rebooted...i tried to repeat the scenario and it reboots every time
[Xiaomi Mi 4C] Hubaqu:
It's a Nexus 5X related bug. :p

Seems that we now have a nexus in our hands...

https://www.reddit.com/r/cyanogenmo...us_5x_cm13_reboots_when_i_turn_my_screen_off/
[Xiaomi Mi 4C] Pezcabezas:
Could you try to implement that in some way?

http://xdaforums.com/showpost.php?p=64715483&postcount=1163

It is getting very good battery results and no lag in nexus 5x. People are getting like 6-7 hours SOT and nexus 5x battery is only 2700 mah.

Enviado desde mi Mi-4c mediante Tapatalk
[Xiaomi Mi 4C] ermacwins:
I think features and tweaks should come after everything is working as a daily driver.
[Xiaomi Mi 4C] emfox:
I've done the new build.

and the config_radio_access_family option does not work, here's the list( both before and after flashing this build, no difference).
[Xiaomi Mi 4C] notohp:
This is one reason why i want to use this rom. You can try setting your best config using a kernel tweak app. I use kernel adiutor.

I actually would recommend you study governors and set it as per your usage. Other's settings may not always work for you.

Another good thing is there is no funky governors on stock linux kernel and i believe that interactive/ondemand along with thermal hotplugging can give you the best returns if tweaked properly.
[Xiaomi Mi 4C] ketut.kumajaya:
With https://review.cyanogenmod.org/141626, I can't reproduce above bug.

I know, will be no change in the list. Now, in SIM settings please try set both SIM in same preferred network "Global" type. You can also select network operator manually.

At least one user here understand me :laugh:
[Xiaomi Mi 4C] emfox:
Since I did a clean install, the default sim preferred network both are Global already, and I changed to another and change back, nothing happened. And as I told before, select network operator will quickly return with "Error while searching for network", and "choose automatically" will return "registered on network" very quickly(less than one minute).

Edit: New bug, it even changed my IMEI, the result from *#06# while data on gsm card is "IMEI<cr>86783300abcd2636<cr>86783300abcd2636", and the one while data on cmda card is (I think this should be correct) "IMEI<cr>990006xyzw6198<cr>86783300abcd2636". I found it because one of my app bought and registered against phone IMEI.
[Xiaomi Mi 4C] ketut.kumajaya:
I'll create a new branch for Lollipop RIL. Even I have enough experience how to handle it, I hate too much shim library in my source.
[Xiaomi Mi 4C] thesofty:
Does this mean latest version in drive currently is unsafe to use because of imei?
[Xiaomi Mi 4C] karrotto:
After installing a couple newer versions my phone still doesn't charge using my pc. I hope you could fix this bug, i love your rom but this is very important to me. Thanks in advance!
[Xiaomi Mi 4C] ketut.kumajaya:
I don't think so. I didn't touch IMEI related things here, maybe just failed to read the first/second IMEI.
[Xiaomi Mi 4C] scrofanionel:
Hi there.

Last build 24.2

Clean install, 2 bugs:

1. Notification bar is not showing the new message, notification, etc

2. Aeroplane mode is buggie, the phone is rebooting.

When do dirty install, everything working fine, without this bugs.

Thanks.
[Xiaomi Mi 4C] ketut.kumajaya:
I'm not sure if it's [MENTION=3813099]emfox[/MENTION] latest build (updated kernel + upstream WiFi fix).
[Xiaomi Mi 4C] emfox:
lastest build is 0424-2, are you flashing the newest? if not, try flash it first.
[Xiaomi Mi 4C] scrofanionel:
Like I said, I have the last one. The second of 24 :)
[Xiaomi Mi 4C] emfox:
The situation is more complicated than I thought before.

In China, we have 3 mobile ISPs, China Mobile with GSM/TD-SCDMA/LTE-TDD network, China Unicom with GSM/WCDMA/LTE-FDD, and China Telecom is CDMA1x/CDMA2000/LTE-FDD (to simply I call them CM2/3/4G CU2/3/4G and CT2/3/4G).

the brief evolution history: first, we have phone with gsm which support CM and CU, and phone with cdma which support CT; later, there's phone support both gsm and cdma with in one sim slot, support all ISPs, phone companies call it "full network support" technology ; and comes dual sim card phone, due to the limit of snapdragon and baseband or what(I don't know, whichever hardware),it:

1. support two card of CM2/3/4G and CM2G or CM2/3/4G and CU2G;

2. support two card of CU2/3/4G and CM2G or CU2/3/4G and CU2G;

3. support two card of CT2/3/4G and CM2G or CT2/3/4G and CU2G;

4. does not support two card of CM2/3/4G and CT2G or CU2/3/4G and CT2G, card of CT2G will be no signal;

5. does not support two card of CT2/3/4G and CT2G, card of CT2G will be no signal.

(here XX2G I mean voice only with out data preferred, nowadays no phone could have both slot with data enabled as I know)

So it seems the original hardware of snapdragon does not support the forth situation (which exactly is my situation). But Xiaomi announced that they have achieved to solve it (the forth situation), and call it "full network support 2.0". the phones with "full network support 2.0" are mi4c, redmi note 3 and mi5 (I didn't search all of them, maybe there's more). Other companies does not agree with the "xxx 2.0" term, because it does not like that big step and not solve the problem of fifth situation.

So here comes the part, I used to think some hardware has been upgraded or added in order to become "full network support 2.0"(damn I don't like this phrase too) , but today I found that's a soft way. These words are from some chinese news, bad translation but might be enough:

"combine CPU architectures and operating platforms, use the SVLTE terminal as a dual standby dual channel CDMA / LTE multi-mode terminal, use the method that does not require the modification of the network side and supports concurrent voice and data Dual Rx DualTx, to enable voice and data concurrent on terminal SVLTE".

And the conclusion: our kernel source missing some part of the "full network support 2.0" so that it fall back to "full network support",

It may not be so easy to solve this problem, without using xiaomi's binary blobs. (Hope I'm wrong)

Edit: there should be hardware modifications but software implement is also important.
[Xiaomi Mi 4C] scrofanionel:
Bugs are reported by more than one user of mi4c Telegram Spanish group.

---------- Post added at 11:24 AM ---------- Previous post was at 10:59 AM ----------

The solution of that problem was this:

Clean install of 22 and update to 24-2. In this way no bugs :)
[Xiaomi Mi 4C] Pikachu8119:
And if i want to update to the 24.04 version do i need to wipe cache and davlik cache or just flash it over the 22.04 version?
[Xiaomi Mi 4C] scrofanionel:
OTA
[Xiaomi Mi 4C] thesofty:
This might be a stupid question, but since our phone now mostly is like a nexus 5x can we use the govenor profiles from here now? http://xdaforums.com/showpost.php?p=64279960&postcount=2 cause the only thing i am not too happy with is the battery life
[Xiaomi Mi 4C] notohp:
We dont have elementalX governor for.libra so you cannot use those profiles.

Attaching my battery snapshot thus far...interactive for both big little cpu cores. As you can see, SoT is of little interest to me as whatsapp keeps my radio active a lot in the background. That glitch in the middle is because i did a soft reboot.

EDIT: And my carrier gives pretty bad reception in some areas.
[Xiaomi Mi 4C] thesofty:
Most of those profiles should be for the interactive govenor if i am not totally wrong. Thats why i thought it could work
[Xiaomi Mi 4C] notohp:
Well, the post says it's ElementalX governor. You may give it a shot with interactive if ElementalX is based on that.
[Xiaomi Mi 4C] Pezcabezas:
TSL rom have this governor, but I haven't used any of this tweeks before. I've only tried changing the governor, with not very good improvements.

Enviado desde mi Mi-4c mediante Tapatalk
[Xiaomi Mi 4C] thesofty:
okay, ill try the eclipse script for now. i will report back if there are problems or improvements
[Xiaomi Mi 4C] ketut.kumajaya:
We will switch back to Snap in the next build https://github.com/kumajaya/android_device_xiaomi_libra/commits/cm-13.0 and [MENTION=3813099]emfox[/MENTION] please cherry-pick http://review.cyanogenmod.org/141871
[Xiaomi Mi 4C] gonzalocav:
Maybe it'll work, and maybe not all the lines from that bullhead scripts apply to libra. Maybe anybody could give some light.

Same name, different things:

One thing is a kernel. A different thing is a governor. In that bullhead's post -i think- they recommend ElementalX kernel for Nexus 5x in order to take advantage of the app EX Kernel Manager (placing script files in /storage/emulated/0/ElementalX/gov_profiles, that app reads them). Post #1 in that thread says: "This tweak is applicable to every phone with any ROM or kernel--stock or custom--that provides the Interactive Governor.".
[Xiaomi Mi 4C] thesofty:
I have to say, so far my phone feels a lot cooler but it still feels as snappy as ever. About the battery-life i cant really say much at this point
[Xiaomi Mi 4C] ketut.kumajaya:
More and more issue get swept out. Too bad, emfox still experienced CDMA issue :(