yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] GLokin666:
​

I was able to solve the problem I had with the sensors, the gyroscope sensor and the accelerometer did not work, I discovered that it was because the persist.img partition was damaged, thanks to this method that works for me, With this tutorial you can also repair wifi and bluetooth if in your case it does not work.

I also clarify that this method works if you are ARB3 or ARB4

Attention: You must have the Bootloader unlocked and have Twrp installed

Download the lastest stable fastboot rom and unpack it. Find persist.img from downloaded folder and move it to internal storage.

1) Start the twrp with Vol + and power button

2) Advanced -> Terminal.

3) Execute these lines.

a) simg2img /sdcard/persist.img /sdcard/persist_EXT4.img - Converts de image from sparse to raw.

b) dd if=/sdcard/persist_EXT4.img of=/dev/block/bootdevice/by-name/persist - Flashes the persist block with new persist image.

4) Reboot to system.

Credits - 4pda

I hope it worked for you :D:D
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Desmanto:
Thanks for the tutorial. Someone in kaskus is trying to fix the sensor not working problem. He has UBL and already anti 4, need to be careful. Can't flash the persist.img 9.5.19.0 directly via fastboot (blocked by the ARP), even though has flash the dummy.img already. So he boot into TWRP dan try the dd command to put in the persist.img from fastboot rom immediately to the partition. Result? Bootstuck. Still can access fastboot and still can boot to TWRP. He have tried several method, and probably the mi flash with authorized account is the last resort. Since he only break his persist.img partition, I recommend him to try your method and it works!!! I just know that all img from fastboot rom are sparse img files.

BTW, I need some confirmation. We can flash the TWRP directly from fastboot or install it via TWRP too (updating TWRP by phone). Does it mean that the fastboot binary is capable to flash raw ext4 image and sparse img file? Or it is the TWRP that is capable to flash sparse img file? The dd command only accept raw img, not sparse img. That's why need to convert it first.

By using this method, we can basically dd manually every partition from TWRP, thus bypassing the anti 4 fastboot blocked out command.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] LhanaSR:
This tutorial can also be used to bypass locked mi acc
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] dgrayboy:
When you say the sensors do not work, do you mean that they do not rotate at all? Or do they cause games in fullscreen landscape mode to randomly flip upside down?

I had this bug in both ResurrectionRemix and LineagesOS, the only workaround is to force the device to be in landscape mode by changing the rotation to auto-rotate and back to landscape via the QuickSettings header bar
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] GLokin666:
the gyroscope sensor and the accelerometer did not work, but with this method it has been solved
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] dgrayboy:
So previously, it totally would not rotate at all?

My issue is that the gyroscope and accelerometer works, but in landscape mode games, the screen would incorrectly flip upside down.

Minimizing the game and going to Accelerometer Calibration (https://play.google.com/store/apps/details?id=redpi.apps.accelerometercalibration) shows that the accelerometer is working fine, so not sure what could be causing the random upside down flips in landscape mode..
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] aank:
Does this way can also fixing broke fingerprint sensor? I've faced those problem sometimes when flashing too many custom rom not miui based. Flashing fastboot rom fixed it anyway...
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Akhmadmandala:
can you make it more specific how to convert sparse to raw
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Desmanto:
This is for some users who have all sensors not working at all (get crossed at the sensor box). It is mostly come from the red box, chinese version. You are experiencing another random rotation issue, which happen in several users across multiple version including custom ROM. Some reported that they simply tap the phone and it suddenly flip upside down. I can't reproduce this, so it might be possible with the persist.img too.

simg2img /sdcard/persist.img /sdcard/persist_EXT4.img - Converts de image from sparse to raw.

You type this in TWRP terminal emulator, before dd-ing the image to the persist partition.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Akhmadmandala:
God thanks bro, i forgot to add space.

My phone got stuck but luckly i do solve it with your method.

Thanks man! You're awesome
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] rilstack:
Thanks , it's work for me. :svetius:
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] madorax:
i have flip issue when gaming. all sensor is oke no problem. but currently in custom rom xtended with custom kernel. does this method still worked or do i need to flash back miui rom first?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] ANR2K:
Additionally, this method will also fixed/permanently removes "Unofficial ROM" watermark issue on some CN device/ROM when migrating to Global ROM :)
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] sidamos77:
What WiFi issues can be fixed with this method?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] ShiShTuBaBu:
Like wifi and wifi hotspot can't turning on etc.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] GLokin666:
You can do it in custom rom and miui. :fingers-crossed:
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] abdogsm:
help me plz redmi note 5 pro

Hi please please help me miui note 5 pro some miui 10 beta wifi no longer working I tried with all the ways without you have returned miui 9 stable did not solve the problem I hope you help me please

