Sensors not working - Xiaomi Redmi 4X Questions & Answers

I have just installed Havoc Os custom rom on my Mi 4x and here I guess sensors are not working properly as I'm not getting fingerprint option under security in settings.
So on googling It, I found that persist img is not fixed.
And I checked my phone's root folder, there is a file named "persist img"...So here at this point what should I do to make my sensors working without loosing widevinel3.

Just flash persist backup your problem should be solved.
If you don't have backup then please search over forum someone has already shared and that might also help.

I myself solved my problem...
Just wiped my phone's internal Storage through TWRP and installed file(Clean Flash) of my custom rom.
And problem solved

TheDeaDKiLLer said:
I myself solved my problem...
Just wiped my phone's internal Storage through TWRP and installed file(Clean Flash) of my custom rom.
And problem solved
Click to expand...
Click to collapse
Well that is good to hear you that your problem solved.
Just in case for future consider keeping backup of persist as havoc os maintainer recommends keeping the backup to avoid such issue{s}

Related

Mi 5 miui 10.0.1.0 - How to recover data after wipe data (?)

Hi all guys,
yesterday i updated my Mi5 to miui 10 but after rebooting to system i got an annoying bluetooth problem so it just didn't work at all.
So i repeated the same procedure (uploaded another .zip via usb, rebooted to TWRP installed the zip) and as a poor dumb i checked wipe data..
And i don't have any recent backup
So i'm trying to get my data back because there they are, i found two softwares that promise to do the job (minitool and Gihosoft) but both get stacked asking me to root my phone (which i remember i already did). Anyway i followed xda guide about magisk and installed from TWRP, so now i have the app installed but the software still stacked.
Can anybody help me please?
I really need to get those data back.
Ps. now the bloody bluetooth works
Pps. i found this topic and i'm now trying the other software.. Still if anyone has better option they will be more than welcome.

Persist.img and battery drain

I had a problem with restoring an android 9 backup over installed android 10 and I had to flash Chinese android 9 in edl mode.
Then I flashed eu fastboot version of miui. At some point I noticed a problem with gyroscope and as a tutorial stated I flashes persist.img and the problem was gone. Then I had a problem with a toast notification saying the data was corrupted and find my phone can't be used. Again I flashed persist.img and the problem is gone.
But my battery is draining fast. I won't put the numbers here but is unreasonable fast. I read that it has to do with persist also.
I've dumped my persist partition and it looks like just a bunch of data and variables for sensors, unencrypted. Nothing about battery.
Moreover, global fastboot rom does not contain persist and even the EU one, which comes with a persist.img, no script tells fastboot to flash it.
Whats the deal with this persist partition and why does it create so much problems?
Also, I did a factory reset then I restore an older backup but my encryption data got messed up so I had to format userdata.
It's not a rogue app, it's not a permission setting. It is something I can't debug.
Anyone experienced any of these?
No one?
editheraven said:
No one?
Click to expand...
Click to collapse
Idk why you wanted to downgrade. MIUI Q works great. I never tried to do it, so it never happened to me

LOS fingerprint dont work

My goodix fingerprint dont work on Los 16. I clean flashed latest los build(lineage-16.0-20200422-nightly-santoni-signed.zip) and pico opengapps. I dont root or anything else... It is the first custom rom I flash on my santoni.
Apart from system, I have backups of all partitions. Can I fix this by restoring any particular partitions?
The simplest solution I could think of is to reflash the rom, change to another version, flash other custom roms or flash stock miui. I haven't tried it because of safetynet, I can pass the safety net with this version of Los. I'm worried I wont pass it if I reflash or change the rom.
Please tell me if you have any ideas on how to fix the fingerprint.
Fixed
Nvm.. I found the fix on another thread https://forum.xda-developers.com/xi...dmi-4-4x-santoni-fingerprint-problem-t4100343
Its weird why the backup persist I downloaded from the internet fixed my problem but my own backup didn't...

Another corrupted Persist partition question thread

