I have messed up my Kenzo pretty bad and now i dont have any recovery or fastboot. - Xiaomi Redmi Note 3 Questions & Answers

So i was happy using a kenzo with unlocked (unofficially) bootloader.
i had followed this guidehttps://forum.xda-developers.com/redmi-note-3/how-to/unlock-unofficially-install-zcx-twrp-t3586778
So i had not rooted the device but just unlocked to use lineage os 14.1
i wanted to record internal audio and so tried to root with magisk. i took a backup using TWRP ZCX on an OTG USB.
successful!
now i installed iFont and installed a font.
this font made some problem in my status bar. there was some extra space above the clock, battery and all.
so whenever an app issued a notification, it crashed. even the system crashed continously.
so i decided to restore my backup.
i wiped my existing data in twrp
but the back up was successfully restored and upon system boot i saw "unsuccessful decryption." upon clicking restart, my phone would flash the TWRP ZCX logo and restart itself landing me again on "unsuccessful decryption."
so i went back to recovery and saw that could not mount /data.
so i did this:
My solution is simples. but you will LOSE EVERY FILE on userdata.
Step 1: Install TWRP
Step 2: Go to Wipe box
Step 3: Select Advanced Wipe
Step 4: Check "DATA" and tap on "Repair or Change File System".
Step 5: Tap Change File System
Step 6: See original format on file system (In my S6 is EXT4). So turn to other and switch back to original
Now /data is mounted back.
from https://forums.androidcentral.com/t...y-e-failed-mount-data-invalid-argument-2.html
It helped and i could mount /data
but then upon another restore i saw the same "unsuccessful decryption."
i read somewhere that a format will wipe all encryption and i thought it might help.
i formatted all the boxes (including data, internal storage and system)
then did a system restart from TWRP
now im stuck with mi logo and i am unable to enter fastboot and recovery.
HELP ME!

h8ed1 said:
So i was happy using a kenzo with unlocked (unofficially) bootloader.
i had followed this guidehttps://forum.xda-developers.com/redmi-note-3/how-to/unlock-unofficially-install-zcx-twrp-t3586778
So i had not rooted the device but just unlocked to use lineage os 14.1
i wanted to record internal audio and so tried to root with magisk. i took a backup using TWRP ZCX on an OTG USB.
successful!
now i installed iFont and installed a font.
this font made some problem in my status bar. there was some extra space above the clock, battery and all.
so whenever an app issued a notification, it crashed. even the system crashed continously.
so i decided to restore my backup.
i wiped my existing data in twrp
but the back up was successfully restored and upon system boot i saw "unsuccessful decryption." upon clicking restart, my phone would flash the TWRP ZCX logo and restart itself landing me again on "unsuccessful decryption."
so i went back to recovery and saw that could not mount /data.
so i did this:
My solution is simples. but you will LOSE EVERY FILE on userdata.
Step 1: Install TWRP
Step 2: Go to Wipe box
Step 3: Select Advanced Wipe
Step 4: Check "DATA" and tap on "Repair or Change File System".
Step 5: Tap Change File System
Step 6: See original format on file system (In my S6 is EXT4). So turn to other and switch back to original
Now /data is mounted back.
from https://forums.androidcentral.com/t...y-e-failed-mount-data-invalid-argument-2.html
It helped and i could mount /data
but then upon another restore i saw the same "unsuccessful decryption."
i read somewhere that a format will wipe all encryption and i thought it might help.
i formatted all the boxes (including data, internal storage and system)
then did a system restart from TWRP
now im stuck with mi logo and i am unable to enter fastboot and recovery.
HELP ME!
Click to expand...
Click to collapse
Don't go to advanced wipe. Selecting parttions doesnt format it. It only wipes.
Wipe and format are 2 diiffrent commands.
There is an option called format data in twrp. Click format data and type " yes " to format data. It will decrypt the data and internal storage.
First format data (must do)
Then wipe data reset
Flash rom
Flash gapps
Reboot

