yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] lifesaver38:
Which trCamera version did you used ? trCamera_beta_7 or tigr1234566_BSG_namok_al_ro_5.0.22 ? These versions seems to be specialized for whyred...

Personaly, I use MGC_8.1.101_A9_GV1zfix. It works well too...
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] RandomNewbie:
From the original link, I used trCamera Spring Release. I then picked the first version with libs.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] lifesaver38:
libs, or libs2 ?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] paolone1:
after following this tread and a week of experiments I use the lib2 ENG version
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] RandomNewbie:
Also a little update on the jdwp error messages in logcat. Sadly no one at LineageOS has been helpful. So I did some own research and trial and error. Luckily I could find this out. Turns out the issue is that the default Android configuration is set to "debuggable". And while that may be helpful for developers, for us users who just flash the system and use it normally it's very unhelpful. Since that error drains the battery! And no one at LineageOS cares about this. Since there are only nightly builds, the devs should be more considerate about this.

The solution: Go with a root file explorer to this location and open this file in a text editor: /system/build.prop

Add the following line at the top: ro.debuggable=0

Alternatively, use SmartPack kernel manager from F-Droid and set the line that way.

Save, restart, and now it is no longer needed to have USB debugging enabled to avoid the error.

And previously Magisk was accused for this. Unbelievable.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] emme1:
In the last update 20220228 the mirror screen is fixed!

Thanks
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] church_foster:
How to fix frequent Wifi drops? Especially after a reboot, it takes a while to connect.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] RandomNewbie:
There can be many reasons for this, and whenever I look through ROMs on XDA I honestly get anxious about the quality of the ROM when people mention this. But thankfully in my experience, WiFi is normal as it should be with this ROM.

However, it can depend much on how you switched to this ROM. In my experience, it is actually the best to flash the newest firmware with a computer through Fastboot with a fastboot ROM. Because the firmware packages that you can install through TWRP actually leave out some other files, which the fastboot MIUI ROM would install. I did notice this when I installed a firmware package, but there was no logo for fastboot mode! And after clean-flashing the MIUI ROM in fastboot, I had then the new Mi boot screen too.

So I can only advice, if you used custom ROMs quite early on with your phone, you may want to clean-flash with the current MIUI ROM. The fastboot ROM "V12.0.2.0.PEIMIXM" should help you there. Basically how it works: You download the fastboot ROM on a computer. Make a backup of your phone data outside your phone. Unpack the ROM on your computer somewhere. Install Minimal Adb and Fastboot. Restart your phone in fastboot mode. Connect it to your PC. Doubleclick the "flash_all.bat" file to start the flashing process. If "fastboot" can't be found, copy the program files from "Minimal Adb and Fastboot" into the extracted ROM folder where the other bat scripts are.

Sadly this is quite a lot to go through and requires reinstalling the recovery as well and everything. But if you fully want to make sure your device has the correct drivers and is up-to-date, this is the way.

And secret tip from me: Before switching to a custom ROM, make sure to make a backup of the MIUI ROM (mainly the "vendor" partition). It is important to be able to restore this one when going to a different ROM, since this is related to device drivers.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Aurora333:
My phone won't boot properly unless I have it connected to a power source. Sometimes the LineageOS start screen blinks on and off; sometimes I'm able to boot, but the battery indicator doesn't show and the little indicator light blinks on and off. The phone only behaves well when I boot with it attached to a power source.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] StriKe_jk:
When I use the latest version of Magisk with this, should I enable the “Patch vbmeta in boot image” option?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] msssm:
Hi, I'm running 18.1-20220221 and latest Firmware fw_whyred_miui_HMNote5Global_V12.0.2.0.PEIMIXM_e714180088_9.0.zip

Often the wifi connection is not working anymore. Wifi is connected, status icon is ok like working connection, but no data is transferred. Having mobile and wifi connected, I often don't notice that mobile connection is used. After disconnecting mobile connection, the network is blocked. After reboot everything is fine again. Sometimes after a while without rebooting, the wifi works again. What could that be? What do I need to grep for in the logs?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] drnightshadow:
For update firmware use fastboot MIUI ROM with MIUI FLASH TOOL and boot MIUI SYSTEM at least once. That's how is done properly.

Flashing firmware in TWRP is bad idea or more like a joke.

If you done it right than may bee you have corrupted partition(s).
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] msssm:
Are you serious? I never heard that, I thought this is exactly the purpose what the extracted firmware is made for. I don't have a MIUI installed. How do I get the firmware image flashed without that?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] drnightshadow:
Lol ignorance is a bliss. You can't update firmware properly without fastboot MIUI ROM. End of story!! Extracted firmware was working CCA android 9 and early 10, it doesn't do the job on latest version... Read a bit before you write nonsenses..

Now stop crying about errors on your device because of your ignorance.

