[GUIDE] Move Back to MIUI Vendor Based ROMs from OSS without losing data and decryption - Xiaomi Poco X3 NFC Guides, News, & Discussion

How to go back to MIUI A10 based ROMs from OSS Vendor based ROMs without losing decryption and data:-
* Requirements: Decrypted Storage (if not Decrypted Format data before doing those steps), MIUI A10 Stock ROM, Orange Fox Recovery (TWRP didn't work very well for me) and DFE (attached)
* Steps:-
1. Wipe data, cache, dalvik cache
2. Flash MIUI ROM
3. Reboot recovery
4. Wipe data, cache, dalvik cache
5. Flash MIUI vendor based rom
6. Reboot recovery
7. Flash dfe
8. Reboot to system
Voila! Now you have your data as well as decrypted storage
Thank me later xD

Nice one. Thanks!

Suraj Pandey said:
How to go back to MIUI A10 based ROMs from OSS Vendor based ROMs without losing decryption and data:-
* Requirements: Decrypted Storage (if not Decrypted Format data before doing those steps), MIUI A10 Stock ROM, Orange Fox Recovery (TWRP didn't work very well for me) and DFE (attached)
* Steps:-
1. Wipe data, cache, dalvik cache
2. Flash MIUI ROM
3. Reboot recovery
4. Wipe data, cache, dalvik cache
5. Flash MIUI vendor based rom
6. Reboot recovery
7. Flash dfe
8. Reboot to system
Voila! Now you have your data as well as decrypted storage
Thank me later xD
Click to expand...
Click to collapse
Can you please provide link to miui stock rom?
https://xiaomifirmwareupdater.com/firmware/surya/stable/V12.0.9.0.QJGMIXM/
Would this fw work?

ramnoob said:
Can you please provide link to miui stock rom?
https://xiaomifirmwareupdater.com/firmware/surya/stable/V12.0.9.0.QJGMIXM/
Would this fw work?
Click to expand...
Click to collapse
Not fw you'll have to flash the whole rom.
You can flash any Android 10 MIUI ROM (Except Elite) . I used MIUI pulse in my case.

Suraj Pandey said:
Not fw you'll have to flash the whole rom.
You can flash any Android 10 MIUI ROM (Except Elite) . I used MIUI pulse in my case.
Click to expand...
Click to collapse
Can you please give me link?

ramnoob said:
Can you please give me link?
Click to expand...
Click to collapse
Here you go. Download the one meant for your region
Xiaomi Firmware Updater
The ultimate script that provides firmware packages for Xiaomi devices.
xiaomifirmwareupdater.com

Ok, im on A11 PixysOS v4.0.6. Can i move back for MIUI Rom with this method?

i tried this method but my device reboots to recovery
can't boot into system
tried all available recoveries(TWRP,OFOX,PBRP)

PUMPU said:
Ok, im on A11 PixysOS v4.0.6. Can i move back for MIUI Rom with this method?
Click to expand...
Click to collapse
You can go back to MIUI ROM but you'll lose data and storage will get encrypted.

antarix said:
i tried this method but my device reboots to recovery
can't boot into system
tried all available recoveries(TWRP,OFOX,PBRP)
Click to expand...
Click to collapse
Which ROM and which recovery did you try first?

safest method i to use Miflash without locking then install TWRP then your desired Custom MIUI ROM

leinadark said:
safest method i to use Miflash without locking then install TWRP then your desired Custom MIUI ROM
Click to expand...
Click to collapse
And lose your data as well lol. Read the heading.
My guide is about how to revert back without losing data for people who don't wanna lose data

Related

[GUIDE] Downgrading From Miui v6 to Miui v5 on Mi3W without using fastboot ROM

For Those Who DOOO
Hi DODOS,
We know that, inorder to downgrade from Miui 6 to Miui 5 on Mi3W,we have to lose entire Internal SD card if we use fastboot flashing method,and hence i made this thread to help you people avoiding the loss of entire data.
Requirements:
1) Mi3W (A Dragon In Your Pocket )
2)CWM recovery (Download From Attachment)
3)Recent stable version of Miui v5 rom(Get it from the download section of official miui english website)
Procedure:
1)Backup your apps and settings since they'll be wiped.
2)Open the Updater app and select update package(i.e the downloaded CWM recovery) by browsing through your sd card.
3)Tap on reboot and enter into recovery by holding "vol+" button
4)Select your active system(choose any of the system and go to advanced menu,you can see your active system their,then change to current active system from managed system[system 1/2] )
5)wipe data/factory reset
6)wipe cache partition
7)mounts and storage>format /system(To avoid force closes of apps after rebooting)
8)advanced>wipe dalvik cache
9)install zip>choose zip from /sdcard>0/>Downloaded Stable ROM
10)reboot system now (Select ---yes-disable recovery flash and root your device if prompted)
This Worked For Me and I felt to share it with you people..Thank you.
and
THANKS to 
 @Ivan @huangqiwu and @Shahzad