naik2902 said:
Don't go to advanced wipe. Selecting parttions doesnt format it. It only wipes.
Wipe and format are 2 diiffrent commands.
There is an option called format data in twrp. Click format data and type " yes " to format data. It will decrypt the data and internal storage.
First format data (must do)
Then wipe data reset
Flash rom
Flash gapps
Reboot
Click to expand...
Click to collapse
But i cant go to recovery or fastboot!
so im stuck with MI logo!

h8ed1 said:
But i cant go to recovery or fastboot!
so im stuck with MI logo!
Click to expand...
Click to collapse
Fastboot mode
press volume down + power
release the both button immediatelely with the vibration.

Get to FastBoot
Now use the following commands.
" fastboot format system "
" fastboot format userdata "
" fastboot erase recovery " (optional)
Now...
Install TWRP & Flash Stock Rom.

naik2902 said:
Fastboot mode
press volume down + power
release the both button immediatelely with the vibration.
Click to expand...
Click to collapse
Thanks i have successfully installed TWRP ZCX.
now how should i flash lineage?
Should i follow my same method i used the first time?

h8ed1 said:
Thanks i have successfully installed TWRP ZCX.
now how should i flash lineage?
Should i follow my same method i used the first time?
Click to expand...
Click to collapse
I dont know zcx is updated or not
Install latest twrp 3.2.3 coz of some bug fixes for oreo.
I prefer aosp extended official oreo
First Format data must do to decrypt
Then Wipe data reset
Flash rom
Flash latest august open gapps pico or nano
Reboot
Sent from my kenzo using XDA Labs

Related

flash cm13 without rooting.. can i ????..

hellow everyone i have le max 2 x821 indian version, thats highly encrypted,..
i tried to root and unlocked the bootloader..
installed twrp successfully, but the encryptions not allowing to twrp to mount internal storage data,
i tried installing supersu through sideload but didnt worked the rooting is being prevented by encryptions as it shows there..
so , i cant root but i badly want to inatall cm13 on my device can i do that by using sideload without rooting as bootloader is opened.... will it affect my device if i try doing that.... please people help...:crying::crying::crying:
You need to erase the internal storage to have it decrypted. After installation of indian ROM, the phone's internal storage becomes encrypted. In order to decrypt it back, make sure you save everything from your phone inside a computer, then in TWRP, erase/format the internal storage, copy the new ROM that you want to flash via TWRP (you won't have any system installed so you can't reboot otherwise you'll endup in some bootloop). You can Enable MTP to see the device in computer. After you have copied the new ROM, flash it and enjoy. This is my experience on X820 after flashing indian ROM, so I'm not very sure if all described above will work on X821 but you can give it a try. If you brick your device, there is a fix for hard brick as well, so, no worries.
problem decrypting..
I tried it by doing format system.. but it didn't got decrypted... N everything remained same...
nikeshcfri said:
I tried it by doing format system.. but it didn't got decrypted... N everything remained same...
Click to expand...
Click to collapse
In TWRP you need to press "Wipe", then "Advanced Wipe" and select "Inernal Storage", then swipe to wipe. Do note that everything on your phone will be erased, contacts, photos, music, etc. Wiping only system won't decrypt anything.
not working..
valy_cta said:
In TWRP you need to press "Wipe", then "Advanced Wipe" and select "Inernal Storage", then swipe to wipe. Do note that everything on your phone will be erased, contacts, photos, music, etc. Wiping only system won't decrypt anything.
Click to expand...
Click to collapse
i booted into twrp then selected wipe->advanse wipe-> internal storage and then swiped to wipe,..
then it showed wipe failed unable to mount something...
Try to check in Mount and see if you can change something that can help.
Also someone with X821 maybe can help in this matter.
i tried that didn't help..
Can anyone give me link to stock recovery, this twrp is not functioning n hindering my upgrade to 19s also... I want to have my stock recovery back anyone please give me img file of that...
nikeshcfri said:
i booted into twrp then selected wipe->advanse wipe-> internal storage and then swiped to wipe,..
then it showed wipe failed unable to mount something...
Click to expand...
Click to collapse
Try this command in fastboot
Fastboot format user data
Then
Fastboot reboot
Sent from my Nexus 6P using XDA-Developers mobile app
valy_cta said:
If you brick your device, there is a fix for hard brick as well, so, no worries.
Click to expand...
Click to collapse
Hello,
Wolud you be so kind and share some link/info about this solution?
regards Filozof71
boot loop??
If u got into bootloop with a blue dot and phone restarting again and again, simply go into twrp and flash any of the official eui 15s 16s 19s Roms by wipe and install zip.

