yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] _MrAlpha_:
I unluckly discovered that with the may security update, both unlocking and locking the bootloader will result in a complete wipe of all user data.

Is this intended? Will this be the standard for all the next updates? It's really a shame that unlocking ther bootloader is now a relatively pricey and hard thing to do.

Or did I just do something wrong? Lost data... twice in a day :(

What about GCam and root if the bootloader can't be altered without clearing all user data? Does this mean I'll have to dump my data every time I update my system (and so root again)?

Hope someone knows better than me :crying:
[Xiaomi Mi A1 Guides, News, & Discussion] N1ck474:
Yes, from now it's "normal"

On all devices you lose all data for locking/unlocking BL, our Mi A1 was lucky.
[Xiaomi Mi A1 Guides, News, & Discussion] emprazol:
Its upgrading security

Wiping FRP was a piece of cake
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] caghandemir:
​

The Infinity Kernel is a custom kernel for Redmi 4A (rolex) and Redmi 5A (riva).

For Redmi 4A and Redmi 5A, from Team Infinity!

Based on Fabian's device tree, only to be used on ROMs compiled with Fabian's device tree + Treble.

#include "std_disclaimer.h"
/*
* Your warranty is void.
*
* Team Infinity is not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this kernel
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger us me for messing up your device, we will laugh at you.
*/

Steps to flash:

1. Clear Kernel Auditor's data.

2. Wipe "Dalvik Cache" and "Cache".

3. Flash kernel.

4. Reboot.

Configuring the kernel:

Please use "alucard" governor instead of "interactive".

Other than that, we can't give any other advice. We already have our recommendations set as default.

Bugs:

OREO VERSION:

"ondemand" CPU governor is pretty broken but it shouldn't be used anyway. "interactive" is the way to go.

We couldn't find any other, tell us if you do!

Changelog:

Oreo Stable v2: Up the charging current to 2A.
Oreo Stable v2: Supports both Murali and Fabian tree now.
Oreo Stable v2: Initial release for Redmi 5A.

IMPORTANT: Fabian? Murali? Who are those?

There was a time where we had to build two versions for two different device trees.

Do not worry, though. Those days are over.

Downloads:

GET INFINITY KERNEL FROM HERE

Frequently Asked Questions (FAQ):

Q: My kernel is acting weird!

A: Please do a "Dalvik cache + cache" wipe, reinstall Infinity Kernel and clear Kernel Auditor's data. If this didn't solve your problem, reach us on this Telegram group.

Contact Us / I need help!

The best way to contact us is through this Telegram group since we are online most of the time on there. Please try using that group first if you need help or want to ask something.

XDA:DevDB Information

Infinity Kernel, Kernel for the Xiaomi Redmi 5A

Contributors

caghandemir, #Malpa73, SouradeepB, Yousef Algadri, Muralidharan Kumaresan, Myroynaldig, Ryan Andri, Carlos Arriaga, Aryan, MacTavish, Wzedlare

Source Code: https://github.com/TeamInfinity/Infinity_Kernel_FN

Kernel Special Features: Alucard hotplug, exFAT and NTFS Support, Overclock up to 1.61GHz, charging upto 2A.

Version Information

Status: Stable

Current Stable Version: v2

Stable Release Date: 2018-06-02

Created 2018-06-02

Last Updated 2018-06-02
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
My God... At last.. Never thought this would happen.. Thank you so much, bro. You rule!

Oh btw, why no underclocking? Stability issues?

P.S: Wondering what ROM I'm using? I'm on Official AOSPExtended Treble GSI. Flashed Magisk (custom Magisk for Treble devices) and Systemless Xposed with no issues.

Will report back if I find issues or bugs while on InfinityKernel.

View attachment 4516714
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] krisu477:
//del
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
Fresh flash, no kernel setups, default settings; interactive governor + alucard hotplug + cfq as I/O sched with 128kb readahead + max/min cpu at 1651/960 MHz, gpu max/min at stock values + 400Mhz initial gpu speed.

Better battery life for sure, you won't even feel the difference in battery life. Performancewise, if you change the governor to alucard, plus tweak more settings (change I/O sched to zen) you'll get more juice and response, than stock ootb settings which suffers from staggering and slow response.