for CWM
Let me know your response. Plz reply..
Nice job mate, I"ll try it later coz I still wanna use MIUI 6
Sent from my MI 3W using Tapatalk
After wiping the phone, how do you restore your previous apps?
moi123 said:
After wiping the phone, how do you restore your previous apps?
Click to expand...
Click to collapse
You can restore apps and app data using MIUI's backup and reset option. Few system apps may not get restored since you are downgrading,but that doesn't create an issue. I'm using most of the apps (excluding system apps) normally.
how to downgrade to miui 6 from android lollipop 5.0.3 mi4
i am using Mi4 in India and Android Lollipop 5.0.2. but i feel MIUI is better then android stock rom. i need help to go back to MIUI 6.
Please guide. thanks in advance
pbdwaj : how to downgrade to miui 6 from android lollipop 5.0.3 mi4
Click to expand...
Click to collapse
Just head over to http://en.miui.com/thread-68201-1-1.html. Here you can find a detailed guide on it. If you have any doubts just PM me,i'll help you out
thanks to @Bughinirari
Works for me
I have just replaced 5.1 AOSP rom with latest MIUI 6 following the steps from the guide. Everything went well. Also, I still have CWM recovery.
Customs rom
LePiaf said:
I have just replaced 5.1 AOSP rom with latest MIUI 6 following the steps from the guide. Everything went well. Also, I still have CWM recovery.
Click to expand...
Click to collapse
So can i flash miui 6 rom in cwm. While im came from custom rom like cm12.1
saqlyn said:
So can i flash miui 6 rom in cwm. While im came from custom rom like cm12.1
Click to expand...
Click to collapse
Of course... You can... Wipe system and data and flash miui rom. Miui 5, miui 6, or miui 7.. You can flash anything
ok sir ..thank you i will try it later

bootloop issue