Can anyone post step-by-step instructions to flash LineageOS 13 on the MiPad?

I'm using TWRP 2.7.8 and these are the steps I followed:
- Wipe system, cache, data and dalvik
- Flash repartition script
- Flash LineageOS zip
- Reboot
After rebooting, it goes to MultiROM selection, and says it is booting Internal(I have removed all other roms) but then it reboots into TWRP again.
I'm unable to install it as an alternate rom in Multirom as well. It throws the error: 'E:Error executing updater binary in zip '/tmp/mr_update.zip'
Yes please someone ! This system partition thing isn't properly working. Stuck at mi logo.
Prequsites:
Download following files:
Repartition Script zip: https://mega.nz/#!645wGZIC!maidxLV7kRMcQTaUM-V6QvOJplL3nfrDWWXiZYhLyJ0
TWRP Multirom 2.8.4: https://mega.nz/#!644RyARI!6pXZVk16xS3vxFL52UxKwEEmcX_iQ8YEaAd37JHm5w4
TWRP 3.0.2.0: https://dl.twrp.me/mocha/
Place all the files on the device.
Step 1: In your current TWRP: Wipe -> Advanced Wipe: Tick Dalvik/art, System, Cache and Data -> Swipe to wipe
Step 2: Reboot into Recovery
Step 3: Install TWRP Multirom 2.8.4 and reboot to Recovery
Step 4: Once rebooted go to Install and select the Repartition Script zip the device will reboot into Recovery
Step 5: Back in Recovery go to Wipe -> Advanced Wipe Tick System an click Repair or Change File System. The size is now 0MB -> press "Resize File System" and it should be Size: 1235MB
Step 6: Go to Install and select the "Image" Button in the lower right corner and select TWRP 3.0.2.0 mocha, select Recovery and Swipe to flash. Reboot Device into Recovery. It asks you there is no OS installed confirm that with Swipe after that it asks if you want to install SuperSU.... click on DONT INSTALL
Step 7: You should be now in TWRP 3.0.2.0 now go to install flash Lineage OS, Gapps and SuperSU it should work.
Multirom
Does anyone succeed on dual boot with Miui Smoke, i wanna make Lineage OS as secondary ROM since camera not working yet..
Legacyleader said:
Step 1: In your current TWRP: Wipe -> Advanced Wipe: Tick Dalvik/art, System, Cache and Data -> Swipe to wipe
Step 2: Reboot into Recovery
Step 3: Install TWRP Multirom 2.8.4 and reboot to Recovery
Step 4: Once rebooted go to Install and select the Repartition Script zip the device will reboot into Recovery
Step 5: Back in Recovery go to Wipe -> Advanced Wipe Tick System an click Repair or Change File System. The size is now 0MB -> press "Resize File System" and it should be Size: 1235MB
Step 6: Go to Install and select the "Image" Button in the lower right corner and select TWRP 3.0.2.0 mocha, select Recovery and Swipe to flash. Reboot Device into Recovery. It asks you there is no OS installed confirm that with Swipe after that it asks if you want to install SuperSU.... click on DONT INSTALL
Step 7: You should be now in TWRP 3.0.2.0 now go to install flash Lineage OS, Gapps and SuperSU it should work.
Click to expand...
Click to collapse
Thank you so much! This worked like a charm. Now I've got it up and running, but I've got a problem. Google Play Books doesn't display any text in any book I open. It just shows blank pages. I've vaguely understood that this is some problem with the webview, but how do I fix it?
Encountered very weird issue when trying to install roms
Hi guys, I'm currently on 'Resurrection Remix M - v5.7.4' after trying to install 'LineageOS 13' which hung during installation on "Patching system image unconditionally" . I've also manged to install 'AOSiP KANG 5.5 - 7.1.1'; once. After managing to install it, I tried to install 'Lineage OS 13' again, but it still fails at the same spot. Now every time I try to install 'AOSiP KANG 5.5 - 7.1.1' in hangs on "flashing AOSiP" . So, I then tried 'Resurrection Remix M - v5.7.4', it worked and now I think I'm stuck on Remix. I'd like to install "LineageOS 13" as the new FoxyKernel only works on 'Lineage OS 13'. I've already merged the partitions and have been able to return to stock rom through the use of the miflash tool and fastboot. I've already tried flashing 'LineageOS 13 and 14' using 'twrp2.8.4 and 3.0.2' but both have failed I've also tried using 'CWM 6.0.5' but that failed as well. I've always wiped everything except the sdcard and usb when trying to install a new rom. Can someone please help me install 'Lineage OS 13' ?
#Note, after I failed each install I always returned back to stock and redid everything again.
~Update 6/3/17
I've just tried to install 'lineage OS 13.0 ' again and it failed yet again, now it seems that I can't reinstall 'Resurrection Remix M - v5.7.4' it hangs yet again on patching system unconditionally, which it did not the first time round. Furthermore, the back up I made previously of Resurrection Remix M - v5.7.4, fails to install and fails on "extractTarFork() process ended with ERROR: 255". Can some one please me.
~Update 7/3/17
Managed to install the new 'lineage OS 14.0'; screwed up the install, by installing 'foxykernel' before booting. Caused system to be stuck on lineage boot animation.... should have read the thread before attempting to install and as usual rom refuses to install again. Stuck at "Patching system image unconditionally". Managed to install 'AospExtended ROM V3.1' but system hung on 'verifying network configuration' and "Just a Sec..." screen; WiFi for other devices were ok no issues. Left it on for over 10 hours no change. Wiped dalvik/art cache and cache tried again but no such luck. Wiped data, but also no luck.
#Note, by this time I've given up on returning to stock, as it did absolutely nothing .
~Update 8/3/17
Managed to flash the new 'lineageOS13.0', wiped dalvik and cache, installed Gapps but system stuck on Mi logo on boot. Managed to install 'RR-N-v5.8.2-20170306' boots up fine... tried to install 'Foxy kernel 1.5.rc2'... wiped cache. Now stuck in boot loop... :Facepalm: should have read the instructions first... forgot to back up boot. :Facepalm:. Will have to wait for MM version of the rom or newer version. Tried 'AOSiP-5.5-KANG-mocha-20170306' for some reason it got stuck on boot loop, only shows mi logo.
~Update 19/3/17
Managed to flash the new 'lineageOS14.0[2017-03-12]' , installed 'Opengapps pico 20170314' found out that in order to be stable need to factory reset, then install Gapps, so that when first boot, account set up shows. Installed 'Foxy kernel 2.0.8', now antutu score "80000" ... found out that the backup for boot works. Installed TWRP 3.1.0 , but still cannot install a ROM more than once. All in all 'lineageOS14.0[2017-03-12]' very smooth now that Gapps stopped crashing.

