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?
Related
I am planning to flash masik x11. Up till now I have used Indian stable miui. Will I lose widevine l1 if I change? And do I need to format data or just wipe. Masik is based on Chinese beta.
no, yes.
You won't have L1. but you won't lose it. Meaning, if you change back to aosp, eu, stock, you'll get your L1 back.
for miui to miui, you don't have to format data partition or wipe internal.
masik comes inbuilt with a vendor
Sandeeep Kiran said:
You won't have L1. but you won't lose it. Meaning, if you change back to aosp, eu, stock, you'll get your L1 back.
for miui to miui, you don't have to format data partition or wipe internal.
masik comes inbuilt with a vendor
Click to expand...
Click to collapse
You don't get L1 back once you lose it. Unless you did, then give details
gwenmillett said:
You don't get L1 back once you lose it. Unless you did, then give details
Click to expand...
Click to collapse
yeah, you can't get L1 once lost.
but he isn't losing it by flashing masik. Masik just has L3 by default. A patch will work.
Sandeeep Kiran said:
yeah, you can't get L1 once lost.
but he isn't losing it by flashing masik. Masik just has L3 by default. A patch will work.
Click to expand...
Click to collapse
Try and tell me if you can get L1 to work on masik, or if you get it back when you restore twrp backup
gwenmillett said:
Try and tell me if you can get L1 to work on masik, or if you get it back when you restore twrp backup
Click to expand...
Click to collapse
The details regarding this is shown in the guide at https://forum.xda-developers.com/k20-pro/how-to/simple-beginners-guide-to-raphaelin-t4020543
Check post 3. under section: L3 Fix, Getting L1 after getting L3 for Global and Indian Users.
patch was made for a previous version. Patch has not been updated as the dev just wants to take some time off for himself. You are free to check out the guides on compiling the patch on the russian miui wesbites at 4pda.ru
feel free to join the official telegram group.
Me and superuser are both highly active admins. You can check out the note #widevine in the group, as well as meet other masik users to clear any info you require.
L1 only works on Global & EEA stock roms. You will lose L1 only you format persist partition. Other wise L1 is permanent.
If you want to use CN based roms, you have to flash L1 patch.
sceryavuz said:
L1 only works on Global & EEA stock roms. You will lose L1 only you format persist partition. Other wise L1 is permanent.
If you want to use CN based roms, you have to flash L1 patch.
Click to expand...
Click to collapse
L1 also works on indian stock.
EU stable/beta
rev and mix
Sandeeep Kiran said:
L1 also works on indian stock.
EU stable/beta
rev and mix
Click to expand...
Click to collapse
Is there a working L1 patch for latest masik?
sceryavuz said:
L1 only works on Global & EEA stock roms. You will lose L1 only you format persist partition. Other wise L1 is permanent.
If you want to use CN based roms, you have to flash L1 patch.
Click to expand...
Click to collapse
When does persist partition get formatted? I'll be using latest twrp to flash
Sandeeep Kiran said:
You won't have L1. but you won't lose it. Meaning, if you change back to aosp, eu, stock, you'll get your L1 back.
for miui to miui, you don't have to format data partition or wipe internal.
masik comes inbuilt with a vendor
Click to expand...
Click to collapse
If masik comes inbuilt with vendor will flashing it break the sensors and make me lose L1 forever? Do xiaomi.eu and miroom roms come with their own vendors too?
gwenmillett said:
Is there a working L1 patch for latest masik?
Click to expand...
Click to collapse
https://xiaomi.eu/community/threads...-others-widevine-is-l3-now.53778/#post-522763
gwenmillett said:
When does persist partition get formatted? I'll be using latest twrp to flash
Click to expand...
Click to collapse
Just made backup of persist.img before experimenting with others rom. So u can every time back to stock with L1 working.
Dadovvv said:
Just made backup of persist.img before experimenting with others rom. So u can every time back to stock with L1 working.
Click to expand...
Click to collapse
my twrp doesn't have the option to backup persist, which one are u using?
gwenmillett said:
my twrp doesn't have the option to backup persist, which one are u using?
Click to expand...
Click to collapse
Persist can be disk-dumped to image file and disk-dumped back to phone, or the disk-dumped image file can be flashed by e.g. OrangeFox (maybe even by Fastboot, not sure)
https://forum.xda-developers.com/mi-9t/how-to/to-extract-stock-boot-recovery-images-t4058447
PS: I did disk-dumping Persost to file and saw that Persist image file can be flashed by OrangeFox but didn't try it - using MIUI, not AOSP, hence I don't needed to wipe Persist and later to restore my L1
gwenmillett said:
my twrp doesn't have the option to backup persist, which one are u using?
Click to expand...
Click to collapse
im using terminal emulator to backup persist.img
in terminal emulator type;
Code:
su
ls -ln /dev/block/by-name/
this is to list all partition names, u need to find persist.img name, in my case is sda23 persist.img and sda24 persistbak.img.
so i create backup of these two ;
Code:
dd if=/dev/block/sda23 of=/sdcard/backup1
dd if=/dev/block/sda24 of=/sdcard/backup2
after that u will find backup1 and backup2 in your internal storage.
Sandeeep Kiran said:
You won't have L1. but you won't lose it. Meaning, if you change back to aosp, eu, stock, you'll get your L1 back.
for miui to miui, you don't have to format data partition or wipe internal.
masik comes inbuilt with a vendor
Click to expand...
Click to collapse
Dadovvv said:
im using terminal emulator to backup persist.img
in terminal emulator type;
Code:
su
ls -ln /dev/block/by-name/
this is to list all partition names, u need to find persist.img name, in my case is sda23 persist.img and sda24 persistbak.img.
so i create backup of these two ;
Code:
dd if=/dev/block/sda23 of=/sdcard/backup1
dd if=/dev/block/sda24 of=/sdcard/backup2
after that u will find backup1 and backup2 in your internal storage.
Click to expand...
Click to collapse
And how do you restore it?
gwenmillett said:
And how do you restore it?
Click to expand...
Click to collapse
same as backup, but reverse path
Code:
su
dd if=/sdcard/backup1 of=/dev/block/sda23
dd if=/sdcard/backup2 of=/dev/block/sda24
Dadovvv said:
same as backup, but reverse path
Code:
su
dd if=/sdcard/backup1 of=/dev/block/sda23
dd if=/sdcard/backup2 of=/dev/block/sda24
Click to expand...
Click to collapse
Have you restored it yourself and confirm that it gives you back l1?
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.
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
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.
Hi all,
Recently flashed the pixel experience ROM on my Mi11 to try it out, alas I didn't like it so decided to switch back.
I fastload'ed the Global Stock ROM from the Xiaomi website which is what my phone had on before, flashed and locked no problem however, the finger print sensor doesn't recognise a finger now and the SafetyNet fails on CTS profile.
Anything I can do to fix this?
Thanks in advance.
Do you edit persist partition accidentally?
dromaczek said:
Do you edit persist partition accidentally?
Click to expand...
Click to collapse
I restored the persist partition from the persistbkp partition....so yes
Theretically persist partition can't be restored correctly in Xiaomi new phones.
But fingerprint should not affect by this ... CTS/DRM yes but I don't knot why fingerprint
Did you do Factory reset or so
dromaczek said:
Theretically persist partition can't be restored correctly in Xiaomi new phones.
But fingerprint should not affect by this ... CTS/DRM yes but I don't knot why fingerprint
Click to expand...
Click to collapse
Hmm OK - is there anyway to undo this and get SafetyNet to pass?
I had passed the command;
dd if=/dev/block/sda22 of=/dev/block/sda21
to restore persistbak to persist
That's pretty funny cause PE passes safetynet.. you maybe stuck with a custom rom now if you really want safetynet!
That's pretty funny cause PE passes safetynet.. you maybe stuck with a custom rom now if you really want safetynet!
That's quite annoying, I wanted to get it back to stock to sell on. Without SafetyNet you can't download Netflix, use Google pay (Wallet)
use xiaomi eu rom
songforwhoever said:
Hi all,
Recently flashed the pixel experience ROM on my Mi11 to try it out, alas I didn't like it so decided to switch back.
I fastload'ed the Global Stock ROM from the Xiaomi website which is what my phone had on before, flashed and locked no problem however, the finger print sensor doesn't recognise a finger now and the SafetyNet fails on CTS profile.
Anything I can do to fix this?
Thanks in advance.
Click to expand...
Click to collapse
Excuse me but i don't see why you returned to MIUI...