[SOLVED] Fix Sensors not working / Find My Device Corrupted Error - Redmi K20 / Xiaomi Mi 9T Guides, News, & Discussio

Fix for getting back your sensors and Find My Device Error​The Problem that i have faced..​ I have unlocked my bootloader after updating my device to MIUI 11 , and flashed Paranoid Android Quartz Alpha 2 which was then based on android 10
By then my sensors are working fine. After i have flashed Xiaomi EU based on android 10 and due to some reasons i have flashed back to stock using Xiaomi Flash tool. I used to flash roms toooo often whenever i want to have to use some particular feature of that rom (That is what makes each rom unique Right!)
Suddenly on Xiaomi EU, i have noticed my gyroscope not working in PUBG also my compass stopped working , even proximity sensor failed.
Eventually i used to get an error toast showing "Find my device is corrupted your device is unsafe now"
Which i have ignored initially and realized that my persist partition got corrupted..
.
.
.
Then i have googled about my issue , referred a hell lot of threads, and came up with a working solution..
***Solution***​Procedure :
1. Download the latest Fastboot rom of our device from here.
2.Extract the downloaded package and navigate to images folder.
3.There you can find the persist.img file of your device.
4.Copy the file to your internal storage.
5.Reboot your device to TWRP and goto advanced/terminal
6.On the interface, type the following command.
Code:
simg2img /sdcard/persist.img /sdcard/persist_EXT4.img
7.If your code returns error like "Invalid sparse file format at header magic" as in my case then continue with the second line of code
Code:
dd if=/sdcard/persist.img of=/dev/block/bootdevice/by-name/persist
8.Else continue with this code
Code:
dd if=/sdcard/persist_EXT4.img of=/dev/block/bootdevice/by-name/persist
9.Simply reboot to system
10.Problem solved ,Happy Face, Back to josh......
NOTE: You may notice strange behaviour of the popup camera on the first boot. As in my case it automatically opens and closes even without operating it.
with an error message showing "Cannot close front camera" which will be automatically fixed by itself by pressing "Caliberate" button which pops after two to three camera hiccups.

Thanks mate. Worked like a charm.
Here's the link to the persist.img file extracted from the Global Version "davinci_global_images_V11.0.1.0.PFJMIXM_20191028.0000.00_9.0_global_156b6de73d"
https://www.filehosting.org/file/details/836440/persist.img
Cheers.

This will lose widevine L1.

Hey man, is this for Android 10 or 9 ? I am at MIUI 11.

Thanks! This also works in mi 8 se (with the correct persist image).

Does this work on Redmi note 7 pro

It gives me an error writing the last line
"dd if=/sdcard/persist_EXT4.img of=/dev/block/bootdevice/by-name/persist"
throws me this result "No such file"

Excelent,work too in my Mi 9,thank you.

Thanks for the tutorial. I followed this because my gyroscope isn't working properly (it orientates in wrong directions, goes into portrait when holding phone landscape i.e.).
I still have issues with my gyroscope after following your tutorial, do you have another idea what I could do to fix this. My phone is a Mi Mix 3 5G.
Thanks in advance!

Can someone please share their persist.img from their device with working sensors? Someone who has not flashed a new persist.img before please? I flashed the persist from the latest fastboot ROM but all sensor calibration values are 0 and gyro calibration fails. So my gyro is still spinning.

Good work!!!

Thank you it worked fine!!!!

Same,Can help?

Auto-brightness and rotating work again thanks ! But front camera still don't work . Any Ideas ?

Works for me too. Thanks

Works on raphael too!

my proximity sensor and light sensor work a moment and stop again I have to restart the phone so that it works again

i have been searching for this solution for past 17 days as my screen used to rotate only after boot ,but later rotation doesnt seem to work until i found this guide ,it works and works amazing
Thanks for the helpful guide

It's working fine on my Mi Max 1 Helium.
But sometimes the rotate sensor not working again, so i flash it again through TWRP.
Any solution to get permanent fix without flash the whole firmware, please?

L1 Certificate
gazza1888 said:
This will lose widevine L1.
Click to expand...
Click to collapse
Hello, Any way to get it back?

Related

Sensors stopped working - Help!