((((( wifi mac address inconnu))))
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] sauliiin:
OK! Does your phone see the wifi networks around? If so, worry not! That had happened before and was not a hardware problem.

Sometimes, some partitions that are not touched by simply flashing, reflashing or restoring from twrp can get corrupted.

I believe that flashing a full rom from mi tolls on PC can solve it.

Also, this method should also.

In another thread I posted a zip (flash from TWRP) that worked for me in the past.. It simple removes some folders with corrupt files that **** your sensors. After a reboot, they come back to life. Mind to try? Also, a feedback would be appreciated!

Here it goes: https://xdaforums.com/redmi-note-5-pro/how-to/masik-2-4-rom-t3828932/page31
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] samope:
i have a redmi note pro. bootloader LOCKED, and i installed twrp. i tried this methos and i got simg2img not found.. pls help

edit: it worked!! probably bcos my bootloader is locked i cant convert it to raw file with the terminal, so here is what i did

i downloaded the persist.img for my phone and downloaded image kitchen (playstore) and used image kitchen to convert it to raw file.. and rebooted my phone to recovery-terminal then used the code dd if=/sdcard... bla... bla... as listed up... and i rebooted and bam... it worked .. am happy... thanks u are the man
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] raptorddd:
i forgot to mention to you that the file you share its empty.:D if i remeber well it only has META-INF file.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] sauliiin:
Hi my friend! I believe thats how it is supposed to be! Because it just empty some folders that have corrupted files.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] ceyad:
It works for me

Fixing video dan rotation problem

Thanks

---------- Post added at 06:30 PM ---------- Previous post was at 06:20 PM ----------

Do u have persist file to bypass locked MI acc?

Thanks
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] LhanaSR:
Just flash the usual persist.img it will also wipe mi acc stored in persist partition
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] ceyad:
Yes, but relock when connect to Internet

Needs modified persist to unlock without relock
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] LhanaSR:
Weird, it didn't happens to me and i already tried it many times it should work. Are you using latest persist.img?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] ceyad:
sure, i tried persist from latest version and previous version. still relock when connect to internet
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] LhanaSR:
In my case

Clean flash then flash persist.img . first booting connecting internet it didn't relock
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] artyfarty:
Operations done. Bluetooth problem still persist, if i turn airplane mode off i can't use bluetooth. rom MIUI.eu weekly
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] rendra_ns:
Doesn't work in my case, I was wipe data in redmi 5a, trying to bypass mi account .. when I try to set keyboard it's same stuck in account miui.. does anyone to help?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Vuska:
is persist partition also related to soundcard not work in miui ?

because i have old phone Mi5, that suddenly no sound and even if i connect the device to headset or bluetooth speaker.

Thank you
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] alexis_p3300:
worked fine with 5a prime with unlocked bootloader and twrp, what a great quide ,thank you!
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] boat24:
Awesome!!! my Redmi Note 6 Pro return to normal again. Great quide ever.

Thank you :fingers-crossed::fingers-crossed::fingers-crossed::laugh:
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] GonicTEAM:
Works perfect in my Whyred, i fixed the bad working of the Proximity sensor with this.

Thanks bro <3
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] hemanth @123:
Feature request

Doesit replaces thermal sensors
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Leftrand:
Will fastboot flashing work with Unofficial unlocked bootloader ??
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Kiesport:
Use orange fox recovery to flash persist.img it has option to flash persist.img. I did same and mine worked fine in my case my persist partition was currupted (unable to mount persist and every rom struck at bootloop due to currupt persist) . I extracted persist.img from fastboot rom and flashed using orange fox recovery ..worked like charm for me. Other recovery do not have option to flash persist.img
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] soshyan:
Works perfect

use orange fox recovery
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] jor roside:
my sensor works well on stock rom miui10 or in rom pie, but why in rom pie there is always a bug the screen suddenly dies without being touched even though the sensor is working properly, someone knows the solution ... redmi note 5
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] dikada:
great!! thanks bro. i love you :good:
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] paz16kevin:
I have a redmi note 5 with bootloader UNLOCKED, i use twrp.

I tried converts from image from sparse to raw but when executing the command the following error occurs:

Invalid sparse file format at header magic

Failed to read sparse file

pls help :crying:
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] KudoConan:
same things :/

Edit: i used Orange Recovery and flash it. It work without this line code in recovery
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] lucifer:
will i lose widewine L1 after flashing new persist image.?i am on redmi k20
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] lamine1905:
Valid also for redmi note 6 pro

Thank you Sir.

It fixed the gyroscope and accelerometer issues
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] fnldstntn:
Can someone share the persist.img from latest global rom.? My internet is bad at the moment and downloading the comlete rom will be difficult.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] geekgunther:
Try this link: https://t.me/derpbootlegwhyred/152863
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] seebz:
It is possible to repair broken bootloader/fastboot mode by this way ?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] sanket_sy:
Help!!