Batterywise and temperature wise, I feel it's better than stock.

Apps usage? I cant give you any review about battery life more specificly, because I deep sleeped the phone since last night and havent used it for daily use yet.

But honestly I woke up seeing the battery only drop around 2-3 percent, under the influence of mobile data still on.

Playing games with mobile data was a surprise, usually the phone went straight to hot but now it's cooler.

SoT? No Idea. I'll info u later.
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] Ayata Naoi:
and can we use on Nougat Redmi 5A ?

in download page it says nougat 'only' for 4A
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ntrimurthulu:
Can i use this on stock rom and lineage os 14
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
Read the first page carefully, please.

Read the first page carefully, please.

Here's the deal. Why not backup your boot partitions and just try it yourselves? If the 5.5 nougat version doesnt boot (because it says its for 4A) you can always just restore the old kernel.
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] eng4r:
Kernel v5.5 for Rolex working great on Riva running cr droid 3.8 nogut

Only 2 bugs , battery always shows 100%and charging

2- notification led dosent work

Other than that every thing works great .

Could you build us a special version ? + Could we get the GPU overclocked to 800mhz ?

Thanks
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
Underclocking, KCAL + Sound Control. [MENTION=7028871]caghandemir[/MENTION], you rock! :victory::highfive::D
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
Reverted back to v2. v3.1 had issues on performance. Super slow response, staggering here and there, choppy multitasking when switching from one app to another, plus slow gaming performance (which didn't happen on v2). Even unlocking the device from screen off (the moment where the pattern dots shows) suffers stagger.

My settings where:

Governor: alucard (tried interactive with manual settings, worse)

Hotplug: alucard (tried turning it off, worse)

Max CPU freq: 1651 Mhz

Min CPU freq: 200 Mhz (tried returning it to stock min, no changes)

I/O sched: cfq (tried zen, it was worse)

Readahead: 128 kb

zRam: turned off

Entropy read/write: 64/128
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] syndrm:
Here too, there's no changelog either

Down to v2
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] caghandemir:
Notification LED, battery, Wi-Fi: It's literally a 4A exclusive version, it says it right there. Did you even read the site? 5A only has Oreo builds.

GPU to 800MHz: If you want your phone to blow up, why not?

Not only me, I'm just a contributor! The ones that did most of the work were Fabian, SouradeepB and #Kamil. Especially Fabian, his 4A/5A unified tree is awesome! Thanks, by the way! It makes us happy to see users using our kernel!
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] caghandemir:
That is very weird, since the only commits we did to the kernel since v2 were the ones Fabian did. If you encounter any issue, our first recommendation would be to wipe dalvik cache and try a reboot.

By the way ezrawk, thank you for replying to comments when we couldn't! You rock!
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
Yeah, without their (Fabian, Murali, Soura & Kamil) trees, these awesome mods won't exist. Still, you rock for bringing to life a custom kernel for riva. I honestly nearly lost hope upon custom kernels when I compared the progress and development of 4A with 5A (which was heaven and earth). That lost hope got ignited again when I saw the threads of Fabian (Unified Treble Support & Unified LOS 15.1 for 4A-5A) posted in 5A's forum & I started to open 4A threads again (In the past I use to help friends of mine that have 4A and wanted to customize their phones, I was a silent reader in 4A forums, this was before I had a 5A). I'm the one that's totally happy about Infinity Kernel. :victory: :highfive:

I've always stressed upon wiping dalvik cache everytime I flash something crucial (custom kernels, rom updates, etc.), which now wiping dalvik cache has become a habit of mine. To simplify things, yes, I did wipe dalvik cache + cache after flashing v3.1 & before booting up. I've even flashed it two times between two boot ups to see if I did something wrong (2x wipe dalvik cache + cache). It didn't change a thing, the performance issues were still present. Do you need me to make a log or dmesg for it?

About helping the replies, the pleasure is mine, I mean it's a users duty too to reply and help other users. :D

*UPDATE