Problem with flashing a custom rom (Vendor)

So i installed Pixel E as said in the forum post and videos and it was working fine, TWRP was fine and installed with no problems, then i went back to MIUI for the L1 certificate update and decided that i wanna try oxygen OS
i install TWRP like i did the first time but this time i didnt get the menu that says swipe to allow modifications, after that i went and mounted vendor and system like i did the first time, and i went to wipe the data i didnt find the vendor option there, it was weird and i thought there`s something wrong with the phone
i go back to the install, i install the disable force encyption file and try to install the rom, i get the success thingy
i restart and it says encrypting your phone and i boots back to recovery
can anyone help with that please? i tried 4 different roms all are the same
and how can i show the vendor option again?
OxygenOS Comes With A Modified Vendor So When You Flashing OOS You Need To Flash DFE Due To Encryption Problem.
Decrypt Your Data By Formatting internal Storage.
Go To Wipe format Data Type Yes Reboot to system.
Just Allow that modification when you decrypt your phone and flashing a Rom that TWRP modification sign comes.
When you wipe data system , Vendor Partition will be Automatically Wiped.
Flash Orange Fox Recovery You Will Also Get that Vendor Partition.
iHookar said:
So i installed Pixel E as said in the forum post and videos and it was working fine, TWRP was fine and installed with no problems, then i went back to MIUI for the L1 certificate update and decided that i wanna try oxygen OS
i install TWRP like i did the first time but this time i didnt get the menu that says swipe to allow modifications, after that i went and mounted vendor and system like i did the first time, and i went to wipe the data i didnt find the vendor option there, it was weird and i thought there`s something wrong with the phone
i go back to the install, i install the disable force encyption file and try to install the rom, i get the success thingy
i restart and it says encrypting your phone and i boots back to recovery
can anyone help with that please? i tried 4 different roms all are the same
and how can i show the vendor option again?
Click to expand...
Click to collapse
just download
https://mirror.akhilnarang.me/MIUI/beryllium/beryllium-9.4.8-9.0-vendor-firmware.zip
and flash it via twrp! and reboot
Olystem said:
OxygenOS Comes With A Modified Vendor So When You Flashing OOS You Need To Flash DFE Due To Encryption Problem.
Decrypt Your Data By Formatting internal Storage.
Go To Wipe format Data Type Yes Reboot to system.
Just Allow that modification when you decrypt your phone and flashing a Rom that TWRP modification sign comes.
When you wipe data system , Vendor Partition will be Automatically Wiped.
Flash Orange Fox Recovery You Will Also Get that Vendor Partition.
Click to expand...
Click to collapse
I did that and it worked, thanks but the swipe to allow modifications page still didn't appear, it booted right to main page of TWRP
YasuHamed said:
just download
https://mirror.akhilnarang.me/MIUI/beryllium/beryllium-9.4.8-9.0-vendor-firmware.zip
and flash it via twrp! and reboot
Click to expand...
Click to collapse
I downloaded Vendor firmware but it still gave me the same problem, what fixed it is installing DFE after the rom not before, thanks a lot appreciate you helping
iHookar said:
I did that and it worked, thanks but the swipe to allow modifications page still didn't appear, it booted right to main page of TWRP
Click to expand...
Click to collapse
That Sign Comes Only One Time.
Swipe To Allow Modification Means You will not getting any error while Flashing.
Check in Mount Partition System Keep Read Only If It's Enabled Simply Remove that Mark or Tick Reboot To System.