The first command says "not found" using TWRP.

I have unlocked bootloader on RedmiNote 7 Pro.

Please help why is this so?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] drnightshadow:
https://xdaforums.com/redmi-note-5-pro/how-to/whatsapp-telegram-chat-channels-forward-t3769646

Advertising TG is against XDA rules!!!!!!

Next time I will report you!!!
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] geekgunther:
Could you direct me to the rule that says so? [MENTION=1393901]drnightshadow[/MENTION]
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] drnightshadow:
Did you check link in my previous post??????
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Pingu The Pinguin:
excuse me sir, where can I download your persist file?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] drnightshadow:
Download MIUI fastboot rom and extract it from there... but use same ROM version as you have it on your phone.. don't mix MIUI versions, 9 or 10 or 11 . If you have MIUI 10 don't take 9 or 11. It might work or not (possible problems later) OR YOU CAN BRICK YOUR DEVICE!!!!

WARNING !!! YOU MUST HAVE BOOTLOADER UNLOCKED!!!! YOU MUST HAVE CUSTOM RECOVERY (TWRP, ORANGE FOX, ....)!!!!

If you need more help go to https://xdaforums.com/redmi-note-5-pro/how-to/received-9-5-17-ota-update-t3813192/page1

Good luck.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Pingu The Pinguin:
if I'm in a custom rom?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Pingu The Pinguin:
invalid ?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] drnightshadow:
You are still using MIUI firmware 9, 10, 11 (aka oreo, pie and Q).

---------- Post added at 02:29 PM ---------- Previous post was at 02:28 PM ----------

Try with your PC to convert... how to ---> google it

Good luck.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] fakeyatogod:
Nice info
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Xyleme:
Thanks a lot ! Saved me on my Redmi note 7 !!!!

BTW the step simg2img I got an error (something like persist.img wasn't reconnizing as sparse...), I tried the second step dd... and It worked !
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] nenen21:
hi just wondering what will this process do to the wifi ?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] GLokin666:
can be fixed, try
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] phimotnet:
bạn có thể kem hình ảnh hoặc video ko?

bạn có thể kèm hình ảnh hoặc video ko?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] trimtri:
Does this method solve the problem with sim card no service?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] vrevertcasas:
Works for Mi5s wiht last persist.img.

Thanks
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Elr0ndK:
Hello, I tried the same procedure on a Mi 10 5g, the first command (simg2img) failed reading the headers, so I thought it was already a raw file; I have tried to run the second anyway and it said it was OK.

Then I have rebooted but still, the fingerprint doesn't work at all.

What is the faster even if destructive (I want it to work, even though if I will need to restore it with the stock MIUI) to make it work?

I took the persist.img from this: https://xiaomirom.com/en/download/mi-10-umi-stable-V12.0.6.0.QJBEUXM/#europe-fastboot
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] ashish1989:
Thank you so much for this awesome guide. I have gone to three local shops and all have told me to replace or repair my motherboard as my proximity sensor was not working. But you saved my device, my proximity sensor is working fine now.

I used orangefox recovery as it has an option to flash persist.img option
[Xiaomi Mi Max 2  ROMs, Kernels, Recoveries, & Othe] Goody68:
Deleted... Moved to Themes, Apps and Mods!
[Xiaomi Mi Max 2  ROMs, Kernels, Recoveries, & Othe] tombassi:
Very nice thanks for the thread, but it belongs to themes, apps and modes section not here.
[Fire HD 8 and HD 10 General] richaardvark:
Hi Everyone! ??

Now that it appears we have a new, solid way to disable and effectively block Amazon bloatware/system apps from our Fire tablets (detailed in this awesome HOW TO guide as discovered by Supersonic27543), I thought I'd take a moment to at least give a good starting effort at updating the very useful system app tracking spreadsheet that bakshi originally created a few months ago (I use it all the time/have found it very helpful!).

With FireOS 5.6.2.0 and 'Show Mode' and what have you, there are more and more stock system apps and I just wanted to see if we could collectively share our findings. I ran the simple ADB command that lists system apps/packages on my HD 8 (2017) and them simply appended the new items onto a copy of bakshi's Google sheet, added some color coding, etc. I haven't had a lot of time to fill in a lot of the app details that I've become familiar with myself, but I wanted to at least get something started. So here is an easier to read html presentation view of my updated sheet, and here is a version allows for filtering/column resizing/comments/etc..

Ummm ?, does someone by chance have any interest in taking ownership of this document? Or maybe at least collectively? ?? I do have more details that I've learned through my own trial and error / several factory resets and I'm more than happy to share, but I'm not really an Android OS wizard or pro. Many of the new apps are part of "Show Mode" / are new calling features (which I find weird / frustrating since we don't even get the full "Echo Show" drop-in / calling experience anyway) ... ??