I'm now using stable v3 which I downloaded from your AFH account, and WOW it's smooth AF. I've been wondering, what's the difference between v3 (yours) & v3.1 (Soura's)? Is it just the absence of KCAL and Sound Control?

Try stable v3 bro! It's super smooth!
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] eng4r:
Yeah , was trying the Rolex version ,yet I'm now on crdroid 4.2 oreo for redmi 5a and running kernel 3.1 , i face some unusual lags and led is still not working lol

I would like to blow my phone up lol ?
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] syndrm:
Try the newest vers. v3.2 bro

Superb!
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
I tried it, booted it up, and was satisfied because the performance didn't drop.... that was until half an hour of usage, the v3.1 performance drop kicked in again. Back to v3. :crying:
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] syndrm:
V3.1 or v3.2?

I instal v3.2, it's just fine for me
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] caghandemir:
crDroid is based on ChalapathiRevanth's tree, not Fabian's. That's why you're facing lags and a LED issue. For now, Redmi 5A users can only use Infinity Kernel on Fabian's tree (Treble included). We may release a version for ChalapathiRevanth's tree in the future, but not now.

Soura, Kamil, me and kacskrz make up the Infinity Team. There are no differences between Soura's builds and my builds. Sometimes he builds, sometimes I do that's all.
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
v3.2 bro, I tried it (with wiping cache) and after half an hour of usage the v3.1 problem kicked in. Maybe I need to go back to v2 first before I go to v3.2.

---------- Post added at 08:32 PM ---------- Previous post was at 07:55 PM ----------

Oh OK if there aren't any differences between you or Soura's build. Yeah I know you guys build from the same tree, It's just that I thought you guys had different preferences when you do commits and compile. Maybe that's why v3.1 had performance issues.

Yeah if it's fine and not a bother, I'd love to see you guys do Chalapathi's tree, because Chalapathi's is purely for 5A. 4A and 5A have different drivers even though they have the same SoC.

oh an extra OOT question, I'm on Magisk and I'm using it for systemless xposed and sound mods, I've got this one sound mod that has never worked on any version of 5A roms, whether it was stock, nougat and oreo. The mod I'm talking about is the AM3D Zirene mod, it always shows a white screen. I haven't tried it on a 4A device, but maybe someone has and you've seen someone rant about it. What I want to ask is, is this white screen caused by incompatibilities inside the kernel or is it audio lib issues? If you don't answer this one it's fine, because it's OOT :D
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] caghandemir:
I usually maintain the Fabian tree since Soura uses a Murali tree ROM. We use the same git repo so there won't be any differences.

Sound mods aren't related to kernels, it's most likely a bug in the device tree but still regardless, have you tried it with the stock kernel?
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
Oh that makes sense, thanks for the info bro.

About sound mods, yeah I guessed that it wasn't kernel related (though there was a time where it was, when it had issues with SELinux). Yeah, it's definitely a rom issue.

Btw I'm on v3.4, thanks for loads of new govs like, elementalX, lionfish, lionheart, impulse, blu_active & etc. Thanks too for the new hotplugs, AiO & AutoSMP hotplug. Oh regarding to AutoSMP, activating it causes my device to freeze, display goes black and force reboots. I'll be staying away from AutoSMP for awhile haha. The Infinity Kernel team kicksa$$ :highfive::victory:

Oh btw forgot one thing, I found out what causes the issue of performance droppage where unlocking the device is slow on v3.1 ++

In AEX it gives the option to activate background tint for lock screens, notif bars, etc. When I deactivated the background tint on lockscreen, the performance issues that I had on v3.1 and above disappeared. Still gaming performance has dropped, I tried CoC on v2 & v3, performance was max, but on v3.1 above it started to stagger. Just wondering if the root of this is the implementation of Adreno Idler or maybe KCAL control?
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
I'm on v3.5, and it's smooth AF (with default settings and a little tweaking here and there). Thank you so much Team Infinity.. You guys are the best. Kudos
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] caghandemir:
No, you're the awesome one! Trying to troubleshoot yourself first, dealing with the thread etc. etc. I actually feel like I've seen an unicorn! It's so refreshing to see an actual good user. Thank you very much.
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] caghandemir:
It's most likely because of Adreno Idler / Simple GPU. We disabled it on default once and people complained about battery usage. So sorry if it's inconvinient.
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] porwalharsh:
can i use it on miui rom?
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
No bro, from what I see and what I believe in, when users dive into XDA, it means them users must be ready to DIY + DWYOR. Android is community driven, it means every user must at least try to learn and DIY b4 asking questions.

