yashsingh1/xdaforums huggingface dataset:
[Mi 3 Android Development] davidcie:
Just in case someone comes across this thread: one issue we came across with the RR-N-v5.8.4-20170808-cancro-Experimental build is a no SIM card icon when in airplane mode. Might not sound like much but you will not be able to use the Google Messages app — it keeps nagging you to "select a SIM card". Pity because we always switch to airplane at night and sometimes you just need to check those last messages :)

EDIT: Seems that changing persist.radio.apm_sim_not_pwdn in build.prop to 1 solved the problem.
[Mi 3 Android Development] UserNamist:
Does this contain the same kernel from this thread? I ask because they were updated within a day of eachother but CAF with OSS Camera support was updated more recently.

Thanks
[Mi 3 Android Development] ptg251294:
Some bugs found.

I am a new user of this rom and want to point out some bugs that I faced.

1) Sometimes mobile data stops working after prolonged WiFi usage. Need to restart the phone to get mobile data working again.

2) The Dirac Settings option in settings---> sound doesn't seems to be working. Has anyone else faced a similar issue.

Dev. I request you to kindly look into these issues.

Thanks for the cool rom.
[Mi 3 Android Development] 3d360:
Friends this ROMs development will not be resumed for sometime bcoz the developers are now focused on aosp 8.0 (Oreo)....

And yeah they will surely update this rom but wait for some time.....:)
[Mi 3 Android Development] HannibalLecter:
[MENTION=5162591]Shahan_mik3[/MENTION] hey brother,

I have unlocked bootloader and rooted my Redmi note 3 (Kenzo). Currently using Carbon ROM 5-Sep build (latest) with stock kernel and magisk. No other mod.

Since, you understand all of this FAR better than me. I wanted to ask you whether I should flash Radon kernel or Agni kernel. What is the difference between them both and which would be better. I need better battery.

Although stock carbon kernel is itsefl not that bad.

I am using Carbon ROM stock on bacon and cancro.

Now flashing your NOS oreo on cancro :D

thank you very much. :)
[Mi 3 Android Development] Shahan_mik3:
Wrong place to ask...And I have never used custom ROMs/kernel in Kenzie so no idea
[Mi 3 Android Development] juwelrana091:
Thank u for ur great work....Is there any possibility to port Oxygen Os?
[Mi 3 Android Development] Shahan_mik3:
Lol for what joy?
[Mi 3 Android Development] DNA_Lant:
slowly changing
[Mi 3 Android Development] Sparkfluxx:
this rom getting an update?
[Mi 3 Android Development] Mi4_lte:
Nice ROM guys! But have some problems: in the gallary,when I crop video and save it, gallery crush. Similarly, when i try to muted sound in a video. And one more, panorama in a camera ,works incorrectly. When I want to save panorama, I have error.
[Mi 3 Android Development] vasishath:
This rom is no longer supported. So we wont be fixing anymore issues.
[Mi 3 Android Development] andrimutit:
what do you mean sir?

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

what do you mean sir
[Mi 3 Android Development] mdki1996:
Developers are working on Oreo roms.

Inviato dal mio MI 4 utilizzando Tapatalk
[Mi 3 Android Development] Axon70:
Fix contacts