Do it properly or don't do it at all!!!
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] msssm:
Ok, where do I find a guide how to do that? Do I need to install MIUI once or is it possible to just boot it by 'fastboot boot ...' ?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] RandomNewbie:
Previously I thought the same, maybe someone who knows more can tell the exact details about the "why". But I simply learned the hard way too that these firmware packages do mainly just update the baseband, and that the full Fastboot ROM includes even more updated files. You can follow a guide such as this one to get a better understanding of the process. The easiest may be just to use the MiFlash tool.

Edit: You can still make a backup of your current custom ROM data. If you already used a firmware with ARB4 and you are not on ARB3 (best to google "redmi note 5 arb" if you don't know what this means), you can, after clean-flashing the MIUI ROM, just return to the other custom ROM. However I would advice to do most of the steps manually still. That once you installed MIUI, that you install the recovery again, that you then install the custom ROM zip, then Gapps (if you used them), and then to only restore the "data" partition from your TWRP backup.

Side note: Clean-flashing the MIUI ROM will, on first boot, automatically enable encryption for the internal storage. If you are not interested in that and like to continue unencrypted, you can format the internal storage with TWRP before restoring the "data" partition. Do note though that "data" in TWRP is just for the Android ROM and app data. It does not include media files like photos from the internal storage.

Since Xiaomi appears no longer interested to update Whyred's firmware and all, this would be an one-time thing at least.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] WicMay:
Hi, I'm very satisfied with the ROM. But one question:

When the mobile is shut down and I charge it, it is very very slow. From 1% to ca 80% 4h. Turn it on, it's going faster...

Is there any solution for this?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Aurora333:
Do you mean that you can't use the LOS updater without experiencing problems? You have to flash the MIUI ROM first then flash LOS?

Genuine question.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] drnightshadow:
No! Don't mix update OTA and FIRMWARE update.. LOS OTA aka LOS updater is working perfectly.. We were talking about FIRMWARE update.

In short, relax, you can use LOS updater normally all is working and no you don't need to flash MIUI to upgrade LOS
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] aidea01:
for confirmation please

#1

I have LOS 18.1 (lineage-18.1-20220307-nightly-whyred-signed.zip) and TWRP (twrp-3.6.1_9-0-whyred.img) and i want to keep this setup as much as possible.

Now i have an update notification for LOS via Updater. Will my custom recovery (TWRP) be gone because of the update?

Can I install it again via fastboot? And then when there's update again i will have to do the same process? Wash, Rinse, Repeat?

#2

Can we do the flashing of the latest MIUI Fastboot ROM on Linux? I mean can we do this whole shebang on Linux?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] stephendt0:
I have the exact same issue and have never heard of this either, no need to be condecending or rude. There is nothing about this in the original post.

If I have to flash stock MIUI so be it - but goodness gracious this is pretty bad, first I've heard of extracted firmware not actually flashing "everything" for whatever reason.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] drnightshadow:
#1 You won't lose anything if you update via LOS update, unless something goes wrong( aka lspose/xposed/edposed module need to be off in magisk or you can get bootloop or fastboot loop, easy fix force phone to boot in twrp and manually dissable magisk).

#2 yeah last time when I did it it was working, but i was using fasboot commands manually. Slow process, I didn't wanna done it risky way.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] drnightshadow:
I didn't mean to be rude, but this issues are more common and I just say it that way because it's old news and people still using this old way... There is a thread on XDA forum about firmwares update (don't have link so use search on whyred).

But still don't like when people are bravery using shortcuts and than they cry about it and blaming LOS ROM.

So, again sorry if I been rude, but that's the way I go. If I offended you than I apologized.

P.S. I advised you to make full back up of LOS ROM in twrp, before you gonna update firmware and when you're done just restore backup from twrp.. VIOLA now you have updated firmware and fully working LOS with all your data + apps. That's how I done it CCA 1year ago on LOS 17.1.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] RandomNewbie:
So this is ironic, today when I really needed my phone, I faced full system crashes when turning 4G data off and on. It does happen consistently for me when doing this, and I did previously clean-flash Xiaomi's most recent Fastboot ROM. Anyone has suggestions what to do about this? Can anyone tell what firmware you use where turning 4G data off and on works fine? I'm trying to test if there is a firmware where this doesn't happen.

Edit: I'm facing this with 2G data as well :( What is the best way to take a log of this? In Matlog I'm not seeing anything with this.

Edit2: On a 100% stock install with 0 apps and modifications, the crash does not happen. This will be "fun" to figure out :/

Edit3: It's a super mean stock ROM that only occurs if you actually use the system for a while, I'm writing more details in follow-up posts.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] lefty100:
First of all, i want to thank you for the your prior posts about install latest Xiaomi's firmware via clean-flash of Xiaomi's latest Fastboot Rom.