It's just I hate the fact that us users are taking for granted all of your developments, which leads to the misconception that we have the right to demand something from you (updates, fixes, in a rude way), being ungrateful in the process and forgetting that you have a life to deal with.

So now I'm the one that's thankful. Thank you Team Infinity. Without your custom kernels, my device wouldn't last a day which is full of my daily activities. With stock kernel I had to charge at least once or twice. With Infinity, I don't need to charge at all, so my charging cycle becomes once a day (which is when I reach home). A budget phone that could last a day, crazy, huh? And the most craziest thing is, you guys made it happen. Thank you so much.

Sorry for getting over dramatic, it's just I really2 felt like I had to drop these words in here. :highfive:

Yeah I guessed so, I tested turning on Simple GPU, then Adreno Idler with interactive as CPU governor and in 2 hours of being idle, I woke up my 5A and suddenly the performance dropped rock bottom to the point where I couldn't open Kernel Adiutor to deactivate them, which ended on me force rebooting my phone (holding power button, which I don't like to do because it has it's risk).

*UPDATE:

I tried using interactive + alucard HP, tweaked the target loads changing priorities to 200 (80), 400 (90), 800 (85) and 960 (75) Mhz, changed the highspeed_freq to 533 Mhz. All of this was with stock Alucard HP settings, stock I/O sched (cfq) & with stock entropy (64 read 896 write). Adreno Idler was deactivated, the same with Simple GPU. At first it was fine, staggering a lil because of lowed target loads which was intentional, then I let my device sleep, woke it after an hour of deep sleep and boom, performance drop occured.

Maybe interactive does not bode well with Alucard HP (CMIIW). Because alucard isn't interactive based, but ondemand based (which logically doesn't matter but right now ever single thing, big or small matters, lol).

I tried AIO HP, after activating, I rebooted and after booting up I went straight to KA and was shocked to see that MAX CPU freq couldn't past 1497 Mhz, setting it to 1651 always ended up on it returning to 1497. Is this normal?

---------- Post added at 09:19 PM ---------- Previous post was at 09:17 PM ----------

No. At least read the first page or the Infinity Kernel website b4 asking. It's all there for you to read, you just need to fight the laziness on reading.
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] lemmoned:
WoohoooO great kernel!

3.5 fits perfectly 33bca lineageos build.

Many thanks ! It's a beautiful gift.
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] Gowtham55:
How to figure out which ROM is treble ROM??
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
If you flashed a ROM that's UNIFIED for 4A and 5A, it defintely means it's a (semi) Treble ROM. You can use Infinity Kernel on it.

A pure Treble ROM is where you've flashed a GSI (Generic System Image) or GSI zip that you've downloaded in the Treble dev section threads.

For 5A, to be able to use pure treble (not semi treble), you must flash the UNIFIED vendor partition created by 33bca in this thread.
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] eng4r:
v3.5 causes device to freeze and reboot if choosed auto smp hot plugging method

yeah i did wipe cache and dalvick and deleted kernel auditor data
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] Gowtham55:
Thanks for the Info Man:good:
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
Yes it hasn't been fixed yet, autosmp is still broken since v3.2. Let's just wait patiently for the fix.

---------- Post added at 10:56 AM ---------- Previous post was at 10:55 AM ----------

Yeah man, np don't mention it :good::good:
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] lemmoned:
Great work, great update! 3.7 rocks.

WooohooooO!
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
Testing v5. v3.7 was a blast, fingers crossed for v5.

*UPDATE

Superb! maple I/O ftw!! Thank you caghandemir, Soura, and the Infinity Team! Special shout out to v5's MVP Anirudh. Super smooth, super stable. The rescales of the clocks are perfect. You guys totally did the maths right. Teamed up maple I/O with customized impulse governor just made my day! So weird that the palm of my hands and fingers aren't adding extra heat to my device, usually they go warm, this is the first time it's stayed cool AF. Thank you and thank you!!

*extra