hi i tryed to convert my redmi note 4x to global when flashing with mi flash tool i did it without clean and after that firmware finish installing but got stuck in bootloop now i flashed twrp and tryed to flash custom rom but again bootloop when i check my storage it shows 9gb now when its actual is 32gb i think i disturbed partitions any solution available?
Are you able to boot into TWRP?? If not flash TWRP first using fastboot.
Once you have access to TWRP boot into it and perform a full wipe (System + Data + Cache + Dalvik + Internal Storage). Perform a format too after wipe to be on the safer side. Now copy a custom ROM or MIUI ROM to your Internal Storage or SD card through a computer. Once copied install your ROM.
If you flashed custom ROM flash Gapps after flashing ROM. Reboot.
If you flashed MIUI, flash lazyflasher after that(or phone will be stuck at MI logo). Reboot.
You can find download links for lazyflasher here on XDA or you can google it too.
ArK96 said:
Are you able to boot into TWRP?? If not flash TWRP first using fastboot.
Once you have access to TWRP boot into it and perform a full wipe (System + Data + Cache + Dalvik + Internal Storage). Perform a format too after wipe to be on the safer side. Now copy a custom ROM or MIUI ROM to your Internal Storage or SD card through a computer. Once copied install your ROM.
If you flashed custom ROM flash Gapps after flashing ROM. Reboot.
If you flashed MIUI, flash lazyflasher after that(or phone will be stuck at MI logo). Reboot.
You can find download links for lazyflasher here on XDA or you can google it too.
Click to expand...
Click to collapse
awais_666 said:
hi i tryed to convert my redmi note 4x to global when flashing with mi flash tool i did it without clean and after that firmware finish installing but got stuck in bootloop now i flashed twrp and tryed to flash custom rom but again bootloop when i check my storage it shows 9gb now when its actual is 32gb i think i disturbed partitions any solution available?
Click to expand...
Click to collapse
@ArK96 is right but the only thing i suggest is to, flash miui and lazyflasher first so as to properly set up the initial firmware, and partitioning. After miui boots properly, you can do anything you want. :highfive:
ArK96 said:
Are you able to boot into TWRP?? If not flash TWRP first using fastboot.
Once you have access to TWRP boot into it and perform a full wipe (System + Data + Cache + Dalvik + Internal Storage). Perform a format too after wipe to be on the safer side. Now copy a custom ROM or MIUI ROM to your Internal Storage or SD card through a computer. Once copied install your ROM.
If you flashed custom ROM flash Gapps after flashing ROM. Reboot.
If you flashed MIUI, flash lazyflasher after that(or phone will be stuck at MI logo). Reboot.
You can find download links for lazyflasher here on XDA or you can google it too.
Click to expand...
Click to collapse
thank you for a quick reply yes i am able to go into twrp and i did format system data cache dalvik and internal storage and after wipe did format too but still stuck at same issue and when i open the internal storage in my computer it shows only 9gb storage
MyNameIsRage said:
@ArK96 is right but the only thing i suggest is to, flash miui and lazyflasher first so as to properly set up the initial firmware, and partitioning. After miui boots properly, you can do anything you want. :highfive:
Click to expand...
Click to collapse
ok so the normal global firmware will do? i didnt do with lazyflasher but will do it now
awais_666 said:
ok so the normal global firmware will do? i didnt do with lazyflasher but will do it now
Click to expand...
Click to collapse
you mean the global rom? yes the one you downloaded from en.miui.com
MyNameIsRage said:
you mean the global rom? yes the one you downloaded from en.miui.com
Click to expand...
Click to collapse
yes thats the one downloading now thank you guys for quick response ill update once done
@MyNameIsRage thank you for correcting me.
Yes. Please do flash MIUI and lazy first. Looks like you messed up your partitions.
Peace.
hey guys i tryed the following method luckily now storage is shown as 23 gb but when i flash miui rom in twrp the process doesnt complete its like the process bar goes till 95 percent and after that it keeps flashing but nothing happening i left the phone like this for 2 hours for 2 times but nothing happened am i doing something wrong here
awais_666 said:
hey guys i tryed the following method luckily now storage is shown as 23 gb but when i flash miui rom in twrp the process doesnt complete its like the process bar goes till 95 percent and after that it keeps flashing but nothing happening i left the phone like this for 2 hours for 2 times but nothing happened am i doing something wrong here
Click to expand...
Click to collapse
After flashing MIUI and lazy you flashed MIUI again is that what you are saying?
ArK96 said:
After flashing MIUI and lazy you flashed MIUI again is that what you are saying?
Click to expand...
Click to collapse
nop i formatted everything and then install miui rom for redmi note 4x which doesnt finish installing
awais_666 said:
nop i formatted everything and then install miui rom for redmi note 4x which doesnt finish installing
Click to expand...
Click to collapse
Go here and download the Global Stable worldwide release version firmware.
Boot into twrp wipe and format everything. Also after that reflash TWRP again using fastboot.
Once reflashed boot into TWRP and again perform a full wipe and format, then install the downloaded firmware zip. After that reboot TWRP and try flashing MIUI.
ArK96 said:
Go here and download the Global Stable worldwide release version firmware.
Boot into twrp wipe and format everything. Also after that reflash TWRP again using fastboot.
Once reflashed boot into TWRP and again perform a full wipe and format, then install the downloaded firmware zip. After that reboot TWRP and try flashing MIUI.
Click to expand...
Click to collapse
cool will try that in a while just a quick question i read somewhere that do the same process with red wolf recovery rather then twrp does that make any difference
awais_666 said:
cool will try that in a while just a quick question i read somewhere that do the same process with red wolf recovery rather then twrp does that make any difference
Click to expand...
Click to collapse
Yes. Red wolf is more MIUI friendly, it is made with OTA survival in mind. But your issue is that the ROM is not getting flashed. You can try what I said above about TWRP reflash, if it doesn't work you can go ahead and try redwolf. REDWOLF is nothing but modded TWRP, base code is still TWRP.
ArK96 said:
Yes. Red wolf is more MIUI friendly, it is made with OTA survival in mind. But your issue is that the ROM is not getting flashed. You can try what I said above about TWRP reflash, if it doesn't work you can go ahead and try redwolf. REDWOLF is nothing but modded TWRP, base code is still TWRP.
Click to expand...
Click to collapse
hey mate finally i got time to do the procedure i flashed the kernel that you told and on top of it the firmware and lazyflasher it went through in just few minutes and was all done and working perfectly now thanks alot
awais_666 said:
hey mate finally i got time to do the procedure i flashed the kernel that you told and on top of it the firmware and lazyflasher it went through in just few minutes and was all done and working perfectly now thanks alot
Click to expand...
Click to collapse
Good job mate.

