Big problem with persist.img partition, ruined my phone :( - Xiaomi Mi CC9 / Mi 9 Lite Questions & Answers

Hello friends!
I come with a big problem that happened to me a few days ago, I flashed the Android10 rom of Xiaomi.eu but in that process I accidentally lost my persist.img partition and practically ruined my phone:crying: (DON'T FLASH THE WEEKLY OF XIAOMI.EU YET WITHOUT PERSIST BACKUP) the gyroscope and compass of my phone are not working and I lost my Netflix L1 certification, I am having a hard time.
So I think I have a solution to this and is to have made a backup of my persist.img partition (which I did not do and it was my mistake) could someone bring me a TWRP backup of a persist partition of yours? to restore it on my phone and test if that way I can revive my compass, gyroscope and L1 .. it would help me a lot and I would appreciate it very much.
Thanks in advance from El Salvador!

Pablo_AK47 said:
Hello friends!
I come with a big problem that happened to me a few days ago, I flashed the Android10 rom of Xiaomi.eu but in that process I accidentally lost my persist.img partition and practically ruined my phone:crying: (DON'T FLASH THE WEEKLY OF XIAOMI.EU YET WITHOUT PERSIST BACKUP) the gyroscope and compass of my phone are not working and I lost my Netflix L1 certification, I am having a hard time.
So I think I have a solution to this and is to have made a backup of my persist.img partition (which I did not do and it was my mistake) could someone bring me a TWRP backup of a persist partition of yours? to restore it on my phone and test if that way I can revive my compass, gyroscope and L1 .. it would help me a lot and I would appreciate it very much.
Thanks in advance from El Salvador!
Click to expand...
Click to collapse
It is the first time I try to upload something, I hope I have achieved it and also, I hope it serves you

- EU rom is based on the chinese ROM, your device will get L3, not possible currently to get L1 with EU.
- Don't use anyone's persist partition, it can make things worse. Download the fastboot ROM for the Mi 9 lite, extract it and find the persist file and then flash that one.
My suggestion is to wipe everything in TWRP, flash persist file and then flash EU ROM. If you're having problems no choice but to flash fastboot ROM and start fresh.

TWRP-3.3.1-0709-XIAOMI_CC9-CN-wzsx150
This is the recovery that I used for the copy

hi
eeemmmbiz said:
- EU rom is based on the chinese ROM, your device will get L3, not possible currently to get L1 with EU.
- Don't use anyone's persist partition, it can make things worse. Download the fastboot ROM for the Mi 9 lite, extract it and find the persist file and then flash that one.
My suggestion is to wipe everything in TWRP, flash persist file and then flash EU ROM. If you're having problems no choice but to flash fastboot ROM and start fresh.
Click to expand...
Click to collapse
persist.img is not allowed to be flashed by fastboot even if the bootloader is unlocked. there is a specific technique to do that with TWRP. Falshing the whole firmware will not resolve the problem
---------- Post added at 12:09 AM ---------- Previous post was at 12:08 AM ----------
Pablo_AK47 said:
Hello friends!
I come with a big problem that happened to me a few days ago, I flashed the Android10 rom of Xiaomi.eu but in that process I accidentally lost my persist.img partition and practically ruined my phone:crying: (DON'T FLASH THE WEEKLY OF XIAOMI.EU YET WITHOUT PERSIST BACKUP) the gyroscope and compass of my phone are not working and I lost my Netflix L1 certification, I am having a hard time.
So I think I have a solution to this and is to have made a backup of my persist.img partition (which I did not do and it was my mistake) could someone bring me a TWRP backup of a persist partition of yours? to restore it on my phone and test if that way I can revive my compass, gyroscope and L1 .. it would help me a lot and I would appreciate it very much.
Thanks in advance from El Salvador!
Click to expand...
Click to collapse
wich device do you have ? mi 9 lite or mi cc9 ?

ALdelSol said:
It is the first time I try to upload something, I hope I have achieved it and also, I hope it serves you
Click to expand...
Click to collapse
Thank you my friend! really
But.. bad news, it didn't work D: I think I'm fried

ALdelSol said:
TWRP-3.3.1-0709-XIAOMI_CC9-CN-wzsx150
This is the recovery that I used for the copy
Click to expand...
Click to collapse
exactly the same as me bro, I use that one

eeemmmbiz said:
- EU rom is based on the chinese ROM, your device will get L3, not possible currently to get L1 with EU.
- Don't use anyone's persist partition, it can make things worse. Download the fastboot ROM for the Mi 9 lite, extract it and find the persist file and then flash that one.
My suggestion is to wipe everything in TWRP, flash persist file and then flash EU ROM. If you're having problems no choice but to flash fastboot ROM and start fresh.
Click to expand...
Click to collapse
I use xiaomi.eu actually man, but in global firmware after have installed android10 eu rom my device name has changed to CC9 and lost the L1 drm and google play certification..

gringo80 said:
persist.img is not allowed to be flashed by fastboot even if the bootloader is unlocked. there is a specific technique to do that with TWRP. Falshing the whole firmware will not resolve the problem
---------- Post added at 12:09 AM ---------- Previous post was at 12:08 AM ----------
wich device do you have ? mi 9 lite or mi cc9 ?
Click to expand...
Click to collapse
Mi 9 Lite man, but after installed android10 xiaomi.eu weekly rom has changed to CC9 in my google account devices, lost the certification of google play and L1 drm and the compass and gyroscope calibrations

gringo80 said:
persist.img is not allowed to be flashed by fastboot even if the bootloader is unlocked. there is a specific technique to do that with TWRP. Falshing the whole firmware will not resolve the problem
---------- Post added at 12:09 AM ---------- Previous post was at 12:08 AM ----------
wich device do you have ? mi 9 lite or mi cc9 ?
Click to expand...
Click to collapse
That's not what I said, I said he can flash persist.img through twrp, but to get the persist file I suggested he download the fastboot rom, extract it and use the persist.img found inside. I had the same issue and even after flashing the correct persist.img it wasn't working, I had to wipe everything in TWRP, flash persist.img and flash the rom again for it to work correctly.

Thanks for your replies ! I had the same problem and flash persist.img worked

ALdelSol said:
It is the first time I try to upload something, I hope I have achieved it and also, I hope it serves you
Click to expand...
Click to collapse
My friend, I tried with backup but not worked I have another idea: the folder metod ^^ can you with a file explorer copy the /persist folder and share me as you did with backup? I will thank you very much

eeemmmbiz said:
- EU rom is based on the chinese ROM, your device will get L3, not possible currently to get L1 with EU.
- Don't use anyone's persist partition, it can make things worse. Download the fastboot ROM for the Mi 9 lite, extract it and find the persist file and then flash that one.
My suggestion is to wipe everything in TWRP, flash persist file and then flash EU ROM. If you're having problems no choice but to flash fastboot ROM and start fresh.
Click to expand...
Click to collapse
Which TWRP version you used to do that ?
Can you post step by step how to erase "everything" in TWRP and then flash fastboot ROM ?
What do you mean by wipe everything ??
So many people mess with loss of gyroscope etc. and they can't fix it. Online solutions with using terminal commands in TWRP to flash persist.img do not work. Nothing happens.
Cheers !

Related

Data security and phone encryption. Miui custom rom

My new MI8 SE is not my daily use, so I got time to check all available MIUI custom rom (eu,Globe,MiRum,Miuipro,Ros,MS and Masik 1.8.)
At this point no problem, they install very well and they answer my needs.
BUT:
AS EVERYBODY should know that it is very easy to delete the central Password and finger print by the mean of our sophisticated tool (I mean TWRP).
In order to be safe '(without turning back to stock rom) I tried to encrypt the phone WITHOUT success...
Process failed every time with different results (full reset, logo loop for hours, partial encrypt for data only). But was always the point that minimum security can't be reached!
Question:
-Can you well sleep If you mind that you are having all your precious data available in the wind as soon your phone is lost or stolen or even worst let in some bad friends hands...? It takes 1 mn to delete the file without any computer.
I see a partial solution by installing afterward a stock recovery that does allow to trick the system file.
(If somebody has it, I am available to test this option, but don't tell me to flash a stock rom as solution!!)
Your comments/solutions are welcome.
You can have encryption with custom ROM, if the corresponding kernel enabled built-in force encryption.
I'm currently running phh treble 9.0 encrypted, with stock kernel patched by this script:
https://forum.xda-developers.com/an...rceencrypt-t3817389/post77572812#post77572812
NexusRunner said:
You can have encryption with custom ROM, if the corresponding kernel enabled built-in force encryption.
I'm currently running phh treble 9.0 encrypted, with stock kernel patched by this script:
https://forum.xda-developers.com/an...rceencrypt-t3817389/post77572812#post77572812
Click to expand...
Click to collapse
Thanks for taking care of my post.
This is old now.
I've investigated a bit more and found ways to get MIUI custom ROM encrypted. (for now I want to stay with MIUI stuff!)
I know that almost all AOSP like rom may well encrypt from first install.
My aim was and is still to warn people that without encrypt their phone are open like a lost book.
Thanks for the very interesting and documented thread (link) you directed me to.
lolo9393 said:
Thanks for taking care of my post.
This is old now.
I've investigated a bit more and found ways to get MIUI custom ROM encrypted. (for now I want to stay with MIUI stuff!)
I know that almost all AOSP like rom may well encrypt from first install.
My aim was and is still to warn people that without encrypt their phone are open like a lost book.
Thanks for the very interesting and documented thread (link) you directed me to.
Click to expand...
Click to collapse
If you don't mind could you post a detailed guide to flash our Mi 8 Se. I tried once and got mine hard bricked and i'm scared to try again.
Our forum lacks detailed instruction and it's all hit and trial. And since you have had your hands dirty, could you do that?
me_death said:
If you don't mind could you post a detailed guide to flash our Mi 8 Se. I tried once and got mine hard bricked and i'm scared to try again.
Our forum lacks detailed instruction and it's all hit and trial. And since you have had your hands dirty, could you do that?
Click to expand...
Click to collapse
The process do not differ from other XIAOMI phone and is available at main forums.
Exemple:
https://xiaomi.eu/community/threads/9-1-24-26.48919/
or here
http://en.miui.com/search.php?mod=f...hsubmit=yes&kw=how+to+flash+custom+rom&month=
If you have specific issue with flashing process you are allowed to post in order to get support.
lolo9393 said:
The process do not differ from other XIAOMI phone and is available at main forums.
Exemple:
https://xiaomi.eu/community/threads/9-1-24-26.48919/
or here
http://en.miui.com/search.php?mod=f...hsubmit=yes&kw=how+to+flash+custom+rom&month=
If you have specific issue with flashing process you are allowed to post in order to get support.
Click to expand...
Click to collapse
Thanks Could you just point me the recovery you're using? that would be great, like exact recovery. I backed up my rom and then while restoring my device, it got hard bricked. :silly:
me_death said:
Thanks Could you just point me the recovery you're using? that would be great, like exact recovery. I backed up my rom and then while restoring my device, it got hard bricked. :silly:
Click to expand...
Click to collapse
Available MI8 SE are located here:
https://drive.google.com/drive/folders/1IeCtb6vRO4CRe76s0BD_5TQiSnymPBTT
Just take care to flash latest 1227 version after EU rom older than 8.12.20 date.
In my view it's a mistake to backup anything with TWRP because as of today nothing is stable. Better to stay with MIUI backup and computer duplication.
lolo9393 said:
Available MI8 SE are located here:
https://drive.google.com/drive/folders/1IeCtb6vRO4CRe76s0BD_5TQiSnymPBTT
Just take care to flash latest 1227 version after EU rom older than 8.12.20 date.
In my view it's a mistake to backup anything with TWRP because as of today nothing is stable. Better to stay with MIUI backup and computer duplication.
Click to expand...
Click to collapse
Thank you so much for all the help.
lolo9393 said:
Available MI8 SE are located here:
https://drive.google.com/drive/folders/1IeCtb6vRO4CRe76s0BD_5TQiSnymPBTT
Just take care to flash latest 1227 version after EU rom older than 8.12.20 date.
In my view it's a mistake to backup anything with TWRP because as of today nothing is stable. Better to stay with MIUI backup and computer duplication.
Click to expand...
Click to collapse
I tried EU rom again. This time i flashed TWRP 1227, then cleared my data, flashed rom and then flashed TWRP again and still i'm stuck at fastboot. I got my phone up running using MiFlash but i can't seem to run EU rom :crying:
me_death said:
I tried EU rom again. This time i flashed TWRP 1227, then cleared my data, flashed rom and then flashed TWRP again and still i'm stuck at fastboot. I got my phone up running using MiFlash but i can't seem to run EU rom :crying:
Click to expand...
Click to collapse
What EU rom did you install?
This doesn't work with STABLE version. Only DEV EU rom
like latest 9.2.24/25
me_death said:
I tried EU rom again. This time i flashed TWRP 1227, then cleared my data, flashed rom and then flashed TWRP again and still i'm stuck at fastboot. I got my phone up running using MiFlash but i can't seem to run EU rom :crying:
Click to expand...
Click to collapse
9. What EU rom did you install?
This doesn't work with STABLE version. Only DEV EU rom
like latest 9.2.14
lolo9393 said:
What EU rom did you install?
This doesn't work with STABLE version. Only DEV EU rom
like latest 9.2.24/25
Click to expand...
Click to collapse
I tried installing
https://xiaomi.eu/community/threads/9-2-14-15.49206/
Version: WEEKLY 9.2.15
me_death said:
I tried installing
https://xiaomi.eu/community/threads/9-2-14-15.49206/
Version: WEEKLY 9.2.15
Click to expand...
Click to collapse
That's OK!
you flash 9.2.15 with TWRP 1102 or 1217.
YOU DON't REBOOT THE ROM.
you flash twrp 1227 and THEN you reboot the rom and wait install finish, take some time be partient.
simple!
lolo9393 said:
That's OK!
you flash 9.2.15 with TWRP 1102 or 1217.
YOU DON't REBOOT THE ROM.
you flash twrp 1227 and THEN you reboot the rom and wait install finish, take some time be partient.
simple!
Click to expand...
Click to collapse
Finally i got it working following your instructions on the MIUI EU forum. Thanks a bunch. :victory: :highfive:
To others for reference. Following are the procedures that i followed to boot up Miui Eu :silly:
- Flash official 8.12.13 (Dev Fastboot Rom) through MiFlash.
- Flash TWRP 1102
- Clean Data
- Push/ Copy and Flash 8.12.20( EU Rom), it booted up finally without redirecting to Fastboot.
- Update 8.12.20 to latest available from system updater.
- Now there won't be any recovery or we aren't able to enter into available recovery even though the system boots.
- Flash TWRP 1227.

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 11.0.3.0 Global, whiche TWRP and Magisk use ?

Hi everyone, sorry for my bad english.
I have a Redmi K20 Pro (chinese phone from Rakuten sent to France) with 11.0.3.0 Global Rom (QFKINXM) with an UNLOCKED Bootloader.
I would like to install TWRP (for root) and magisk (to hide root).
When I've bought the phone, i had a 9t Pro Rom installed. I've tried to install TWRP and magisk and I soft bricked it...
So... I've reflash an old Global K20 Pro ROM (not 9T Pro) and update it via OTA.
Now I'm in 11.0.3.0 Global with the good phone name (K20 pro).
I would like to know wich version of TWRP and Magisk I must flash.
Maybe one from this thread?
https://forum.xda-developers.com/k20-pro/development/recovery-unofficial-twrp-xiaomi-redmi-t3944363
Thanks in advance for your help,
Best regards.
Risike said:
Hi everyone, sorry for my bad english.
I have a Redmi K20 Pro (chinese phone from Rakuten sent to France) with 11.0.3.0 Global Rom (QFKINXM) with an UNLOCKED Bootloader.
I would like to install TWRP (for root) and magisk (to hide root).
When I've bought the phone, i had a 9t Pro Rom installed. I've tried to install TWRP and magisk and I soft bricked it...
So... I've reflash an old Global K20 Pro ROM (not 9T Pro) and update it via OTA.
Now I'm in 11.0.3.0 Global with the good phone name (K20 pro).
I would like to know wich version of TWRP and Magisk I must flash.
Maybe one from this thread?
https://forum.xda-developers.com/k20-pro/development/recovery-unofficial-twrp-xiaomi-redmi-t3944363
Thanks in advance for your help,
Best regards.
Click to expand...
Click to collapse
Yep the latest unofficial in your link should work on all regardless. If I'm not mistaken you're on the global indian version for K20 pro?
Hum... I don't know... How can I see that ?
"if it's the first time you flash the TWRP or you are getting problems of TWRP lost or device doesn't boot after flashed magisk or something else you need to flash a modified vbmeta:
Modified VBMETA"
Must I flash VBMETA ?
Risike said:
Hum... I don't know... How can I see that ?
"if it's the first time you flash the TWRP or you are getting problems of TWRP lost or device doesn't boot after flashed magisk or something else you need to flash a modified vbmeta:
Modified VBMETA"
Must I flash VBMETA ?
Click to expand...
Click to collapse
You shouldn't normally need to flash vbmeta, if you are going to install Magisk. You should be OK, if you boot immediately to TWRP after flashing, then flash Magisk.
Also look at Orange Fox recovery, if you are sticking with MIUI. It has extra features specific to MIUI, such as OTA survival and in-built debloat tools, amongst other things.
If you don't need the extra features, then stick with the mauronofrio's TWRP.
For Magisk, just go with the latest official build.
I tried to flash Twrp many times but every attempt failed... Orange Fox is no problem, but I like Twrp more. The phone isn't booting up after flashing Twrp... Has anybody a solution for this problem?
Gesendet von meinem Mi 9T Pro mit Tapatalk
Ok I will try Orange Fox. But could I install Magisk to hide root with Orange Fox ? Moreover, must I boot to Android before flashing Magisk or must I flash it immediatly after the Orange Fox install ?
Thanks in advance.
EDIT : all tutos I've found tells that I must install TWRP before Orange Fox... But I can't install TWRP without soft brick...
Risike said:
Ok I will try Orange Fox. But could I install Magisk to hide root with Orange Fox ? Moreover, must I boot to Android before flashing Magisk or must I flash it immediatly after the Orange Fox install ?
Thanks in advance.
EDIT : all tutos I've found tells that I must install TWRP before Orange Fox... But I can't install TWRP without soft brick...
Click to expand...
Click to collapse
https://forum.xda-developers.com/k20-pro/how-to/flashing-orangefox-recovery-mi-9t-pro-t3980579
wait wait wait....
Umm, if you haven't gotten a fix yet.
You're saying you got k20p china model (RCN) with global rom (RGL rom) and it is using Indian Vendor (RIN vendor).............. dude.... why.
Anyways, can I just suggest you move to EU ROM latest stable. Its a lot less hassle, seriously.
I mean AOSP is great too. but if you want miui, EU just skips all the problems.
Also, to fix your problem.
Find out what phone you have first, then get the latest updated vendor for it.
Use mauronifroi's TWRP img file and flash it via cmd on your PC. then use orangefox.
Just flash the latest stable magisk zip file 20.3
My Guide should fix everything you have. you mix and matched 3 things lel, no wonder something is soft-bricking. Use my guide, or text me on telegram
https://forum.xda-developers.com/k20-pro/how-to/simple-beginners-guide-to-raphaelin-t4020543
there's also a guide on why your recovery isn't sticking.
thanks a lot Sandeeep Kiran !
How can I know exactly the phone model I have ? I'v bought it on Rakuten as a 9T Pro and I've received a K20 Pro (chinese or indian, I don't really know)
Then, how can I know exactly the rom I have. It's just written "11.0.3.0 Global Rom (QFKINXM)" on my phone.
I seem to have an Indian phone with an indian rom but I'm not ure. All works perfectly and in french but I don't pass the Safety check from Google.
Thanks in advance.
EDIT : the phone I've bought. https://fr.shopping.rakuten.com/offer/buy/3967800781/xiaomi-redmi-k20-pro-128-go-ram-6-go-double-sim-rouge.html
But i've received a K20 Pro. After the brick I've installed an old official Global Rom from the Xiaomi website and update it via OTA.
(again sorry for my very bad english)
download cpu-z app on play store, and check if somewhere there is ,,raphael'' or ,,raphaelin'' so we can be sure
Thanks. CPU-Z says me "raphaelin"... So... Indian phone with an Indian Rom I suppose.
I'm affraid to flash TWRP. I'm tired to reinstall all my phone, apps, settings, data, game saves...etc
Risike said:
Thanks. CPU-Z says me "raphaelin"... So... Indian phone with an Indian Rom I suppose.
I'm affraid to flash TWRP. I'm tired to reinstall all my phone, apps, settings, data, game saves...etc
Click to expand...
Click to collapse
then backup them to the cloud
Risike said:
thanks a lot Sandeeep Kiran !
How can I know exactly the phone model I have ? I'v bought it on Rakuten as a 9T Pro and I've received a K20 Pro (chinese or indian, I don't really know)
Then, how can I know exactly the rom I have. It's just written "11.0.3.0 Global Rom (QFKINXM)" on my phone.
I seem to have an Indian phone with an indian rom but I'm not ure. All works perfectly and in french but I don't pass the Safety check from Google.
Thanks in advance.
EDIT : the phone I've bought. https://fr.shopping.rakuten.com/offer/buy/3967800781/xiaomi-redmi-k20-pro-128-go-ram-6-go-double-sim-rouge.html
But i've received a K20 Pro. After the brick I've installed an old official Global Rom from the Xiaomi website and update it via OTA.
(again sorry for my very bad english)
Click to expand...
Click to collapse
You speak English well.
Right, so on my guide link.. scroll down to the 3rd comment, and you'll find a guide that says HOW TO KNOW WHAT DEVICE I HAVE. and check the box.
I'm just assuming whoever sold it did not change the boxes as well.
anyways, on the back of the phone, if it says REDMI it's either an Indian k20p or a Chinese k20p. If it has MI written on it. Your phone is Mi 9tp.
download the DRM info app from the play store. If your widevine is L1, you have the Indian variant confirmed.
If your widevine is L3, you have the china variant probably (or the Indian variant and screwed with the widevine, and you may get it back depending on what the manufactures did. Iff it shows L3, it's a decent chance its the china version)
another sure-fire way is checking if NFC works. The Indian variant does not have NFC hardware chip at all., whereas the china version does.
for now, move to EU, and we can slowly work on which exactly if you are hell-bent on know what you got.
The CPU-Z will show raphael/raphaelin based on your vendor. I have raphaelin, but I am using EU rom, which uses modified china vendor, so my CPU-Z app shows raphael and not raphaelin
btw, if you are so self-conscious about your English, download the chrome extension called grammarly., and Enable it. That'll help your English dramatically by underlining your grammatical mistakes. I use it all the time, and for making sure my posts are grammatically sound.
I'm on telegram as sandeeep, you can text me there if you want to.
Thanks everyone.
I have a chinese version (winedev L3 and NFC and K20 written in the back), good for me and Netflix ! And everyone works perfecly on my phone.
So... I will try to backup as many things as possible and retry to flash TWRP. If it's failed I will flash an EU Rom et retry the TWRP flash.
Sandeeep Kiran, I will telegram you if I have problems. Thanks a lot guy !
Risike said:
Thanks everyone.
I have a chinese version (winedev L3 and NFC and K20 written in the back), good for me and Netflix ! And everyone works perfecly on my phone.
So... I will try to backup as many things as possible and retry to flash TWRP. If it's failed I will flash an EU Rom et retry the TWRP flash.
Sandeeep Kiran, I will telegram you if I have problems. Thanks a lot guy !
Click to expand...
Click to collapse
Hopefully this is the last time to back up and restore the phone.
Go here and get the latest EU fastboot ROM
https://xiaomifirmwareupdater.com/miui/raphael/
It's labelled Global EEA - currently version 11.0.3
Install it with this guide
https://c.mi.com/oc/miuidownload/detail?guide=2
If you see a blank page on a mobile phone, change the browser to desktop mode to view it.
IMPORTANT
In the guide at step 4, after unzipping the ROM delete the file clean_all_lock.bat - This will stop you accidentally bricking the phone.
In step 5 make sure you change the option at the bottom to clean all, before hitting the flash button (see the photo in the guide)
You need to boot into MIUI once before flashing anything else.
After initial set-up of MIUI, boot into fastboot and flash the latest TWRP from here
https://forum.xda-developers.com/k2...icial-twrp-xiaomi-redmi-t3944363/post79823568
Currently 3.3.1-32 is the latest.
After flashing TWRP, while you are still in fastboot mode, type
Code:
fastboot reboot
Now as soon as you hit enter, pick up the phone and press and hold the volume up button. Keeping holding volume up until the phone boots into TWRP.
Download the latest Magisk from here
https://github.com/topjohnwu/Magisk/releases
(It's a good idea to also download the uninstaller file too, just in case you need it)
With the phone now in TWRP and connected to the PC, copy the Magisk installer to the phone, then flash it with TWRP.
You should now have the latest EU ROM with TWRP and Magisk successfully installed, so reboot to MIUI and check Magisk is working.
Then reboot to recovery and check TWRP is working.
I apologies for my bad French. :laugh:

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

Categories

Resources