Hi everyone, I'm facing a severe issue with my Redmi Note 3 (Snapdragon variant).
Few days ago I noticed that the screen wasn't auto-rotating anymore, but I tought it was a temporary problem of my ROM (AICP official, latest nightly), so I passed by.
Yesterday I tried to format the phone from recovery and reinstall the ROM, without luck, the rotation wasn't working.
Then I tried to reset to the fastboot ROM (MIUI 7 6.3.17) through Mi Flash, I booted, and... now EVERY sensor has stopped working. Phone doesn't rotate, in cardboard app it doesn't move, brightness does not adjust automatically, screen doesn't turn off during call when putting the phone on the ear, and the compass is not working.
Also, apps like Lux say the value is -1 everytime, apps to re-calibrate the proximity sensor crash at startup, and I have a Settings force close when I enter security options to set up my fingerprint (only in CM13, from the MIUI7 setup I can register my fingerprint)...
So, I unlocked the bootloader then I tried to install MIUI8 but, IMEI was modified and WiFi wasn't working. I installed CM13 and restored NVRAM and everything (apart from the sensors) was working.
Now I re-flashed again with Mi Flash, and I can't SETUP the phone, because WiFi and cellular data are not working, and the phone is matched with my Mi account, and won't activate without login.
How can I fix all this mess? If needed, I can also take apart the phone.
Please, everyone, this is very urgent!
Thank you all in advance, and sorry if there are errors, as I'm writing this quickly.
HELL YEAH!
Ok, everyone, nevermind.
I FIXED IT!
It was the persist image that was corrupted. My bad I tought Mi Flash would reset everything, even persist. But I wasn't right.
I looked into the "flash_all.bat" script and "flash persist" wasn't there. Thanks Xiaomi for the headache.
2 days of searching on Google and I didn't find this thread, and I don't know how this is possible.
Now I just have to understand why this happened totally random.
Everyone that has this problem, refer to the thread up here, works like a charm!
Bye!
Thanks for sharing your solution. I learned something new.
Guys i have the same problem with my Redmi Note 4 when i rooted it successfully its sesor didn't work but after unrooting it again works well. So is there is any way to root the device without sensor fail???
SayanKar said:
Guys i have the same problem with my Redmi Note 4 when i rooted it successfully its sesor didn't work but after unrooting it again works well. So is there is any way to root the device without sensor fail???
Click to expand...
Click to collapse
Which root solution are you using?
SayanKar said:
Guys i have the same problem with my Redmi Note 4 when i rooted it successfully its sesor didn't work but after unrooting it again works well. So is there is any way to root the device without sensor fail???
Click to expand...
Click to collapse
Have you tried rooting with magisk?
J3is said:
Ok, everyone, nevermind.
I FIXED IT!
It was the persist image that was corrupted. My bad I tought Mi Flash would reset everything, even persist. But I wasn't right.
I looked into the "flash_all.bat" script and "flash persist" wasn't there. Thanks Xiaomi for the headache.
2 days of searching on Google and I didn't find this thread, and I don't know how this is possible.
Now I just have to understand why this happened totally random.
Everyone that has this problem, refer to the thread up here, works like a charm!
Bye!
Click to expand...
Click to collapse
Hi, the thread has been removed. Can you relink it?
Thanks a lot!!
J3is said:
Ok, everyone, nevermind.
I FIXED IT!
It was the persist image that was corrupted. My bad I tought Mi Flash would reset everything, even persist. But I wasn't right.
I looked into the "flash_all.bat" script and "flash persist" wasn't there. Thanks Xiaomi for the headache.
2 days of searching on Google and I didn't find this thread, and I don't know how this is possible.
Now I just have to understand why this happened totally random.
Everyone that has this problem, refer to the thread up here, works like a charm!
Bye!
Click to expand...
Click to collapse
This tip helped me fix my device after an year!!

Proximity sensor problem