Fingerprint on EU Rom

Hi,
I have flashed latest global stable and flashed BR-rosy recovery and flashed eu rom over it however fingerprint isn't working
i have already tried flashing several fingerprint fixes in past
any help ?
dranzer006 said:
Hi,
I have flashed latest global stable and flashed BR-rosy recovery and flashed eu rom over it however fingerprint isn't working
i have already tried flashing several fingerprint fixes in past
any help ?
Click to expand...
Click to collapse
I got same issue,can't set fp,,only face unlock works perfectly
also latest global rom won't allow installing twrp. need to flash older version of official miui rom to get recovery
Easy fix to fingerprint issue in Newer Xiaomi EU ROMs
This is how I got rid of this fingerprint problem.
1. First you need to flash Orangefox recovery for redmi 5 ( any custom recovery like twrp would work but I recommend Orangefox since I know it will work )
2. Then after entering recovery, click reboot then click recovery. If it don't reboot to recovery use the power button + volume up combo to re-enter recovery.
3. Go to wipe section and click format data. Type yes then enter.
4.Again reboot to recovery.
5. Wipe everything except internal storage and sdcard.
6. Reboot to recovery.
7. Flash xiaomi EU ROM v8.9.6 for redmi 5. Wait for flashing. Click wipe cache. No need to wipe data or anything.
8. Reboot system.
9. Complete the setup and add fingerprint.
10. Reboot to recovery and install any xiaomi EU ROM you want. But don't ever wipe data. Wiping data will wipe fingerprint data and you will get fingerprint error
11. Don't do anything extra just reboot system. Booting will take some time than usual. Its just for first time. Enjoy your new ROM with fingerprint and face lock and without bloat. :fingers-crossed:
Sonpme useful links:
Orange fox recovery https://sourceforge.net/projects/orangefox/files/test_builds/OrangeFox-R8.3-rosy.zip/download
EU 8.9.6 ROM https://sourceforge.net/projects/xi...iaomi.eu_multi_HM5_8.9.6_v10-7.1.zip/download
Fingerprint fix in simple way
Flash xiaomi EU v8.9.6 through any recovery.
Reboot system. Setup fingerprint.
Reboot recovery and flash the desired EU ROM without wiping anything. Just reboot system.
Hit thanks if it helped you.
ShreyasTheRootMan said:
Flash xiaomi EU v8.9.6 through any recovery.
Reboot system. Setup fingerprint.
Reboot recovery and flash the desired EU ROM without wiping anything. Just reboot system.
Hit thanks if it helped you.
Click to expand...
Click to collapse
I tried to follow the guide coming from a stable xiaomi.eu 10.2.3.0 but after installing and restarting the phone on the first long boot
I get "unfortunately gboard has stopped" and then the request to reset the phone
abadroot said:
I tried to follow the guide coming from a stable xiaomi.eu 10.2.3.0 but after installing and restarting the phone on the first long boot
I get "unfortunately gboard has stopped" and then the request to reset the phone
Click to expand...
Click to collapse
Can you enter settings and clear the data of gboard ?
ShreyasTheRootMan said:
Can you enter settings and clear the data of gboard ?
Click to expand...
Click to collapse
On the 10. rom before start flashing the old 8.9.6?
Because the error occurs after flashing the rom but before it is completely installed (I don't arrive at the initial configuration of the phone because it resets first).
abadroot said:
On the 10. rom before start flashing the old 8.9.6?
Because the error occurs after flashing the rom but before it is completely installed (I don't arrive at the initial configuration of the phone because it resets first).
Click to expand...
Click to collapse
You need to reset the phone completely before installing EU 8.9.6
ShreyasTheRootMan said:
You need to reset the phone completely before installing EU 8.9.6
Click to expand...
Click to collapse
It worked!
Before installing the eu 8.9.6 rom I ran from recovery (twrp)
- factory reset
- format data
- wipe cache, dalvik cache, system and data
:good:
abadroot said:
It worked!
Before installing the eu 8.9.6 rom I ran from recovery (twrp)
- factory reset
- format data
- wipe cache, dalvik cache, system and data
:good:
Click to expand...
Click to collapse
Good to hear that it worked. You have fingerprint and face unlock right ?
ShreyasTheRootMan said:
Good to hear that it worked. You have fingerprint and face unlock right ?
Click to expand...
Click to collapse
I confirm!

[SOLVED] My Mi9 Is bricked, need help because

Hello everyone,
Having a series of bug that I did not like, I tried to flash my mi9 with an older version of the EU rom.
Since, my phone reboots constantly on TWRP and if I go in the files of the SD card, it is big anything in it.
Basically my phone is bricked.
I need your help to get by because the only thing that starts is TWRP ..
Someone could he save me?
Based on ny previous experience with another Android devices, I think your Mi 9 is far from beying bricked. All you need is to flash a stock image through fastboot.
Ticiano said:
Based on ny previous experience with another Android devices, I think your Mi 9 is far from beying bricked. All you need is to flash a stock image through fastboot.
Click to expand...
Click to collapse
i have just tested with fastboot and i have a message when mi tools flash the system part: error failed : data transfert failure ...
I have downloaded europe latsest stable. .I try to download latest GLOBAL stable.. It may be that ..
SirTAVARES said:
u didn't format data... just follow this:
1 - Flash & Boot TWRP
2 - Format Data
3 - Wipe (Dalvik Cache, System, Data, Cache)
4 - Copy the ROM to the internal storage
5 - Flash the ROM & Reboot
6 - Reboot to TWRP and Flash Magisk [optional]
Click to expand...
Click to collapse
Arf.. I read your post too late and I already have a flash fastboot ... Grrrr
Now I have no more twrp, so
Just tested with global fastboot rom and "Flash system error'
Help !
flashed with mi tools2018-5-28-0 and : SUCCESS !
fanfan7110 said:
Just tested with global fastboot rom and "Flash system error'
Help !
flashed with mi tools2018-5-28-0 and : SUCCESS !
Click to expand...
Click to collapse
Got it sorted yeah?
kickassdave said:
Got it sorted yeah?
Click to expand...
Click to collapse
The phone is working again .. Oufff.
I had the same problem...
SirTAVARES said:
u didn't format data... just follow this:
1 - Flash & Boot TWRP
2 - Format Data
3 - Wipe (Dalvik Cache, System, Data, Cache)
4 - Copy the ROM to the internal storage
5 - Flash the ROM & Reboot
6 - Reboot to TWRP and Flash Magisk [optional]
Click to expand...
Click to collapse
I do the same steps and when i wiped my phone restarted and i'm now blocked on bootloader screen and i can't get in twrp mode. Some one can help to unbrick my phone ?:crying:
SirTAVARES said:
u can only reboot to recovery after formatting data!
and not after wiping
Click to expand...
Click to collapse
can you halp me with this?
SirTAVARES said:
u didn't format data... just follow this:
1 - Flash & Boot TWRP
2 - Format Data
3 - Wipe (Dalvik Cache, System, Data, Cache)
4 - Copy the ROM to the internal storage
5 - Flash the ROM & Reboot
6 - Reboot to TWRP and Flash Magisk [optional]
Click to expand...
Click to collapse
This steps can be applied for upgrading from P to Q too ?
You don't have to reboot after formatting data ?
But never reboot after wiping system, yeah
ManuBBXX said:
This steps can be applied for upgrading from P to Q too ?
You don't have to reboot after formatting data ?
But never reboot after wiping system, yeah
Click to expand...
Click to collapse
Uhh yeah! You need to reboot to recovery to see if TWRP is still on there. Formatting means EVERYTHING gets yeeted out the back door. When you format data, always, and I mean ALWAYS reboot to recovery, and then you can flash your vendor image following your rom.
well, i flashed the android 10 version from "mi dot com/global/androidqbeta" , then i wanted to go back to the pixel experience rom and it didn't boot, it boot loped to twrp, so, I wiped all the partitions, and tried to flash the global version that came with the phone and it gives me the error "vendor error flashing" and then on another try after flashing the vender through twrp "system error flashing", then I formated all the partitions and then tried with the miflash tool version 2018-5-28, and it says device mismatch, but I am sure I have the mi 9 cepheus, 64gb 6gb ram, do i try flashing it with the European version ? i remember it came with the global version ...
[edit]
well, i solved it by making sure i had the same name on the folder that i had on the decompressed folder .. i've never encountered such an error
hope this helps someone ahah
fanfan7110 said:
Hello everyone,
Having a series of bug that I did not like, I tried to flash my mi9 with an older version of the EU rom.
Since, my phone reboots constantly on TWRP and if I go in the files of the SD card, it is big anything in it.
Basically my phone is bricked.
I need your help to get by because the only thing that starts is TWRP ..
Someone could he save me?
Click to expand...
Click to collapse
You use Mi flash 2018.5.28 https://drive.google.com/uc?id=1fGtVqNIPooDlxa-PAXBhJ4W85RPJ-Aaz&export=download
and Flash rom dev Global 9.6.27 https://mega.nz/#!CooF0CQS!qms2GwgiGq0ao9JThMUinTJVxwcJdlwnORl2S64mxrg

Unable to decrypt FBE device

Plz anybody help this out...
I unlocked bootloader, then immediately flashed Pitchblack recovery, then booted into recovery.
Initially console shows decrypted FBE device with default password. But Encryption status : Encryped
So I went into wipe & Formatted Data inorder to get rid of encryption. Then I rebooted recovery & it shows Unable to decrypt FBE device.
[UPDATE] (24/12/20) : The console output Unable to decrypt FBE device was nothing but to tell us that incompatible operating system flashed.
I flashed global version roms which are the main cause for bootloops. I flashed stock rom, then immediately worked out of the box.
1. Format data after going into twrp *It will wipe you device*
2. If you don't want to install a custom rom just mod MIUI, remove your lock screen password or flash orange fox and if it asks for password just put your lock screen password.
3. Else if you want to install a custom rom
Open recovery
Wipe data cache davilk
Flash rom
Format data
Reboot.
LoadOP2 said:
1. Format data after going into twrp *It will wipe you device*
2. If you don't want to install a custom rom just mod MIUI, remove your lock screen password or flash orange fox and if it asks for password just put your lock screen password.
3. Else if you want to install a custom rom
Open recovery
Wipe data cache davilk
Flash rom
Format data
Reboot.
Click to expand...
Click to collapse
Thnx for reply. I've tried Orange fox too. When I format data, internal storage doesn't decrypt. Also when I flash custom roms, they flash, but I'm gonna stuck in bootloop.
My main problem is that I can't decrypt storage. Phone boots only when I'm on MIUI stock. Am I missing something ?
That is odd but still flash fastboot rom and then flash twrp , flash a rom of your choice then format data . Maybe it will help . Btw which rom are you installing.
LoadOP2 said:
That is odd but still flash fastboot rom and then flash twrp , flash a rom of your choice then format data . Maybe it will help . Btw which rom are you installing.
Click to expand...
Click to collapse
Thnx for the reply. I'm trying to have lineage 17.1 & resurrection remix official build. I think rom's not the issue here. I need to know one thing.
To exactly say my issue, I can do flashing. But when I do & then reboot, Internal storage doesn't show the size & mtp doesn't work too, with bootloop issues along together.
There is no official LineageOS for the device.
kalehrl said:
There is no official LineageOS for the device.
Click to expand...
Click to collapse
Oh, I've mistaken, I was about to say resurrection remix official build & lineage unofficial one. Btw what do you think my device is going up to ? How can I decrypt & use internal storage successfully? I can't use internal storage when I flash a rom. Bcaz internal storage renders useless because of encryption.
Which recovery are you using?
Try flashing magisk 20 or 21.
Flash twrp by marounfurio( I am sorry if I slaughtered the name) which is available on xda.
And format data.
It's midnight here and I am going to sleep I will help to tommorow morning.
LoadOP2 said:
Which recovery are you using?
Try flashing magisk 20 or 21.
Click to expand...
Click to collapse
Right now I'm on Pitchblack beta latest build.
I tried magisk on MIUI stock through patched boot method, it worked, but no apps able to access root. I checked all magisk settings...
I think encrypted data partition is the whole culprit here. How can I decrypt it ?
MPK99 said:
Right now I'm on Pitchblack beta latest build.
I tried magisk on MIUI stock through patched boot method, it worked, but no apps able to access root. I checked all magisk settings...
Click to expand...
Click to collapse
And what about flashing magisk in twrp.
MPK99 said:
Right now I'm on Pitchblack beta latest build.
I tried magisk on MIUI stock through patched boot method, it worked, but no apps able to access root. I checked all magisk settings...
I think encrypted data partition is the whole culprit here. How can I decrypt it ?
Click to expand...
Click to collapse
Formatting data normally decrypts it . I don't know why something like this is happening here.
Follow my guide again maybe? Give it a shot step by step.
LoadOP2 said:
Formatting data normally decrypts it . I don't know why something like this is happening here.
Follow my guide again maybe? Give it a shot step by step.
Click to expand...
Click to collapse
Yah, I'm feeling weird too. Normally there are 3 ways to remove decryption...I tried all those.
1. Formatting Data by typing "yes"
2. Formatting data partition from f2fs to ext4
3. Installing Decrypt script v2 zip immediately after flashing stock rom.
I tried everything I could. I know all sorts of common flashing things. I caz I always used to try so many roms on my previous redmi's, but this one is special case.
I'd suggest you use LineageOS recovery. That's how I removed decryption.
kalehrl said:
I'd suggest you use LineageOS recovery. That's how I removed decryption.
Click to expand...
Click to collapse
Sure. Encryption is the whole culprit for me to say exactly. I'm trying to decrypt & flash builds. I'll notify if it works. Nice to get help from you guys.
Try this.
How to decrypt rom/storage so you can easily switch roms without format
First I would thankx to @sakhatlonda for koutiliy.zip
Steps to download file
1. Download koutility.zip from below.
2. Documentation related to koutility
Read from below link (recommended)
Just a utility zip which can be flashed on every rom flash, to do some pre-defined tasks.
Can be used either to copy everything you place in sdcard/sudeep/system_root to respective dirs or to set config and use that to do predefined tasks
This is how it works:
Flash in recovery, every option has Note with it
Available Configs:
brbootdtbo - auto backup/restore boot & dtbo, will do backup if no backup present and will do restore if backup is there
bbootonly - always backup boot
bdtboonly - always backup dtbo
resbootdtbo - always restore boot & dtbo (brbootdtbo won't work if this is enabled)
enalways - encrypt always (edauto won't work if this is enabled)
dealways - decrypt always (enalways & edauto won't work if this is enabled)
edauto - auto change encryption state on each flash
avb - removes avb flags (if decrypted)
quota - removes quota flag (if decrypted)
keep - doesn't over-writes boot/dtbo backups
debloat - removes bloats
rebloat - restore removed bloats
patchD - same as flash but set in config
productsize - makes a product image from your currently flashed rom to sdcard/sudeep and adds 600mb to it. So you can flash gapps etc. without error. (PC needed to flash product.img)
Steps to decrypt rom/storage
1. Flash roms
2. Flash koutility.zip tested on aosp only
3. Format data (required only first time after flashing koutility)
4. Reboot to recovery
5. Flash gapps (optional)
6. Boot into system
Congratulations your storage/rom is decrypted , you can switch roms without format
Next time when you want to switch roms
Steps
1. Wipe data,caches and dalvik caches
2. Flash rom
3. Flash koutility.zip
4. Reboot to recovery
5. Flash gapps (optional)
6. Boot into system
Notes
Remember you need to config koutility.zip in recovery
How to config koutility for decryption
Volume down (set config) > yes
After that "No" till 5th option
Then "yes" for 6th option
Rest "No" till 15th option
Last "yes" to flash
@LoadOP2 Thanx for providing KoUtil & its read me.
But I think we shouldn't reboot to recovery immediately after formatting the data. Because the stock rom will start it's initial encryption process by then & I won't get decrypted storage. Isn't it ?
I think this is the case that's happening to me. I always reboot recovery after formatting data, my storage will encrypt again because of stock rom's existence.
Yes you have to reboot to recovery. Otherwise you won't be able to use data partition.
LoadOP2 said:
Yes you have to reboot to recovery. Otherwise you won't be able to use data partition.
Click to expand...
Click to collapse
Yes, you're correct, we should do that. But can you read my 1st post in this thread. This is about that specific problem. I'm rebooting recovery after formatting data, then recovery shows Unable to decrypt FBE device
Send your recovery logs after formatting data.
LoadOP2 said:
Send your recovery logs after formatting data.
Click to expand...
Click to collapse
That would help. I'll attach screenshots too. Currently I'm on stock & being busy. I'll do this by today night & post logs & screenshots.

Categories

Resources