I know asking for features feels somehow ungrateful, you don't have to add it, but please do consider on giving us some wake gestures. I really am a fan of S2W. It's not necessary though. Having v5 as it is, is just total bliss. :victory: :good:
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] caghandemir:
You know what, I'm a sucker for S2W too even since S3 Boeffla days. I'll look into adding wake gestures sometime.
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] caghandemir:
AutoSMP isn't for usage, please update to v5 and use MSM_hotplug.
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
Yes please, rooting for the progress, but don't stress it bro. Oh btw I use to be a Redmi 2 user. I know Redmi 2 and 5A have different SoC's, but maybe you could find something from it. There's a custom kernel named Zetsubou that maybe you would be interested in. :)
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] FrankDJI:
sorry but after the installation and wiping dalvik and cache for some reason i cant enable wifi please fix it as soon as possible
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
What are you using? Nougat? If you're on Nougat then don't use Infinity. Nougat Infinity is for 4A and even in 4A it still has bugs. I'm on Oreo Unified and I have no problems with WiFi. Please do read the site thoroughly.
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] FrankDJI:
ok thanks i am on nougat and waiting for miui 10.I'm not planning to update to oreo even though i tried 2 roms Dot os and pixel experience, I was not satisfied. Thanks again
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
Then try using Liquid Remix, guaranteed satisfaction.. but if you're adamant on waiting for MIUI 10, then go for it. Good luck. :)
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] FrankDJI:
Thanks :)
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] Azocke5531:
Interesting....

Even I'm still beginner in kernel customizing, I'm going to try this....

Thanks for sharing this devs :D
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] godmode_newbie:
Can I use it for non-treble rom ?
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] Ryuna:
Can i use it for miui rom?
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] syndrm:
Is it abandoned?
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] fuchini:
Hi, is it possible to enable xhci with this kernel. Thanks
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
Nope, it can't. Only UNIFIED ROMs are compatible.

Nope, Infinity's 5A build is only for UNIFIED OREO (Fabian tree). If you want a Nougat custom kernel, you're better off using Catalyst Kernel. Search it out. Find build v2. It's on sourceforge.

Yoi, bro. It's abandoned as per the Telegram Group announcement.

Sorry bro, the project's abandoned. Just keep your hopes up that someone will continue this project. Infinity will be missed. Direwolf is semi abandoned too, because LordShenron the dev and maintainer changed his device, but it's still worth a shot.
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] syndrm:
[MENTION=7230403]ezrawk[/MENTION] ya, now redmi 5A is abandoned, cz other higher, newest devices is came out.. this is industries of smartphone ya? hehehe
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] Ryuna:
Why my cpu just stuck on 1.2ghz cant change to 1.4ghz? Plz help
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] ezrawk:
Are you using a kernel manager app? If you are I suggest you to delete the data of it first, then reboot to TWRP. Wipe Cache and dalvik then after get go to settings and do a 'Fix Permission' in TWRP.

I hope that helps.
[Xiaomi Redmi 5A ROMs, Kernels, Recoveries, & Other] Ryuna:
Thanks already change to 1.4ghz
[Xiaomi Mi Pad Questions & Answers] PDPorori:
device manager > apx

searching...

i realized to install ndivia driver in miflash folder

install...

but

nvidia boot recovery dirver shot time appear

and disappear...

So I can't flashing the ROM.

I can't find a solution. help
[Xiaomi Mi Pad Questions & Answers] ch907941189:
You can use apx to nvflash,this mode needn't battery charging,just need dataline connect pad and flash.
[Xiaomi Mi Pad Questions & Answers] Varna Reddy:
Hello Team,

Even my MIpad is dead - I tried to root and now it is not turning on - Tried long press with buttons .

Please help
[Xiaomi Mi Pad Questions & Answers] harpy.eagle:
There is already a thread with all details to recover hard bricked/ dead mi pad. https://xdaforums.com/mi-pad/how-to/tut-how-to-unbrick-revive-totally-t3417604

---------- Post added at 06:53 PM ---------- Previous post was at 06:50 PM ----------

If device is disappearing from device manager, your shorting connection isnt proper/ stable. Its disconnecting midway. With proper shorting, device will keep showing in device manager. And you can then flash comfortably.