is there a way to get l1 drm with a custom rom? - Xiaomi Mi 9 Questions & Answers

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

Related

Will I lose widevine l1?

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?

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.

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

Mi 9 Wifi will not turn on - Android 11 only

Hi,
If I install any Android 11 rom including Miui EU weekly latest build or any other ASOP Android 11 rom the Wifi will not turn on.
I tried clean install, format data with no luck. If I go back to Miui EU stable Android 10 Wifi is fine.
Is this a known issue? I couldn't find anything. Is there a patch? Thank you for your feedback.
GIPAQ said:
Hi,
If I install any Android 11 rom including Miui EU weekly latest build or any other ASOP Android 11 rom the Wifi will not turn on.
I tried clean install, format data with no luck. If I go back to Miui EU stable Android 10 Wifi is fine.
Is this a known issue? I couldn't find anything. Is there a patch? Thank you for your feedback.
Click to expand...
Click to collapse
This sounds for me that you must flash persist.img but if you don't have original persist of your phone anymore you'll loose widevine l1
Laptapper said:
This sounds for me that you must flash persist.img but if you don't have original persist of your phone anymore you'll loose widevine l1
Click to expand...
Click to collapse
Thank you for the feedback. I have a backup, can I restore it? If not is it different for each phone or I can get it from someone with Mi 9?
GIPAQ said:
Thank you for the feedback. I have a backup, can I restore it? If not is it different for each phone or I can get it from someone with Mi 9?
Click to expand...
Click to collapse
If you got the origin persist.img you can restore only this and try again the ROM.
If you haven't the origin then widevine l1 seems to be no more possible if you flash another persist. But for the Rom it should work (widevine l3)
Laptapper said:
If you got the origin persist.img you can restore only this and try again the ROM.
If you haven't the origin then widevine l1 seems to be no more possible if you flash another persist. But for the Rom it should work (widevine l3)
Click to expand...
Click to collapse
Thank you. It doesn't seem that I have a backup of persist.img. Do you or anyone by any chance have a flashable persist.img file.
No other way to get back the original file?
Laptapper said:
If you got the origin persist.img you can restore only this and try again the ROM.
If you haven't the origin then widevine l1 seems to be no more possible if you flash another persist. But for the Rom it should work (widevine l3)
Click to expand...
Click to collapse
Thank you. It doesn't seem that I have a backup of persist.img. Do you or anyone by any chance have a flashable persist.img file.
No other way to get back the original file?
GIPAQ said:
Thank you. It doesn't seem that I have a backup of persist.img. Do you or anyone by any chance have a flashable persist.img file.
No other way to get back the original file?
Click to expand...
Click to collapse
If you google persist.img mi9 cepheus you'll get answers for widevine L1. It seems to be that you'll lose L1 for ever if you didn't backup it after delivery....
To get a L3 persist.img download your fastboot flashfile for your region and extract persist.img

I have a persist backup but I still lost L1

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

Categories

Resources