I have a persist backup but I still lost L1 - Xiaomi Mi 9 Questions & Answers

Hi,
Some days ago I decided to switch from MIUI EU to an AOSP.
When I was on MIUI I was able to enjoy L1 without any problem, after the flash of two AOSP roms I lost L1 and falled back to L3.
The rom I am now (POSP) is L1 compatible but I reinstalled the EU to check if the problem was rom related or else. I even tried to use mi flash.
Sadly it is else... I tried to restore a persist backup that I have from february 2020 and one from march 2021 but I had no success.
I'm sure that the backups have L1 because both were taken when I was L1 certified. In particular the february backup was already used in the past to fix some sensors problem the last year.
I always thought that backupping persist was a way to never loose L1 but it seems that there is something that I miss.
Do you have some tips?
I usually don't use the L1 certification but I'd like to recover it if possible.
Thank you.
P.s. I tried restoring persist via the "install image" option in the twrp and via dd (still in recovery).

Aldideos said:
Hi,
Some days ago I decided to switch from MIUI EU to an AOSP.
When I was on MIUI I was able to enjoy L1 without any problem, after the flash of two AOSP roms I lost L1 and falled back to L3.
The rom I am now (POSP) is L1 compatible but I reinstalled the EU to check if the problem was rom related or else. I even tried to use mi flash.
Sadly it is else... I tried to restore a persist backup that I have from february 2020 and one from march 2021 but I had no success.
I'm sure that the backups have L1 because both were taken when I was L1 certified. In particular the february backup was already used in the past to fix some sensors problem the last year.
I always thought that backupping persist was a way to never loose L1 but it seems that there is something that I miss.
Do you have some tips?
I usually don't use the L1 certification but I'd like to recover it if possible.
Thank you.
P.s. I tried restoring persist via the "install image" option in the twrp and via dd (still in recovery).
Click to expand...
Click to collapse
AFAIK, any flashing to Persist or even restoring Persist makes irreversible changes and you loose your L1 forever - cannot 'restore'
your L1 afterwards anymore

Related

Persist Partition is broken, can not flash new one with flash tool

After flashing a stock Global ROM on my Mi9, gyroscope, ambient light and accelerator stopped working.
Looks like persist partition is bad.
Followed steps to flash the partition using Mi Flash Tool in EDL mode, but I get this "Unauthorized for this operation"
https://imgur.com/dp9iUhX
My computer is bound to my account, but I don't have the rights to perform this operation
Is that something I should request?
Any advice how to pass this or other ways to fix the sensors?
Thanks
More details
https://imgur.com/qSOei4O
Sorry cant insert images
https://forum.xda-developers.com/Mi-9/help/sensors-install-global-stable-t3963626
And more related info that may you read
https://forum.xda-developers.com/Mi-9/help/widevine-l3-stock-rom-t3959063
rocalino said:
https://forum.xda-developers.com/Mi-9/help/sensors-install-global-stable-t3963626
And more related info that may you read
https://forum.xda-developers.com/Mi-9/help/widevine-l3-stock-rom-t3959063
Click to expand...
Click to collapse
Hey buddy! How you're doing?
OP : everything is listed in those two threads, you can flash a Chinese TWRP which allows modifications to the persist partition but it actually breaks the Widevine L1 certification if it matters to you
Thank you so much for the reply
rocalino said:
https://forum.xda-developers.com/Mi-9/help/sensors-install-global-stable-t3963626
And more related info that may you read
https://forum.xda-developers.com/Mi-9/help/widevine-l3-stock-rom-t3959063
Click to expand...
Click to collapse
I am reading the posts now
I hope it will work
_Nexus8_ said:
Hey buddy! How you're doing?
OP : everything is listed in those two threads, you can flash a Chinese TWRP which allows modifications to the persist partition but it actually breaks the Widevine L1 certification if it matters to you
Click to expand...
Click to collapse
Hi,
Apologies for late reply
I am just reading your message now
I thought the app will send me notification
Anyway, I just checked Widevine using DRM info app and found it to be 3 ???!!!
Looks like I have nothing to lose
Flashed using the Chinese TWRP and sensors work now
Thanks a lot
momello said:
Hi,
Apologies for late reply
I am just reading your message now
I thought the app will send me notification
Anyway, I just checked Widevine using DRM info app and found it to be 3 ???!!!
Looks like I have nothing to lose
Click to expand...
Click to collapse
It's okay, take your time!
Well, I think you already flashed a ROM right? If yes it may be the cause of Widevine passing L3
Before flashing the ROM, you were on an EEA ROM right?
I am L3 before doing any thing
What I did to the phone is:
Originally was on EEA
Flashed EU rom
Then global stable
Then sensors busted
I tried many times to flash with Flash Tool but couldn't
Never checked DRM before
It was L3 before TWRP the persist partion
momello said:
I am L3 before doing any thing
What I did to the phone is:
Originally was on EEA
Flashed EU rom
Then global stable
Then sensors busted
I tried many times to flash with Flash Tool but couldn't
Never checked DRM before
It was L3 before TWRP the persist partion
Click to expand...
Click to collapse
I think it was L1 before you flash the EU ROM, EEA versions come with L1 enabled by default
I got L3 because of the persistence. Can L1 with EDL?