Hi, i really like this rom, but i can't see my sim contacts, when i try to import them from sim the application don't show any contact, and if i try to export into my sim i get : impossible to import to the sim....I tried many times to restart my phone, but nothing changed :(.....My phone is a Xiaomi mi4 LTE

Data Sim and calls works :S
[Mi 3 Android Development] vishal24387:
Finally after searching for 2 hrs I found this post. Anyway I am not able to find original nohon battery bm31 mi3 battery on official page of nohon store of aliexpress (link given by shahan. So where should I get it??
[Mi 3 Android Development] RIPPERS:
No more update ?
[Mi 3 Android Development] Shahan_mik3:
New test build up:

*Check thermals.

https://sourceforge.net/projects/resurrection-remix-cancro/files/test/

The feedbacks given were very helpful. thanks
[Mi 3 Android Development] oL00No:
As always, really appreciate all the work you do. Two things:

1. Thermals. Ceiling for temperature is too low in my opinion. I'd like to see the phone go dual core at 50, but retain a higher clock speed. Say, 1700 Mhz all the way to 68C... This would help a lot with things like games.

2. It's true that the gpu scheduler is bugged. It is on most devices. Adreno idler can help, but the best solution I've seen is from zx kernel, that fixed simple ondemand gpu. It's amazing how well that works.

Just some things for you to consider.
[Mi 3 Android Development] surya17:
How to enable fast charging?
[Mi 3 Android Development] oL00No:
Cool down your phone.
[Mi 3 Android Development] ImmovableObject:
The CPU thermal seems to go berserk with this test build. Checkout the attached logcat. It kept triggering CPU throttle and flipping the CPU max freqs, multiple times within a few milliseconds.

On the other hand, thermal throttling on Battery temp seems to remain the same.

Btw, setting the GPU governor to simple_ondemand on Mi3W, hangs & then reboots the phone shortly thereafter.
[Mi 3 Android Development] DGEEEK:
[MENTION=5162591]Shahan_mik3[/MENTION] Im facing one issue.

Whenever i flashed yours compiled rom my device (mi4w) touch digitizer or touch screen stops working im facing this issue from past one month builds of urs rom.

i tried flashing miui global fastboot rom reset my device again and again but the same issue is consistence on ur rom only and all other rom like official rr, liquid dark, lineage official miui had no issue like i mention.

but Today after flahing unofficial rr urs rom i flashed custom kernel redkantcut v6 the touch starts working.
[Mi 3 Android Development] Airlibik:
I'm incurring in a strange issue, sometimes while I am charging my device it makes a sound like the charger has been disconnected and even if the charger is still on the phone stop charging. As you can see from the screenshot there is the bolt symbol near the battery icon but the phone keep discharging.is this my charger fault?or when the temperature goes up to 45 degrees the phone stop charging?
[Mi 3 Android Development] Shahan_mik3:
U have replaced ur display?
[Mi 3 Android Development] Shahan_mik3:
No charging won't stop. This is happening on test build?
[Mi 3 Android Development] Shahan_mik3:
Simple on demand I haven't fixed it yet. Just focusing on thermals ATM which requires time. Should be easy to fix that issue.

Thnx for detailed report
[Mi 3 Android Development] Airlibik:
Yes on RR20170524 build
[Mi 3 Android Development] vasishath:
Probably you have a synaptics or fts touch screen ?
[Mi 3 Android Development] Shahan_mik3:
Can u ping me on tele.
[Mi 3 Android Development] reality1234:
Yeah I am facing this too shahan sir,I connected my phone to charger at night at 17% and there was a bolt sign and even LED light on.But when I unplugged at morning, it was at 13% and led light for charging was still on.But it didn't get charged.
[Mi 3 Android Development] Shahan_mik3:
Revert back to previous test build
[Mi 3 Android Development] kopter36:
I got weird ghost touch issue on 22 May test build sometimes especially when playing games. Cant really test later build because of big zip size.
[Mi 3 Android Development] DGEEEK:
Yes bro I replaced whole touch+display folder from local market.

Plz can u tell me how this will solve pls bro I always flashes ur ROM but now I'm not able.

---------- Post added at 04:05 PM ---------- Previous post was at 04:02 PM ----------

Don't know bro I purchased it from local market and replace by my self.

So this means that the build don't have that correct driver for my replaced touch screen digitizer
[Mi 3 Android Development] reality1234:
Hey sir I did and experienced same problem

See ss.It didn't detect charging.It just stopped charging after some time.l, that's why that straight line in graph
[Mi 3 Android Development] kanarex1:
I instaled lastone today morning with dirty flash, and charging is ok.
[Mi 3 Android Development] stevenanggelo:
Im using 23 may build did anyonce face the net_mgr wakelock? Its keep my phone awake when the screen is off and reduce the battery life drastically
[Mi 3 Android Development] kanarex1:
Please help with restarts.

Hi [MENTION=5162591]Shahan_mik3[/MENTION], I'm useing your RR rom since 2 weeks like daily driver, i changed MIUI to RR because i'm often logout from mobile network and nobody could call to me.

On your RR everything works better, faster, so i want to stay, but i've got random restarts on every build. I don't know maybe my hardware is broken.

I paste a log and please help Shahan.
[Mi 3 Android Development] Shahan_mik3:
In buildprop disable sdcardfs...and lemme know the result
[Mi 3 Android Development] vasishath:
Maybe he has enabled magisk busybox
[Mi 3 Android Development] Shahan_mik3:
That would make it very unstable

[MENTION=2601970]kanarex1[/MENTION] made any changes in magisk?
[Mi 3 Android Development] DGEEEK:
[MENTION=5162591]Shahan_mik3[/MENTION] bro please bro add touch driver for replaced display on ur roms kernel pls bro im not able to use urs work bro
[Mi 3 Android Development] kanarex1:
No, nothing.
[Mi 3 Android Development] oL00No:
Stop saying "Bro".
[Mi 3 Android Development] Shahan_mik3:
[MENTION=5579787]vasishath[/MENTION]
[Mi 3 Android Development] DGEEEK:
What happened bro what should i call him u tell then we are from india we use "bhai" word alot that means "bro" shahan can understand that.
[Mi 3 Android Development] vasishath:
Ohk let me know which model of display and touch u r using
[Mi 3 Android Development] Shahan_mik3:
Lol....tell him how to chk first xD
[Mi 3 Android Development] vasishath:
Lol he bought it.. He must be knowing what brand is it
[Mi 3 Android Development] dim4k:
Sir, your test build 26/05 flashed - ok, but can you check display battery drain , auto brightness - off, ambient display - off, manual brightness settings minimal, for daily - drain aprox. 16-20% (406 mAh) - time on 3h . Thank you

P.S. on latest NOS build was optimazed prefectly
[Mi 3 Android Development] fanatcom:
[MENTION=5162591]Shahan_mik3[/MENTION], [MENTION=5579787]vasishath[/MENTION], guys, come back to NOS! It's great ROM!
[Mi 3 Android Development] ImmovableObject:
There are good reasons why the developers chose to concentrate with working on Resurrection Remix. And, based on their many previous good works, I'm sure that you would agree that they have proven to be smart (perhaps even geniuses). It's generally best to trust their good judgement and support their hardwork. :)

Anyway, they've just begun working on an unofficial RR ROM based on CAF a few days ago. It is a tough challenge. It's not something that you and I can do. Let's give them a break, support and help give feedbacks on the test builds, so that they can make it better. :good:
[Mi 3 Android Development] Shahan_mik3:
New test build:

*thermals still wip need to chk that

*finally 2% battery drop on reboot fix by [MENTION=5579787]vasishath[/MENTION] (needs to be tested)

*simple ondemand fix

*simple gpu algorithm

*27mhz gpu freq
[Mi 3 Android Development] Shahan_mik3:
Thnx. The reason y I chose RR is so that we can focus on improving device specific stuff rather than wasting time on maintaining a complete ROM.
[Mi 3 Android Development] reality1234:
Sir I will be flashing the new build after sometime but charging problem happened second time. Hope this build doesnt have this problem.

See ss second cycle. Charged for 6hr and battery from 4-2%.
[Mi 3 Android Development] Shahan_mik3:
From what build is it happening and on what build r u on.
[Mi 3 Android Development] reality1234:
It is happening from 23rd may test build and now I just installed today's test build,will check again and see :)
[Mi 3 Android Development] DGEEEK:
[MENTION=5579787]vasishath[/MENTION] shahmik3 said right i dont know which brand of diplay i had and tell me how to check.

I purchased it from local market...
[Mi 3 Android Development] Shahan_mik3:
Chk next build it should be fixed
[Mi 3 Android Development] DGEEEK:
Thanks alot.

Surely waiting for next build.

Again thank u...
[Mi 3 Android Development] Shahan_mik3:
There will be one final test build soon with thermal completely being fixed. After that will be pushing release build. Hoping to get feedbacks faster to fine tune thermal. Requires extensive testing.

Test Thermal

2 modes added one is balanced and other is performance (in settings/battery option)

Replaced local display issue

Edit: new build is up
[Mi 3 Android Development] fanatcom:
last test build: the sound from the speaker is very quiet :(
[Mi 3 Android Development] oL00No:
Oh my! Thermals have improved a lot. Maybe not all the way to what I wanted, but I do think you struck a good balance. I'm seeing 1500mhz up near 60C, so now our phone won't be slower at gaming than a 2nd generation moto g ☺️

Thanks a lot, man.
[Mi 3 Android Development] kanarex1:
Hm... Where is latest version?
[Mi 3 Android Development] vasishath:
[MENTION=5162591]Shahan_mik3[/MENTION] :laugh::laugh::laugh:
[Mi 3 Android Development] Shahan_mik3:
Not possible. No changes have been made to sound in any test builds.

Use performance mode if u don't want throttling...we knew this is going to happen that's y u have 2 modes to choose from. FYI don't report heating in performance mode

Same link
[Mi 3 Android Development] oL00No:
Can't do that. It acted like performance gov. Would never turn that on in a million years years. Safe thermals is all I want :)
[Mi 3 Android Development] fanatcom:
Just the first time on RR I turned on the music through the speakers and heard it. Push notifications work badly, for example in telegram
[Mi 3 Android Development] Shahan_mik3:
That is also safe. It shuts down when it reaches the temp we assigned.

There wont be throttling. Its better than miui performance mode at least as that pushes all cores to max and change to performance gov.
[Mi 3 Android Development] ImmovableObject:
thermal engine is missing in 27May test build.
[Mi 3 Android Development] DGEEEK:
Thanks alot now touch digitizer is working properly with ur build..

Kudos to u
[Mi 3 Android Development] oL00No:
It just shuts down? I think I might have to look at source. Seems like a weird thing to include as an option.

Anyway, I still really like what you did with normal thermals. Think it'll suit most users.
[Mi 3 Android Development] ImmovableObject:
PC and laptops can also be set to shutdown at around 70 to 90 degrees celsius. It's a logical and reasonable way to prevent a meltdown. But most PC (not all), do give audible sound alerts when it's nearing the thermal shutdown temp... so that you can still save your work & perform a normal shutdown before it's too late. Unfortunately, we don't get that sort of luxury with smartphones. lol

For cancro, i think the shutdown temp is quite high... around 110 and 115 degrees celsius? if yes, then that's above the boiling point for water. :D I think at that point, it's already too hot to handle (and may cause collateral damage to components near the CPU cores, those that can't tolerate that much heat dissipations?)
[Mi 3 Android Development] Shahan_mik3:
That value is set by qcom in stock thermal and thats how qcom designed it for stock thermal. In miui they added throttling coz of ppl complaining abt heat.
[Mi 3 Android Development] ImmovableObject:
The performance mode that [MENTION=5162591]Shahan_mik3[/MENTION] was mentioning is very different from the performance governor (or the performance mode of Miui).

From what I've observed, the performance mode just seems to turn off most of the Thermal Engine CPU throttling functions. it doesn't force the CPU hotplug to enable all 4 cores to stay at 2265MHz. And, it still uses the Interactive governor to manage the CPU frequency steppings. So, unlike Miui performance mode, the CPU hotplugs and CPU governor are still free to perform their jobs, while most of the thermal engine's CPU & battery thermal throttling functions are turned off. You won't be locked down to dual core 1190MHz, even when the battery temp goes higher than 39 degrees celsius. The thermal engine will only kick in when the CPU temp goes above 110 degrees celsius... and shutdowns the phone immediately to prevent casualties.

The performance mode is a good option when you want to bypass the thermal throttling down the CPU performance, like when you're playing an action-RPG or real-time online game.

However, I observed that turning back to Balanced mode doesn't always work to reset the thermal engine to the default throttling parameters. I had to restart the phone after switching back to Balanced Mode.
[Mi 3 Android Development] Shahan_mik3:
Nice u got it right. :)... This logic made us more sense then the performance mode in MIUI.

Also FYI we are not using the temp shown in apps. This specific thermal uses another sensor which gives accurate value. The actual temp is 10 degree lower then the temp which is displayed by the apps.

Anyways waiting for ur feedback on thermal. If good we should see a release soon :p
[Mi 3 Android Development] ImmovableObject:
the 27May build seems to be missing the Thermal engine. Doesn't show up in KA and logcat.
[Mi 3 Android Development] teodos:
I am not sure how to properly check thermals, but i saw a new app with 27 mat build which is suppose is for giving you what you need in order to see if thermals are good so here is a log. One thing I can see right away is when watcgunyoutube videos with your last build from 23 of may my phone always feels hot, now with latest test build from 27 of may no such problem. I am still testing the battery because so far this was my biggest issue I could barely get 4 hours of screen on time wile per usual I get around 5 and more. Will see how latest test build performs and will share....
[Mi 3 Android Development] Shahan_mik3:
Its present..it won't show up in ka or show options like before.

Just chk if everything is fine in normal use
[Mi 3 Android Development] Shahan_mik3:
Just use normally and see I'd device heats
[Mi 3 Android Development] oL00No:
All due respect:

The temp you assigned is the last line of defence in both pcs and phones. It does not keep the cpu safe. It keeps the user safe. The performance mode is useless, unless for testing. I don't care about benchmarks, but apparently some do.

Why not make the performance mode exactly like balanced, but just with ceilings +8C for cpu and +3C for battery?
[Mi 3 Android Development] Shahan_mik3:
Doesn't make sense. Its better off using balanced itself for ur usage. During gameplay few ppl want the best output they can use performance.

If it isn't safe qcom would have set it lower and OEMS would have also lowered it. As of now the one we are using is pretty good.

Forget abt how it works or what value is set and see if its is working fine. Eg heating and lagging
[Mi 3 Android Development] vasishath:
Sir certainly qcom knows better than me or you. Qcom sets the shutdown temperature to 115 degrees.

Do not compare it to PC processors. Those are CISC processors which have to handle a lot more burdern than ur phone processor. ARM processors can withstand more heat as compared to intel's x86 processors.

So better not tinker with it. Leave it as it is.
[Mi 3 Android Development] ImmovableObject:
On Thermals:

ok. i tested it up to 70 degrees Celsius.

unlike previous test builds, there is no more shutting off of core 2 and core 3. The new build utilizes all four cores up to 70 degrees, regardless of battery temp. So the performance is great even when at very high CPU temp, no noticeable lags. We love living on the edge. :good:

In my opinion, this new scheme is better in terms of performance. The thermal throttling helps prevent reaching 80 degrees fairly quickly.

Here's my Rough observations...

(I won't attached the screenshots to save your bandwidths)

at 62 Celsius, limit 1.73Ghz, four cores

at 65 Celsius, limit 1.50Ghz, four cores

at 68 Celsius, limit 1.19Ghz, four cores

battery at 40 to 45 celsius, during the entire tests.

On GPU:

simple_ondemand is working. simple GPU algorithm by faux123 also works.

the newly added minimum of 27MHz is also being used by simple_ondemand and powersave GPU governors.

Battery:

Battery level didn't drop by 2% after restarting. it dropped to 1%. see screenshot. But this is probably just random bad luck. :p Battery hiccups is observed on all other ROMs that i've tried. Not really an issue with this ROM alone.

As for battery life, it depends on your usage patterns, cpu & gpu governors, screen brightness, wakelocks, etc. Too many factors. I can't comment on that. So don't ask. :p
[Mi 3 Android Development] Shahan_mik3:
Thanks...we have minimized the battery drop as much as possible after reboot. The 1% is not due to ur bad luck its due to Mi stock battery they use some hack which shows wrong value. If someone has replaced their battery they won't have that 1% drop also.
[Mi 3 Android Development] oL00No:
I'm sorry for you not thinking it makes sense. You have a conservative scheme and an extreme scheme. I spoke for a balanced one.

Also at [MENTION=411716]vas[/MENTION]: throttling is put in place by the engineers for sustainability and lifetime assurance. Emergency shutdown serves none of these purposes. I think you know this. But I appreciate your input.
[Mi 3 Android Development] Shahan_mik3:
Strange is xda randomly giving ad free to users now? i just logged in using web after long time and noticed it now lol
[Mi 3 Android Development] kanarex1:
I donate it bcs i can't give u a donate, u r in India.
[Mi 3 Android Development] Shahan_mik3:
New build up: (Release)

Fix thermal for good

Add Dirac in sound settings

Add support for musicfx and viperfx in dirac

Add 2 modes in battery settings.

balanced mode: for normal usage and casual gaming

performance mode: for heavy usage as there wont be throttling

Fix battery drop on reboot finally

Fix touch issues for some displays

simple ondemand fix

simple gpu algorithm

27mhz gpu freq

Few kernel changes

Upstream changes from RR

zzzmove cpu governor

Note:

Using arise will cause dirac settings fc. Hence only one can be used at a time. I would still suggest viperfx

Do not use KA app from playstore as it will mess with mpdecision and cores wont sleep (u can use this ka works perfectly fine https://github.com/yoinx/kernel_adiutor/raw/master/download/app/app-release.apk )

prevent accidental wakeup feature is for dt2w and s2w gestures only

OTA is live

Download link:

https://sourceforge.net/projects/resurrection-remix-cancro/files/release/
[Mi 3 Android Development] vasishath:
A note on recent battery changes:

So i was trying to find out root cause of 2 percent battery drain on every reboot and i stumbled on this code:-

if battery_level > 10 then

battery_level = (battery_level + previous_batt_level) / 2 + 1

This code runs whenever android asks for battery levels from the driver.

So, lets say if the driver estimates that battery level fell from 50 to 49 percent, then android receives it as

50 + 49 / 2 = 49.5 (rounded off to 50) + 1 = 51.

And if rebooted, the driver restores previous battery level, 49 (which was faked to 51). Hence the 2 percent drop.

Hence this just gives u a false sense of slowly falling battery level.

Why did xiaomi did this ?

For better reviews, i guess.. So that people are impressed by the slow drop of battery levels.

Side effects of fixing this:-

1. U will see battery levels falling slightly faster, but would be uniform starting from 100 to 0. (Now we know why below 10 percent battery fell so fast).

2. Battery level used to jump to 10 percent straight from 13 percent. That would also be fixed.

Its really a shame that companies use such tricks to fool people about their device performance.
[Mi 3 Android Development] stevenanggelo:
Well that's true

But a lot of company use such dirty trick imo, and some of them do a lot worse than this.

For example samsung used to hired some people to say bad things about htc and those things were exposed.

Im not defending xioami in this case, just saying a lot of company play dirty to achieve they goal