Hiya. So, here's the story:
Xiaomi Mi 9T Pro EEA, bought from Amazon, not a shady reseller
I made a Google Backup of my apps, because I decided to try out some Android 11 roms.
After trying them out, I wanted to go back to Android 10, so I clean flashed my rom, GApps and disable force encrypt, the usual stuff. But the Google Backup, that I previously used on all the A11 roms was suddenly gone.
I thought, that wouldn't be a problem, since I still had my Android 10 TWRP Backup that I made, before I started experimenting with A11.
I restored that backup and couldn't unlock my phone. So I deleted /data/system/locksettings.db and finally my phone would unlock.
But: My sensors didn't work anymore. I searched the internet for info and found out, that my persist partition got corrupted.
tl; dr: I restored a TWRP backup and my Persist partition corrupted.
Until yesterday, I didn't even know, what the Persist partition was. I never touched it.
I know how to get my sensors working again. But I guess my Widevine L1 is gone now, isn't it?
Seki_ said:
Hiya. So, here's the story:
Xiaomi Mi 9T Pro EEA, bought from Amazon, not a shady reseller
I made a Google Backup of my apps, because I decided to try out some Android 11 roms.
After trying them out, I wanted to go back to Android 10, so I clean flashed my rom, GApps and disable force encrypt, the usual stuff. But the Google Backup, that I previously used on all the A11 roms was suddenly gone.
I thought, that wouldn't be a problem, since I still had my Android 10 TWRP Backup that I made, before I started experimenting with A11.
I restored that backup and couldn't unlock my phone. So I deleted /data/system/locksettings.db and finally my phone would unlock.
But: My sensors didn't work anymore. I searched the internet for info and found out, that my persist partition got corrupted.
tl; dr: I restored a TWRP backup and my Persist partition corrupted.
Until yesterday, I didn't even know, what the Persist partition was. I never touched it.
I know how to get my sensors working again. But I guess my Widevine L1 is gone now, isn't it?
Click to expand...
Click to collapse
Yes, it's gone. Share what you did to get the sensors working.
mauam said:
Yes, it's gone. Share what you did to get the sensors working.
Click to expand...
Click to collapse
Unfortunate. Oh well.
There's actually multiple ways. You could:
Flash persist from Xiaomi's full fastboot package
Flash persistbak to persist
Flash a working persist image from another Mi 9T Pro
All those things worked for me. In the end, I settled with the persistbak method.
Seki_ said:
Unfortunate. Oh well.
There's actually multiple ways. You could:
Flash persist from Xiaomi's full fastboot package
Flash persistbak to persist
Flash a working persist image from another Mi 9T Pro
All those things worked for me. In the end, I settled with the persistbak method.
Click to expand...
Click to collapse
could you tell me how you flashed and dumped persistbak?
wavychris said:
could you tell me how you flashed and dumped persistbak?
Click to expand...
Click to collapse
It's almost been a year, so I don't fully remember what I did exactly, but there's some tutorials around you can find pretty easily.
The only thing I remember is going into fastboot and dumping and flashing my partitions via command line, I think.
Seki_ said:
It's almost been a year, so I don't fully remember what I did exactly, but there's some tutorials around you can find pretty easily.
The only thing I remember is going into fastboot and dumping and flashing my partitions via command line, I think.
Click to expand...
Click to collapse
ive been searching for a month and im still not sure which tutorial to follow, all i want is to fix my sensors and get widevine l1 back in case it gets void when i flash persist, any help would be phenomenal!
wavychris said:
ive been searching for a month and im still not sure which tutorial to follow, all i want is to fix my sensors and get widevine l1 back in case it gets void when i flash persist, any help would be phenomenal!
Click to expand...
Click to collapse
Well if you didn't make a backup before, L1 is L Gone. I didn't get it back. Following any tutorial should get you your sensors back though.
And remember: The first thing to do when getting a new phone is to backup that persist partition, so you don't need to worry about something like this happening again.
Seki_ said:
Well if you didn't make a backup before, L1 is L Gone. I didn't get it back. Following any tutorial should get you your sensors back though.
And remember: The first thing to do when getting a new phone is to backup that persist partition, so you don't need to worry about something like this happening again.
Click to expand...
Click to collapse
if i remember correctly you can get widevine l1 back via a magisk module or flashing xiaomi.eu rom and you can download the certificate from there, try it out if you dont got nothing to lose, by the way, if i flash persist will the sensors work permanently or do i have to do this again every once in a while?
wavychris said:
if i remember correctly you can get widevine l1 back via a magisk module or flashing xiaomi.eu rom and you can download the certificate from there, try it out if you dont got nothing to lose, by the way, if i flash persist will the sensors work permanently or do i have to do this again every once in a while?
Click to expand...
Click to collapse
Oh, interesting. Definitely gotta try that, thanks. How do you download the certificate in MIUI? Does it happen automatically?
Since I flashed my persistbak, I didn't flash anything else and my sensors are still working, so I guess it sporadically happens... sometimes?
Btw, if you aren't already, you should use OrangeFox recovery instead of TWRP on Xiaomi devices. It usually doesn't kill itself by wiping partitions or flashing roms, especially when coming from MIUI. Also, you can make persist backups with it. For some reason they removed that feature from TWRP.
Seki_ said:
Oh, interesting. Definitely gotta try that, thanks. How do you download the certificate in MIUI? Does it happen automatically?
Since I flashed my persistbak, I didn't flash anything else and my sensors are still working, so I guess it sporadically happens... sometimes?
Btw, if you aren't already, you should use OrangeFox recovery instead of TWRP on Xiaomi devices. It usually doesn't kill itself by wiping partitions or flashing roms, especially when coming from MIUI. Also, you can make persist backups with it. For some reason they removed that feature from TWRP.
Click to expand...
Click to collapse
in case you got it wrong xiaomi.eu is a custom miui based rom, not official, just to clarify that, and to download the certificate you must enroll fingerprint then go to fingerprint payments and youll find widevine l1 there, then click on certificate in widevine l1, pretty easy stuff, also how do i install orangefox?
wavychris said:
in case you got it wrong xiaomi.eu is a custom miui based rom, not official, just to clarify that, and to download the certificate you must enroll fingerprint then go to fingerprint payments and youll find widevine l1 there, then click on certificate in widevine l1, pretty easy stuff, also how do i install orangefox?
Click to expand...
Click to collapse
Oh, I can't read. For some reason, I thought you said xiaomi.eu or stock, that's why I said MIUI. Anyway, thanks for telling me. I never heard of that.
To install OrangeFox, just download the zip, make backups if you want to be extra sure and flash the zip. Here's the thread: https://forum.xda-developers.com/t/recovery-official-orangefox-recovery-project-r11-1.4308019/
The UI is different, so it took me a little while to get used to it, but ultimately, OrangeFox is a smoother experience than TWRP, at least on Xiaomi.
wavychris said:
if i remember correctly you can get widevine l1 back via a magisk module or flashing xiaomi.eu rom and you can download the certificate from there, try it out if you dont got nothing to lose, by the way, if i flash persist will the sensors work permanently or do i have to do this again every once in a while?
Click to expand...
Click to collapse
No, you cannot get L1 through Magisk module - because you need a (paid) certificate for your hardware
To the contrary, there is a Magisk module that disables L1, dropping you to default L3.
Although I never understood who/why needs that
wavychris said:
could you tell me how you flashed and dumped persistbak?
Click to expand...
Click to collapse
See here how to backup and/or dump Persist and restore/flash it back.
Of course, if you didn't backup a working Persist on time, you have nothing to restore:
Extracting stock Boot, Recovery and Persist images
Talking here about how to extract the stock Boot, Recovery and Persist images, needed in case of e.g. bootloop upon flashing Magisk or TWRP, to reflash the stock image(s). Also, boot image is needed for patching from Magisk Manager (and flashing...
forum.xda-developers.com
Seki_ said:
Oh, I can't read. For some reason, I thought you said xiaomi.eu or stock, that's why I said MIUI. Anyway, thanks for telling me. I never heard of that.
To install OrangeFox, just download the zip, make backups if you want to be extra sure and flash the zip. Here's the thread: https://forum.xda-developers.com/t/recovery-official-orangefox-recovery-project-r11-1.4308019/
The UI is different, so it took me a little while to get used to it, but ultimately, OrangeFox is a smoother experience than TWRP, at least on Xiaomi.
Click to expand...
Click to collapse
its alright lol, thanks for your help btw have a nice day/night
zgfg said:
No, you cannot get L1 through Magisk module - because you need a (paid) certificate for your hardware
To the contrary, there is a Magisk module that disables L1, dropping you to default L3.
Although I never understood who/why needs that
Click to expand...
Click to collapse
that sucks man, thanks for the news anyway i might use xiaomi.eu rom to get it back that way at least
zgfg said:
See here how to backup and/or dump Persist and restore/flash it back.
Of course, if you didn't backup a working Persist on time, you have nothing to restore:
Extracting stock Boot, Recovery and Persist images
Talking here about how to extract the stock Boot, Recovery and Persist images, needed in case of e.g. bootloop upon flashing Magisk or TWRP, to reflash the stock image(s). Also, boot image is needed for patching from Magisk Manager (and flashing...
forum.xda-developers.com
Click to expand...
Click to collapse
alright thanks i might try it out tommorow ill update you on the process if you want

Help NO NETWORK !!!

Hi,
I bought an IMEI changed Samsung Galaxy Note 9. Its rooted using Magisk. I accidentally uninstalled magisk and now I'm getting no network.
I'm asking for help and the way to fix it.
Thanks
Emom 99 said:
Hi,
I bought an IMEI changed Samsung Galaxy Note 9. Its rooted using Magisk. I accidentally uninstalled magisk and now I'm getting no network.
I'm asking for help and the way to fix it.
Thanks
Click to expand...
Click to collapse
You're pretty sure uninstalling magisk caused it?
ethical_haquer said:
You're pretty sure uninstalling magisk caused it?
Click to expand...
Click to collapse
Yes . I think they changed imei by rooting the phone.
Emom 99 said:
Yes . I think they changed imei by rooting the phone.
Click to expand...
Click to collapse
Try reinstalling Magisk.
Hi, I lost my IMEI's and tried everything to fix it. Ended up storing the phone and grabbing another note 9.
Someone did post a fix recently so I took out my no Network Note 9 after 6 months and tried it. It worked !
You need TWRP and a backup of your EFS partition (If you did any backup of your phone through TWRP try that) but only restore the partitions below.
" I wiped all partitions (except internal storage and SD card), then restored EFS, ODM, and ODM image partitions only. Did not reboot to TWRP, simply went to TWRP home and restored all the other partitions (vendor, system, etc)."
Hopefully that helps.
If it works maybe thank the original poster here:
[Alexis Rom 3.4_FVh1][22/08/2022][08/2022 Patches][N960F/FD OneUI3.0 Apps Ported]
DISCLAIMER I will be aware of your problems caused by root like tripped knox... When you flash something like this you may know about the risks you are going to find in! DESCRIPTION SM-N96xF/FD supported. Based on Android 10 OneUI 2.5 Note9...
forum.xda-developers.com

Categories

Resources