Before the clean-flash , i hand problems with locate GPS, Wifi connecting time and restart phone when turning 4G (as your current problem) .

I had this problems no matter what firmware version i used.

Since the clean-flash i encountered sometimes only problems with GPS that fixed only by doing manual restart and not via special gps fix apps.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] RandomNewbie:
Thanks for your kind words, I do truly hope this improved anything for you. I did test for hours in the meantime with the mobile data crashing, and I like to provide more details now:

Something is seriously bugged within LineageOS. If you toggled mobile data and restarted your system enough times, the mobile data crash will start. In hopes to find logs about this, I found through Google there is a "dropbox" folder in /data/system. From there I saw the logs, which point to a Window Session Crash. I will attach the log files in hopes that a developer will take a look at this. But the first lines look like this:

Process: system_server
Subject: WindowManager
Build: xiaomi/whyred/whyred:8.1.0/OPM1.171019.011/V9.5.11.0.OEIMIFA:user/release-keys

android.util.Log$TerribleFailure: Window Session Crash

...

Process: system_server
Subject: ActivityManager
Build: xiaomi/whyred/whyred:8.1.0/OPM1.171019.011/V9.5.11.0.OEIMIFA:user/release-keys

android.util.Log$TerribleFailure: Sending non-protected broadcast com.qcom.ims.action.ShowHDIcon from system 2745:com.android.phone/1001 pkg com.android.phone

So far I have not figured out at what point this behavior occurs, it seems that even if you change literally nothing in the settings this will happen eventually. Because I tested so many different settings, restarted, etc. However I could at least find some dirty workarounds, it's insane:

If you are affected by the mobile data crash:

The dirty workaround:

When you disable mobile data, be careful before enabling it again. When you like to enable mobile data, you need to VERY quickly press the mobile data icon two times. Yes this is weird, but intentional to workaround this error. If you did this fast enough and there was no crash, you can now enable data normally and mobile data works fine. However: The crash will still happen on a cell tower change or network mode change (e.g. from 4G to 2G)

The unpleasant but better workaround:

You have to reset the connection configuration of the phone by going into "System", and "Reset Options". From there, choose "Reset Wi-Fi, mobile & Bluetooth". To be on the safe side, restart afterwards. Now this mobile data crash should no longer happen, at least for now.

What would be important to test is, if this error no longer happens until you restart your phone. Or if this happens eventually anyway. Please post feedback here if you notice anything when and how this mobile data crash happens.

Additional information: Magisk and Google apps have no influence on this bug.

In the meantime I'm trying to look into a better workaround, because there must be a way to only reset the things that trigger this in the first place. I'm no developer, just a "superuser", so I need to see if I have success.

Edit: I restored my backup of the main system and the network reset does not help there. This bug genuinely drives one insane.

Edit2: See my response below. I found the source of the bug.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] RandomNewbie:
OK I could finally figure out the source of the mobile data crashes. For this device, the LineageOS firewall is bugged. If you disable the mobile data access for some apps, it can bug out and lead to the system crashes. Therefore do not use LineageOS itself to disable mobile data for apps, use Afwall for this. More details in this bug report. Take a look at the bug report @SebaUbuntu @srfarias Thanks!
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] drnightshadow:
Do you know that afwall is leaking data on boot( you have old modul to aka fix it, but I don't believe it)? Use netguard, better solution.

And thank you for nice find out and for solution, really good job 🤗👍
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] RandomNewbie:
Thanks, also because I was very close to switching over to ArrowOS (Android 11). Because that system is stable and has things like device certification and front cam fix out of the box. But I still wanted to find the cause on LineageOS, since I'm liking the power plans and improved battery saver on LineageOS very much.

Yes Afwall can leak on the first seconds after startup. There are thankfully two ways to combat this though.

One workaround: Disabling WiFi and mobile data before turning off the system is reliable to prevent the data leaking.

The fix: You can go to Afwall's settings in "Experimental", then choose "Startup directory path for script". On this ROM, you will see the options "/data/adb/post-fs-data.d" and "data/adb/service.d". I chose the second option. Then after ticking "Fix startup data leak" and a test on reboot, there was no more data leaks. The best proof was how seconds after boot, Android claimed the WiFi connection has no Internet, because it couldn't ping the Google servers.

It is still much better to use a root firewall than a no-root firewall, because in certain edge cases apps or the system itself could still bypass this. It's unlikely, but the root solution is definitely safer in general.

I do hope though that the LineageOS maintainer for our device will fix the bug, because the LineageOS firewall has one huge benefit: It simulates to the blocked apps that your device is not connected, even when it is. In case with Google apps, that allows you to use the offline speech recognition even when you have Internet. And it also stops apps from making network quests that end up blocked repeatedly.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] aidea01:
Will it matter to flash the latest MIUI Fastboot ROM before i do a reinstallation of LOS 18.1?