Errors after flashing TWRP

Hello
After flashing TWRP (twrp-umi-3.4.0-2.img - Team Win Recovery Project) with and without Formatting Data, which anyways triggers some errors (see picture), clicking on Install I am shown /sdcard folder, and when I go up one level I see a bunch of folders but not Internal Storage. So I am unable to use TWRP.
I had identical results using twrp_umi.img also.
USB OTG is not working.
Please help. I have no idea what to do next.
Hancoz said:
Hello
After flashing TWRP (twrp-umi-3.4.0-2.img - Team Win Recovery Project) with and without Formatting Data, which anyways triggers some errors (see picture), clicking on Install I am shown /sdcard folder, and when I go up one level I see a bunch of folders but not Internal Storage. So I am unable to use TWRP.
I had identical results using twrp_umi.img also.
USB OTG is not working.
Please help. I have no idea what to do next.
Click to expand...
Click to collapse
hi
flash twrp 3.4.1b-0313
that one i use an works fine also with decrypt
Thanks for your suggestion, but the closest I can get is TWRP-3.4.1B-0218. Where did you find the twrp 3.4.1b-0313 version? And did you format data or not?
Hancoz said:
Thanks for your suggestion, but the closest I can get is TWRP-3.4.1B-0218. Where did you find the twrp 3.4.1b-0313 version? And did you format data or not?
Click to expand...
Click to collapse
i have it on my pc
i can upload it for u Tomorrow
yes i format data
I found it, and tomorrow I'll try it. Many thanks.
Sorry to disturb you again, but I read contrasting procedures on how to flash a ROM, on MI 10.
Some say:
- flash TWRP
- format data
- flash ROM.
Others say:
- flash TWRP
- flash ROM
- format data.
Some more:
- flash TWRP
- wipe dalvik and cache (no need to format data anymore)
- flash ROM.
What did you do exactly?
BTW do you know the TWRP psw?
Many thanks for your support.
Hancoz said:
Sorry to disturb you again, but I read contrasting procedures on how to flash a ROM, on MI 10.
Some say:
- flash TWRP
- format data
- flash ROM.
Others say:
- flash TWRP
- flash ROM
- format data.
Some more:
- flash TWRP
- wipe dalvik and cache (no need to format data anymore)
- flash ROM.
What did you do exactly?
BTW do you know the TWRP psw?
Many thanks for your support.
Click to expand...
Click to collapse
twrp pasw 152v
format data
reboot recovery
connect phone to pc
put zip file ro phone
wipe cache an dalvik cache
install zip
wipe again
reboot recovery
wipe again
go to reboot
power off the phone
now wen its shut down power it on
an it shut boot
it will take a litle time
I tried many version of wzsx150’s TWRP, the latest being 3.4.1b-0313, but the result is always the same (whether fastboot flash recovery twrp_umi.img or fastboot boot twrp_umi.img).
If I format data there are errors (first picture). If I go directly to install (with or without wipe dalvik and cache) I am anyway unable to see the folders of Internal Storage (second picture). So the TWRP is useless and I am stack with a China ROM device, which is not my first desire.
BTW password is incorrect (third picture), though I doubt it has something to do with the shortcomings.
Please I need a thoughtful help.:crying:
Here the forgotten pictures.
the passwd for decryption
is the one u hade to unlock ur phone before u try flashing it
Whether I use the psw for decrypting (Mount/Decrypt Data) or right at the start, it is always refused. I don’t know if this is the reason why in Install the /sdcard folder has only 0 and TWRP subfolders, or not. In any case there is no way I can flash a thing.
Hancoz said:
Whether I use the psw for decrypting (Mount/Decrypt Data) or right at the start, it is always refused. I don’t know if this is the reason why in Install the /sdcard folder has only 0 and TWRP subfolders, or not. In any case there is no way I can flash a thing.
Click to expand...
Click to collapse
if u dont incert the correct passwd u wont be able to do anything
The only password that I have is that you gave me: 152v. And it does not work.
Hancoz said:
The only password that I have is that you gave me: 152v. And it does not work.
Click to expand...
Click to collapse
didnt u have one ro unlock the lockscreen on miui11
I don't understand what you mean. Anyway I did the bare basic of setting on the stock China ROM. No fingerprint, no PIN, no Pattern, no Password or any other lock. In Developer options USB debugging is ON.
Hancoz said:
I don't understand what you mean. Anyway I did the bare basic of setting on the stock China ROM. No fingerprint, no PIN, no Pattern, no Password or any other lock. In Developer options USB debugging is ON.
Click to expand...
Click to collapse
hmm then i shutten ask for passwd
have u try not enter anything
After I reinstalled Stock ROM with MiFlash, and flashed TWRP, the psw disappeared completely and was able to flash EU ROM V12, But now I am stuck in TWRP. No way to get out of it.
And if I try to wipe I get the error: failed to mount '/data' (see pciture).
Hancoz said:
And if I try to wipe I get the error: failed to mount '/data' (see pciture).
Click to expand...
Click to collapse
now u have to do like this
format data
reboot recovery
connect phone to pc
put zip file to phone
wipe cache an dalvik cache
install zip
wipe again
reboot recovery
wipe again
go to reboot
power off the phone
now wen its shut down power it on
an it shut boot
it will take a litle time
Success! But only after I formatted data after flashing the EU ROM. I don't know how to thank you for your support. You were very helpful.

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