I have propblem. I installed the stock android 10 and after that my proximity sensor stoped working. During the call, screen wasnt turn off thus I downgraded. Now I am using stock android 9. It still not working. I dont know if the 10 stoped the prox. Hardware. How I can solve that problem. Should I need to wait for the new update or It can be a hardware problem. I formated many times It did not work. I reset no way. I entered to the hw check it says "not support this sensor". When I searched cominity. For note 8 after oupdate the hw passed the test. What to do?
I found a way but I need persist.img file. How can I find that file for mi a3
mehalaktas said:
I have propblem. I installed the stock android 10 and after that my proximity sensor stoped working. During the call, screen wasnt turn off thus I downgraded. Now I am using stock android 9. It still not working. I dont know if the 10 stoped the prox. Hardware. How I can solve that problem. Should I need to wait for the new update or It can be a hardware problem. I formated many times It did not work. I reset no way. I entered to the hw check it says "not support this sensor". When I searched cominity. For note 8 after oupdate the hw passed the test. What to do?
Click to expand...
Click to collapse
I have the same issue. The value for Proximity sensor in Hardware test (*#*#64663#*#*) is -1.
mehalaktas said:
I found a way but I need persist.img file. How can I find that file for mi a3
Click to expand...
Click to collapse
You can find persist.img inside the stock fastboot rom. The guys at 4pda also posted a download link of the persist.img and also a tutorial on how to flash it using twrp.

OP7TPro (HD1913) Auto-rotate screen upside down.

My phone is OnePlus 7T Pro HD1913 EU version. I have recently had a problem with auto-rotating the screen. I tested on the system versions 10.0.7, 10.0.13, 10.0.14, 11.0.5.1, 11.0.6.1, 11.0.7.1 and I have the auto turning upside down every time. I was flashing in different ways (OTA, fastboot, MSM) nothing helps. Full wipe downgrade versions don't help either. The same is true after installing a custom rom. Only when I install closed beta Hydrogen OS 12, auto-rotation works properly. Can someone advise me something?
same issue, I'm on latest Android 11 build after I downgraded from color os 12.1
I also think that it happened after testing the Chinese 12 system. The strangest thing is that when I reinstalled this closed beta 12, it has no problem with proper screen rotation. I tried to calibrate the sensors in the service menu, unfortunately it did not help.
I am facing the same issue. It doesn't bother me when I am portrait mode. When I go to landscape mode, it just reverse my screen up. I try to find solutions but no one I found nothing. If anyone found something please help me with that.
I am also facing the same issue.
Youtuber Techibee has found a way to fix it. He will be uploading his video soon.
https://youtube.com/c/ashokmor007TechiBee
Hope it fixes soon.
here is the link he uploaded the video hope it may help you also.
i tried myself it fixed the auto rotate issue.
Atharvaisbadhir said:
I am also facing the same issue.
Youtuber Techibee has found a way to fix it. He will be uploading his video soon.
https://youtube.com/c/ashokmor007TechiBee
Click to expand...
Click to collapse
Thank you very much. Before this fix was released, I previously flash persist.img from another phone (I didn't make a copy of the my original persist.img). All sensors are working properly, but the fingerprint is not working. I will probably not fix it anymore without sending it to the service.
kemoti said:
Thank you very much. Before this fix was released, I previously flash persist.img from another phone (I didn't make a copy of the my original persist.img). All sensors are working properly, but the fingerprint is not working. I will probably not fix it anymore without sending it to the service.
Click to expand...
Click to collapse
Yeah flashing someone’s else persist breaks your fingerprint functionality and your widevine certificate.
i think you should send it to service centre.

Question Fingerprint solution

EDIT: IF RESET FACTORY DOESNT WORK FOR U JUST GO TO SERVICE CENTER(I did it after all)
Hello
My device is Global version with miui V13.0.4.0.SKIMIXM
my fingerprint stopped working a week ago, then i contaced the support and they said these solutions:
1-factory reset
2-wipe data
3-download latest package
4-clean fingerprint area
i did all and somethimes just right after booting device my fingerprint showed up and working but after about couple hours back to the problem.
on early time of this problem i had fingerprint setting but couldnt open it (couldnt add fingerprint hint) but after some times it removes from setting too then at last after wiping data and solution above , fingerprint never showed up. so i decided to flash the original rom with fastboot and after i did that my fingerprint comesback and was working but again after couple hours stopped.
the thing is if safe mode it was working. even after rebooting to normal working 2 or 3 times then after that stop working again. in safe mode CIT fingerprint tests passed successfully untill right now after half a day i dont have fingerprints even in safe mod.
so i think of downgrading to miui 12.5.7 just want to be sure is it safe to downgrade because when i wanted to flash miui13 it errored with rollback but i edited script and flash was successful.
script edit is safe for downgrade ?
and maybe is there any othe solution that im not aware of?
13eauty said:
Hello
My device is Global version with miui V13.0.4.0.SKIMIXM
my fingerprint stopped working a week ago, then i contaced the support and they said these solutions:
1-factory reset
2-wipe data
3-download latest package
4-clean fingerprint area
i did all and somethimes just right after booting device my fingerprint showed up and working but after about couple hours back to the problem.
on early time of this problem i had fingerprint setting but couldnt open it (couldnt add fingerprint hint) but after some times it removes from setting too then at last after wiping data and solution above , fingerprint never showed up. so i decided to flash the original rom with fastboot and after i did that my fingerprint comesback and was working but again after couple hours stopped.
the thing is if safe mode it was working. even after rebooting to normal working 2 or 3 times then after that stop working again. in safe mode CIT fingerprint tests passed successfully untill right now after half a day i dont have fingerprints even in safe mod.
so i think of downgrading to miui 12.5.7 just want to be sure is it safe to downgrade because when i wanted to flash miui13 it errored with rollback but i edited script and flash was successful.
script edit is safe for downgrade ?
and maybe is there any othe solution that im not aware of?
Click to expand...
Click to collapse
solution is service center...in theory no anti rollback....just check in script before flash
rayman95 said:
solution is service center...in theory no anti rollback....just check in script before flash
Click to expand...
Click to collapse
thansk for reply so youre saying that in theory there is no problem to downgrade with editing script but in real life God knows right?
Unfortunately I have the same problem on my MI11 Lite 5G.
I would be interested if I install a custom ROM e.g. CorvusOS 3.2-V v12.1 if it works with it
So if anyone has experience with it?
norryhox said:
Unfortunately I have the same problem on my MI11 Lite 5G.
I would be interested if I install a custom ROM e.g. CorvusOS 3.2-V v12.1 if it works with it
So if anyone has experience with it?
Click to expand...
Click to collapse
i tried some custom roms before i send my phone to the service center and none of them worked.today i recieved my phone back and everything is great after replacing fingerprint.

G8342, XperiFix, Camera still not working(missing files?)

Hello.
After installing XperiFix, my camera is still not working. I am uploading the logs below. I noticed that the Magick 17.1 version from XperiFix doesn't work, and when I try to update or upload from a new one, I see a black screen after booting the phone, but when I press and hold power button I see a window to a turn off device and sometimes top bar appears (time, battery, etc.). I tried to install Magisk v25.2.
I also tried to upload the stock camera (https://gitlab.com/xperiance/camera/-/releases) but without the higher version of Magick I can't do it.
I have FW .205, before that I tried .270 but it didn't work, bootloop when starting the phone.
In the morning I will install the update from OTA to .235 and try to upload XperiFix or install the .145 version and see what happens next.
I tried Open Camera and made logs, but they didn't save, but the camera still doesn't work ;/
EDIT: I flashed FW .145 but didn't help.
I flashed Android 9 FW 47.2.A.11.228 to test, but I cant flashed XperiFix, because in TWRP write "read-only partition detected" and I see that I flashed Magisk nothing happens, it's as if it didn't install, I don't know why but I didn't have a problem with it before... In TWRP this options "read-only" is unchecked.
Translated with www.DeepL.com/Translator (free version)
Is it possible to fix this somehow, anyone know anything? I've read a lot of forum posts about it but nothing works, I'll just add that after installing some AOSP(probably Android 11) the front camera works but very poorly and after taking a picture you can see green artifacts on it.
Hey, do you know how to fix camera app on sony xperia xz1 not capturin?
My xperia xz1 is android 8, so I decided to flash an android 9 firmware using newflasher. After flashing the firmware, my camera has a problem that can't capture. Anyone can tell how to fix this issue? Plz help me. Sorry for bad English
Your browser is not able to display this video.
This is what happen on my xperia xz1. Camera is not capturing and not save a picture, recording also object tracking not working. This is happen after flash from android 8 version to android 9. Anybody know to fix this? Please help me. before flash the new android version, i didn't do any backup and my xperia is locked bootader. I'm using newflasher to flash the android 9 firmware.

Categories

Resources