I asked because my current system is from MIUI 11.0.3 to LOS 18.1. I haven't seen any big problem so far in my 1 week of using LOS. I also happen to the flash Gapps several hours after booting the system because I never thought that I won't be needing it anymore.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] drnightshadow:
If you don't have problems don't flash new MIUI. If it isn't broken, why fix it?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] limitnelo:
Hello. I'm on pixel expirience 9.0 android. I didn't do this for a long time. Can I just install lineage from twrp like I used to do or do I MUST sideload rom like instructon says. Thx :)
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] drnightshadow:
Follow to instruction... And don't forget you need full wipe before flashing new ROM!
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] drnightshadow:
I guess today build failed. @SebaUbuntu

Edit: actually its all good ...guess some los server problems... Update is available.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] VeDoxe:
Is it not possible to make a programmed switch on and off of the device under LOS? Because on MIUI there was this option in the parameters.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] MGREX:
So in all honesty how stable is it? enough for daily use?

Is there a way thru safetynet to be able to use banking apps?

There is encryption support right?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Renz1er:
1. I been using LOS for 5 months now (Feb to June 2022), shifted from MIUI 10 eu ROM. Its quite stable and good for daily drive. My battery is already at 75% capacity or so, using the extended kernel and getting an average of 3.5 hours SoT (3 hours lowest and 6.5 hours highest got so far).

2. Using Magisk 23 and its says the devices passes through safetynet.

3. Encryption support is there.

Known Bugs:

1. Restarts whenever you try to turn on mobile data.

2. When connected to PC using USB through "file transfer" mode, Windows can't find the mobile storage. Workaround is connecting it in "file transfer" mode from the recovery. (Not sure, might be bug only I faced)

Overall, its a pretty solid and stable ROM for whyred.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] plusminus_:
I cannot say I currently have issues with either mobile data* or using file transfer (maybe because I use Extended Kernel?), but I have had issues with late notifications for SMS messages for as long as I have been using this ROM lol

I switched to QKSMS a few days ago and this is no longer a problem.

Spoiler content hidden.

Otherwise it's been great.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] RandomNewbie:
As I wrote on the previous thread page, this has to do with LineageOS' firewall. Do not disable the mobile data access in the app settings for any app, then you won't run into the issue. Sadly the LineageOS volunteers nor the maintainers don't appear to care here, so this workaround is important to keep in mind. Don't disable mobile data for any app, then this does not happen. As an alternative, using Afwall as a firewall is necessary.

I can't confirm this bug, for sure it does not exist on build 20220214. There may be a different hidden cause that you can figure out after resetting the phone, and testing settings one at a time (changing one setting, restart, repeat). It's how I figured out the mobile data system crash.

But apart from these things, I can definitely vouch for the system. Definitely don't want to change the Android system for 3+ years now after a full month of testing and switching.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] RandomNewbie:
Yes, however there is some quirks to avoid. Read the last few pages of this topic to find out more. Then you can have peace of mind to install this - SafetyNet is a different story though. LineageOS does not actively do anything to bypass it. Other custom ROMs such as ArrowOS are more "out of the box" here.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] church_foster:
Hey dude, nice day. Flashing persist.zip somehow fixed my frequent wifi drops. I had no idea this flashable tool existed.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] filipe_m:
I update for the 25/4 build and it don´t start, it´s always back to recovery.

Any solutions , apart wipe data?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] drnightshadow:
Do you use lsposed or gapps?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] filipe_m:
Gapps, I think. I do not know what lsposed are...
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] dickta:
Is there a way that the vendor will be updated form the latest stable 11.0.5.0 global miui? 'couse the vendor security patches are way too old on LOS. the 'latest' is dated 2020.08.05, not 2018.xx.xx, and the device fingerprint is waay to old on LOS
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] drnightshadow:
Reinstall gapps.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] drnightshadow:
No! Never! Wrong! Read more!
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] johndoe-xda:
Thanks for the hint. Note that it didn't work with latest open gapps release (20220503), instead I just went back to the one I had used before and know worked (20220215).

Now it boots again.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Holgrah:
Holy moly, i almost reinstalled the system because of those unexpected restarts. thanks a lot for this hint. should be somewhere in capital letters
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Stan m:
ars
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] kingofcope:
Now that LOS19 has officialy released, Is there any progress on whyred getting an update?

Thanks for all the hardwork
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] niyas90:
I can't see any progress from the device side on Gerrit.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] church_foster:
It's fine. Let's stay at 18.1 as long as possible. Android 12 have that hideous quick settings tiles.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] tobisto:
What about battery life ? Screen time ? Aospextended 9.0 is too weak battery life to use.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] VeDoxe:
I find the autonomy quite bad