K20 Pro Indian Variant Clarifications

1. Do we lose L1 certification after flashing custom roms? Do we recover status back with persist image?
2. Are we able to use all the Indian banking apps? Since GPay is a pain in ass to make it work with root/custom ROMs
Getting back to android modding community after approximately 3 years, though have been following threads.
Any inputs on the above would be really appreciated. Thanks in advance.
No.
Yes
venu44 said:
No.
Yes
Click to expand...
Click to collapse
I mean is the No part for the persist image or the status of L1.
Satzz said:
I mean is the No part for the persist image or the status of L1.
Click to expand...
Click to collapse
For some custom ROMs you need to wipe Persist to get some sensors to work and you loose then L1.
When going back to MIUI you can restore Persist and L1
I wanted to switch from MIUI Global 12.0.1 Stable to the Indian version V12.0.2.0 to have the default call recorder,
through the file raphaelin_in_global_images_V12.0.2.0.QFKINXM_20200710… tgz
after expanding it, using XiaoMiFlash latest version.
But after pressing the Flash key the message “error: Missmatching image and device” appears.
What can I do to install the Indian version?
Thank you for your help.
nigol
Satzz said:
1. Do we lose L1 certification after flashing custom roms? Do we recover status back with persist image?
2. Are we able to use all the Indian banking apps? Since GPay is a pain in ass to make it work with root/custom ROMs
Getting back to android modding community after approximately 3 years, though have been following threads.
Any inputs on the above would be really appreciated. Thanks in advance.
Click to expand...
Click to collapse
I bought a k20 pro (raphealin) like a month ago I think, got it with miui 11, updated to miui 12 12.0.2.0, got bored looked up the EU version, unlocked bootloader, installed orange fox r11 (or whichever version is the latest that just came out I don't remember), took a backup of persist along with everything (cuz I read somewhere that I could lose L1 and having a backup of persist might help so I took backup), flashed the EU rom 12.0.3.0, flashed magisk (didn't plan on flashing it, but then when I was flashing the rom, I thought might as well no downside, voiding the warranty anyway), have been using it for 2 weeks I guess now, its been working great, renamed the magisk manager to something else, used magisk hide on other apps. I didn't loose L1 and can see FHD in Netflix and best in PrimeVideos, High in Disney+, banking apps work fine (iMobile, PayTM, Gpay (Indian version / used to be called tez I think before), BOB apps also (although they aren't working but I think that's BOB's fault as I am not getting OTP, checked on other phones too, not receiving there too, but they are opening no rooted error or anything), Digilocker too (this won't work with just magisk hide, you will need to rename magisk manager and after a reboot it works, I would you rename it anyway cuz there is no downside, cuz otherwise if you wanna use this then you will need to later so), ETMoney, Groww PhonePe, MyCAMS, PAYPAL these all work fine, I don't know any other apps I don't use them). Even though I didn't lose L1 after flashing I have kept the backup in case in future I need it.

is there a way to get l1 drm with a custom rom?

If i want try custom rom, i do not want lost streaming in hd
Xiaomi.eu got L1 DRM on stable and weekly ROMs, just make sure you don't delete the system partition and when you'll revert back to stock you'll keep the L1, I did it on my device and I can tell you that it works
_Nexus8_ said:
Xiaomi.eu got L1 DRM on stable and weekly ROMs, just make sure you don't delete the system partition and when you'll revert back to stock you'll keep the L1, I did it on my device and I can tell you that it works
Click to expand...
Click to collapse
I dont have to wipe system partition in twrp, ok thank you, great tip.
I hope that in the future a way will be found to copy that particular part of the system partition so as to have the l1 drm also on other roms

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

L1 Certificate

Good day.
Today, after switching from OSS Custom ROM to MIUI 12 via fastboot, front camera broke. The camera kept asking for calibration. After flashing persist partition, L1 certification is lost. It's not a huge deal but still. I have original Persist back-up. I found it accidentally. Persist partition that I flashed was not Backup though. Any ideas?
Thank you!
anandadavananda said:
Good day.
Today, after switching from OSS Custom ROM to MIUI 12 via fastboot, front camera broke. The camera kept asking for calibration. After flashing persist partition, L1 certification is lost. It's not a huge deal but still. I have original Persist back-up. I found it accidentally. Persist partition that I flashed was not Backup though. Any ideas?
Thank you!
Click to expand...
Click to collapse
Check the other threads.
Thankfully I never lost L1 and never experimented with flashing Persist, but I remember that some claimed that even by flashing the original Persist you cannot restore L1 anymore
zgfg said:
Check the other threads.
Thankfully I never lost L1 and never experimented with flashing Persist, but I remember that some claimed that even by flashing the original Persist you cannot restore L1 anymore
Click to expand...
Click to collapse
i did that and l1 is lost in my case.

Categories

Resources