Hopefully this document can be useful for many of us. I'm happy to hear any thoughts and to share ownership of the document with anyone who wants to take a stab.

Thanks all!

[IMG="richaardvark"]https://xdaforums.com/picture.php?albumid=14992&pictureid=57649[/IMG]

richaardvark
[Fire HD 8 and HD 10 General] DallasRedHead:
My Kindle Fire HD 8 is soooo Slow

Hey me again, so I'm looking at your updated spreadsheet for 5.6.2.0 on the bloatware. I'm trying to understand it - i.e what can I remove safely? I assume the apps that you have marked as 'safe' can be removed. What about the ones that have a blank in the column 'Safe to Remove'? I can see why some shouldn't be removed, but why do I care about amazon.glorialist (for example). I have no idea what that even is - that's not saying much... I guess I'm confused at this point on what I can get rid of. I have my fire HD back to ground zero, running 5.6.2.0 but that's it and it's running pretty good speed wise. But I have to get rid of something because once I install google services I'll be right back where I was (dial-up or less response) so then I might as well as stay with the vanilla Fire. Thanks!
[Fire HD 8 and HD 10 General] richaardvark:
You ask very good questions! hah :)

With regard to which exact programs should be disabled, a couple of things come to mind. First - I have to be open and say I, myself am still trying to find just the right balance. Every day when I get free time, I tinker around and enable/disable certain apps. By far, the tablet is in a much more use-able state than it was with all those factory-installed apps running, but there are still minor issues that pop up. As you can see from that post of mine you quoted above with the spreadsheet, I kinda foolishly assumed that there'd be kind of a collective conversation about this among HD 8 owners on here, and while I did get some good information and continue to daily, I realized very quickly that there isn't really a one-size-fits-all answer here. So to answer your question, I'd say what apps you disable largely depend on your goals for how you plan to use the device. Some people want to strip the device of anything Amazon as much as possible with the hope of ending up with as close to a stock "Android" device as possible. Some people want to be able to use Alexa still, some people like their Kindle e-books or whatever. I can definitely help you look at which individual apps to disable but would need to know what features you'd like to keep and what features you want to remove. Are you wanting to install a new launcher, or keep the FireOS launcher? Do you want full Alexa as well as "Show Mode"? All things to consider and totally changes what apps you disable or leave be. So that's the first thing to take into consideration when deciding which apps to disable.

Another thing to be aware of is that if you disassemble certain packages this annoying parental control lock warning begins to pop up (I guess you could say Amazon kinda booby-trapped the device, lol). It's not a big deal, but depending on what you disable, you'll notice an annoying pop-up message. The original author of that de-bloat thread (Supersonic27543) mentions this in his OP. There are fixes for this though.

User Ivorin put together a nice list of apps he chose to disable with clear notes and I found this helpful. I've made a few minor modifications however on my own device, added a few more to disable, kept a couple he chose to disable. See his list here.

Another question I have for you is how are you going about installing Google Services? Is there a certain guide/thread you're following? There are several different posts on here with essentially the same set of instructions, but I do think there are a couple of different suggested steps among these posts, with some methods a little better than others. I only ask this because, you shouldn't really experience any major slow-down in performance after installing Google/the Play Store, at least not like it sounds like you've been experiencing. My device(s) overall are pretty snappy and solid. So we should look at that as well.

Sorry I didn't have a simple, one-size-fits-all answer for you, but if you give me just a few more details I'll have answers for you and you should be able to quickly make it all come together.
[Fire HD 8 and HD 10 General] richaardvark:
This is the thread I've typically followed when installing Google Services/Play store. These four files, in this order. It doesn't matter that they're outdated - as soon as you bring it all online it will update itself to the latest versions.
[Fire HD 8 and HD 10 General] DallasRedHead:
I Get that and I really can't thank you enough for your time on this!!!

BTW, the first site you sent me to on the bloatware: He has instructions on getting com.amazon.unifiedsharefacebook. FYI it was already on my Fire HD after I went and got it off the site. I did see where someone said it used to be there but the developers got rid of it – I guess not since I have 5.6.2….
[Fire HD 8 and HD 10 General] tylerhole:
I've used the method in the thread you linked multiple times on my HD 10 7th gen running 5.6.1.0 and I can say it works perfectly every time and have never had any issues with Google play store/services acting up in any way.
[Fire HD 8 and HD 10 General] DallasRedHead:
Got Google loaded but some issues with internet?
[Fire HD 8 and HD 10 General] azuremoonbeam:
i like some of the amazon apps but prefer the straight android versions from google play can the book music prime vids work if i get rid of the stock versions a replaced with apks? plus dont want alexa at all or any of the new crap amazon pushed with latest update... is it possible to get uptodate without all the crap? cause im still at 5.6.1.0? i know alot of questions....