data encrypted - Xiaomi Redmi 5A Questions & Answers

i got a problem with the encryption of the redmi 5a. in twrp data can not be mounted. only if i change the format from ext4 to ext2 and back I can flash a zip but after flashing a new rom data is encrypted agian.

PierceB said:
i got a problem with the encryption of the redmi 5a. in twrp data can not be mounted. only if i change the format from ext4 to ext2 and back I can flash a zip but after flashing a new rom data is encrypted agian.
Click to expand...
Click to collapse
Format data

how can i format data? did try it again with twrp but after reboot to andriod and back to twrp data is encrypted again. the error is shown in the attachment

PierceB said:
how can i format data? did try it again with twrp but after reboot to andriod and back to twrp data is encrypted again. the error is shown in the attachment
Click to expand...
Click to collapse
Click on format and type 'yes'. Flash no verity after that and you should be able to boot, I THINK.

adityam0338 said:
Click on format and type 'yes'. Flash no verity after that and you should be able to boot, I THINK.
Click to expand...
Click to collapse
yes i already did this 2-3 times did boot into trwp again then everything is fine but after boot to LOS 16 data is encrypted again.

PierceB said:
how can i format data? did try it again with twrp but after reboot to andriod and back to twrp data is encrypted again. the error is shown in the attachment
Click to expand...
Click to collapse
Try Orange fox recovery

Did also try Orange fox recovery but no difference.
Now i did unlock a second redmi 5a an got the same problem.
Any idea what else to do?
Did try official-pbrp-xiaomi-redmi-5a-riva with this recovery its working fine!

Related

TWRP crashing on startup with blue led and buzzing

Well, I accidentally formatted my phone a few days ago, connected to pc and flashed los 14.1 and gapps.
Now it turns out whenever I hold down the power and volume buttons it takes me to the TWRP teamwin project screen, then freezes with a blue led and a buzzing noise without taking me to the installation screen
Any help/suggestions on what I should do as I still want to download a oreo custom rom later?
Thanks,
B50Corei5
I had that problem, fixed it by flashing the stock kernel (boot.IMG) through fastboot.
I had that problem, also reflashed full stock ROM via fastboot (systemchunk + boot + recovery + cache + userdata even preload in a second time)
Now I can't flash cust recovery, but I can boot in it.
I can flash, via recovery, a custom ROM but can't boot in it.
Any idea?
Same problem
I am having the same problem...I am on lineage os latest unofficial by wonder wicked witch...and whenever I clear data and cache by twrp their is a buzzing sound and blue led...pls help me
sidsob said:
I am having the same problem...I am on lineage os latest unofficial by wonder wicked witch...and whenever I clear data and cache by twrp their is a buzzing sound and blue led...pls help me
Click to expand...
Click to collapse
Take complete backup of your internal storage using file manager present in recovery mode. "Format data" or change" format system partition" of data partition. try couple of times to format if first time format not working.
Isn't there any other method by changing recovery? By flashing it again
Pls tell some other method
sidsob said:
Pls tell some other method
Click to expand...
Click to collapse
For internal storage backup:
Recovery - File manager method did not work?
Change system partition format of data partition to some other format and revert it to original. It works perfectly.
nothing is happening
Wonder Wicked Witch said:
For internal storage backup:
Recovery - File manager method did not work?
Change system partition format of data partition to some other format and revert it to original. It works perfectly.
Click to expand...
Click to collapse
pls help me ....i have formatted but it says encyption unsuccsessful and it only boots into linage os boot animation...i dont know what to do ...pls i beg u pls help me somehow
sidsob said:
pls help me ....i have formatted but it says encyption unsuccsessful and it only boots into linage os boot animation...i dont know what to do ...pls i beg u pls help me somehow
Click to expand...
Click to collapse
I formatted data partition by using wipe->format data. U need to type "yes" to confirm, because entire internal sdcard will be deleted. So make sure u have rom and other zip files saved on external sdcard.
Then i used advanced wipe->repair/change filesystem and changed it to ext4 and then back to f2fs.
2nd time i installed los, i made sure not to set up a pin after 1st boot during rom setup, then tried to reboot into recovery, but ended up with black screnn + blue led. I tried to reinstall twrp via fastboot - no success. Then i formatted data partition via fastboot, which made me boot into recovery again.
I still dont get why and when blue led happens or encryption fails although ive never seen a "encryption failed" message. Only the blue led...
Thanks guys for the help, got it sorted by flashing stock ROM in fast boot ?
sidsob said:
pls help me ....i have formatted but it says encyption unsuccsessful and it only boots into linage os boot animation...i dont know what to do ...pls i beg u pls help me somehow
Click to expand...
Click to collapse
Fixed it?
Wonder Wicked Witch said:
Fixed it?
Click to expand...
Click to collapse
Maybe change data path to exe4?
Data partition
b50corei5 said:
Maybe change data path to exe4?
Click to expand...
Click to collapse
In order to fix this, you have to do a data wipe via fastboot and then flash twrp again. If you are coming from stock rom, you need to change data partition to ext4 (by default it;s f2fs) and it should work fine. I think that f2fs has its advantages, but twrp does not seem to support it. Maybe on a future update

TWRP Unable to mount Data HELP!

When i flashed Stock Rom 8.0 to my phone it boot normal. Then i flash TWRP made for my device. Downloaded supersu and going to flash it but then in the end it says Unable to unmount or mount i forgot sorry!I see that my internal storage is 0MB in TWRP but its not! So it seems like TWRP didnt encrypt my data or what? I flashed stock again cuz i got bootloop after that! Than flashed TWRP again and Internal storage is 0MB! HELP!
You have to format (not wipe) /data in TWRP then it will work, although you will lose all data. TWRP can't mount Samsung encrypted partitions.
makeyourself said:
You have to format (not wipe) /data in TWRP then it will work, although you will lose all data. TWRP can't mount Samsung encrypted partitions.
Click to expand...
Click to collapse
Lol It working Thanks you! one more issue! I flashed super su and no verity no encrypt and when reboot i have Super Su installed! Okay so now if i want to flash something again i need to format again ? Cuz now i get same errors! Anyway thanks you so much i have rooted samsung galaxy a5 2017 8.0 Now!
gogo9211 said:
When i flashed Stock Rom 8.0 to my phone it boot normal. Then i flash TWRP made for my device. Downloaded supersu and going to flash it but then in the end it says Unable to unmount or mount i forgot sorry!I see that my internal storage is 0MB in TWRP but its not! So it seems like TWRP didnt encrypt my data or what? I flashed stock again cuz i got bootloop after that! Than flashed TWRP again and Internal storage is 0MB! HELP!
Click to expand...
Click to collapse
until twrp 3.2.1-0 I think I did not have full support for samsung 8.0, I used twrp 3.2.2-0, and the /data is getting decrypted even after reboot.
caiquess95 said:
until twrp 3.2.1-0 I think I did not have full support for samsung 8.0, I used twrp 3.2.2-0, and the /data is getting decrypted even after reboot.
Click to expand...
Click to collapse
Really? Your internal doesn't show 0MB and you can backup data partition with TWRP? I didn't think it was TWRP related... that would be awesome.
What did you do? Only format data or did you flash anything?
gogo9211 said:
Lol It working Thanks you! one more issue! I flashed super su and no verity no encrypt and when reboot i have Super Su installed! Okay so now if i want to flash something again i need to format again ? Cuz now i get same errors! Anyway thanks you so much i have rooted samsung galaxy a5 2017 8.0 Now!
Click to expand...
Click to collapse
I think you had same issue as mine
Check this out
https://forum.xda-developers.com/samsung-a-series-2017/help/root-issues-oreo-t3800852
makeyourself said:
You have to format (not wipe) /data in TWRP then it will work, although you will lose all data. TWRP can't mount Samsung encrypted partitions.
Click to expand...
Click to collapse
I've tried this "solution" several times and the error come back ever...
How to fix this DEFINITIVELY???
[TOOL][SCRIPT][A520X|A720X] Repartition tool for treble support
UPDATE repartitioner v1.2: Google Drive | Androidfilehost (Will resize your partitions and patch recovery) RecoveryPatcher: Google Drive | Androidfilehost (Will ONLY patch your recovery for treble support) Changelog Removed TWRP version check...
forum.xda-developers.com
If you have a5/a7 2017 you can edit this script to reformatting your data partition! (if you don't know how edit it can be very dangerous to your phone)

Problem after flashing wth global rom

Hello,
I get Xiaomi mix 2s global with:
-Unblocked bootloader
-Installed OrangeFox Recovery
-Installed some Android 10 pixel experience rom
I wanted back to original global rom with stock recovery and reblock bootloader, so i download Global Stable ROM V11.0.5.0.QDGMIXM, put to internal storage and install from OrangeFox.
And now, when I turn on the smartphone, it’s starts, restart and go again to OrangeFox recovery.
In log I have: “Android Rescue Party trigger! Wipe data and caches and/or clean-flash you ROM!"
OrangeFox disables forced encryption by default, and now I need to enabled encryption? How to do it?
So, How to fix it?
I want to back to original global rom with stock recovery and reblock bootloader, bu first I have t turn on system.
Thanks
EDIT:
After installatin PixelExperience_polaris-10.0-20200528-1111-OFFICIAL from OrangeFox, smartphone starts normally, now I want to back to stock rom, recovery and reblock bootloader.
If your bootloader unlocked try formatting your data in orange fox recovery and reboot and see if that fixes it. Just remember formatting data partition wipes everything on your device so anything you want to save be sure and transfer over to your PC first.
doesntwork
flash713 said:
If your bootloader unlocked try formatting your data in orange fox recovery and reboot and see if that fixes it. Just remember formatting data partition wipes everything on your device so anything you want to save be sure and transfer over to your PC first.
Click to expand...
Click to collapse
I got the same error - Android Rescue Party trigger..." and bootlop.
EDIT:
But I wiped:
Dalvik / ART Cache
Cache
System
Data
Didn't wipe: Internal storage and Vendor.
After that, i installed Global stable V11.0.5.0.QDGMIXM and get the same error, but some settings have been saved - for example my pattern for unlocking.
EDIT:
I did: wipe all, reboot to twrp, flash ROM, and when I try format data, I get error:
Formatting Data using mke2fs...
mke2fs -t ext4 b...
Proces ebded with ERROR: 1
Unable to wipe Data.
Unable to format to remove encryption.
EDiT3:
Success!
I tried once more, and it's ok.
Solution:
1. Wipe all via recovery
2. reboot to recovery
3. flash rom
4. Format data partition (format, no wipe, if mke2fs doesn't work, try with rm-f)
5. Reboot system.
After that everything is ok, at the end uploading stock recovery via adb went without a any problem.
Thanks!
Just to help many others. The trick here, is to format data, not just wipe data from TWRP. You need to hit format data from the wipe menu and type "yes" to confirm. Some things need to be said in plain English.
MetallicGR said:
Just to help many others. The trick here, is to format data, not just wipe data from TWRP. You need to hit format data from the wipe menu and type "yes" to confirm. Some things need to be said in plain English.
Click to expand...
Click to collapse
Thank you so much. I had formated the internal memory and working, no bootloop into recovery.
master_lam said:
Thank you so much. I had formated the internal memory and working, no bootloop into recovery.
Click to expand...
Click to collapse
i did all the steps you did and i still had problems, any other solution?
Forget it, your steps worked for me too!

Internal Storage

Help me please.
My phone is in a bootloop and twrp cant mount /data. I tried formatting and changing file system but it all failed. I cant flash rom in MiFlash and it says "flash xbl error" or "FAILED (File is too large to download)"
What did you do before the phone went into bootloop? Also did you format on TWRP via Wipe -> Format Data?
just format data and install rom through micro sd if your internal storage not working in twrp
kek-mex said:
What did you do before the phone went into bootloop? Also did you format on TWRP via Wipe -> Format Data?
Click to expand...
Click to collapse
first my phone went to edl then i paid someone to flash it with ufi and it failed while it is flashing user data (he refunded my money though) then my phone booted then i flashed twrp in fastboot. Yes I also did the formatting and failed
nneko904 said:
just format data and install rom through micro sd if your internal storage not working in twrp
Click to expand...
Click to collapse
I've tried that already but it really doesn't work for me:crying:
re install twrp(3.3.1-10) ,and vbmeta.img and reboot to twrp again
loopypalm said:
re install twrp(3.3.1-10) ,and vbmeta.img and reboot to twrp again
Click to expand...
Click to collapse
sadly it didn't work for me
I forgot to attach these.
/s/h/t said:
first my phone went to edl then i paid someone to flash it with ufi and it failed while it is flashing user data (he refunded my money though) then my phone booted then i flashed twrp in fastboot. Yes I also did the formatting and failed
Click to expand...
Click to collapse
Alright. Im not that experienced with edl. Can you send picture of Wipe -> Advanced Wipe that we can see all of the partitions? Maybe also if you can send pictures of every partitions details by ticking them and then going to "Repair or Change File System" and taking screenshots? Don't know if this is gonna help, but it's worth a try.
kek-mex said:
Alright. Im not that experienced with edl. Can you send picture of Wipe -> Advanced Wipe that we can see all of the partitions? Maybe also if you can send pictures of every partitions details by ticking them and then going to "Repair or Change File System" and taking screenshots? Don't know if this is gonna help, but it's worth a try.
Click to expand...
Click to collapse
Thanks for responding..
/s/h/t said:
Thanks for responding..
Click to expand...
Click to collapse
Try changing the filesystem of /data to ext4, and then back to f2fs, and then rebooting into TWRP. I've had this problem before, and that worked for me.
kek-mex said:
Try changing the filesystem of /data to ext4, and then back to f2fs, and then rebooting into TWRP. I've had this problem before, and that worked for me.
Click to expand...
Click to collapse
It failed sadly.
/s/h/t said:
It failed sadly.
Click to expand...
Click to collapse
That's pretty weird. Sadly I have no more ideas. Good luck with your problem!
kek-mex said:
That's pretty weird. Sadly I have no more ideas. Good luck with your problem!
Click to expand...
Click to collapse
Thanks for you help!:angel:

[Q] How to decrypt data partition without losing data?

Hi there,
My phone doesn't boot to android and returns to recovery every time, after doing a dirty installation from ArrowOS 11 encrypted to 12 also encrypted.
I made a backup, but I selected the internal storage by fault.
And now TWRP doesn't ask me for a password, so I can't decrypt the data partition.
What I tried to fix the issue:
I tried to install more than one TWRP version included [Orange fox, PBRP, and a one called twrp_ginkgo-willow-3.4A9_23-12-2020_BL.img (this was one I used before with ArrowOS 11]
installed the last working firmware and the latest ArrowOS 11 as I can't find older versions.
decrypting the data with this command: "ADB shell twrp decrypt mypincode"
The last time this happened to me, I followed those steps:
I had to wipe all partitions and clean install the same previous ROM
Then I created the same pin code as my previous one
I created a backup of boot, Dtbo, and recovery
restored my data backup through TWRP
restored the boot, Dtbo, and recovery
wiped the Dalvik / Art Cache and Cache
The problem now is that I created the backup on the internal storage by fault. If someone made the same pin code as mine and created a backup of the boot, Dtbo, and recovery for me is it going to work?
Is there anything else I can do to recover my data?
QuietLife said:
The problem now is that I created the backup on the internal storage by fault. If someone made the same pin code as mine and created a backup of the boot, Dtbo, and recovery for me is it going to work?
Click to expand...
Click to collapse
No, decryption key is unique
QuietLife said:
Is there anything else I can do to recover my data?
Click to expand...
Click to collapse
If you already (sometime in the past) flashed DFE wih format data , then just flash DFE and clear chache/dalvik + reboot
if you never did it then i'm afraid there is no solution ,you have to format
Ask in DFE topic to make sure
loopypalm said:
No, decryption key is unique
If you already (sometime in the past) flashed DFE wih format data , then just flash DFE and clear chache/dalvik + reboot
if you never did it then i'm afraid there is no solution ,you have to format
Ask in DFE topic to make sure
Click to expand...
Click to collapse
I didn't use it, but last time I didn't use it also and I restored my data, so I think I might have a chance.
Is there a way to backup the current encrypted data partition to a PC or a memory card?
QuietLife said:
I didn't use it, but last time I didn't use it also and I restored my data
Click to expand...
Click to collapse
Some roms does not encrypt data by default, that was the case i think
QuietLife said:
Is there a way to backup the current encrypted data partition to a PC or a memory card?
Click to expand...
Click to collapse
I never tried it (i never encrypt) so i'm not sure
you can change the bkp path in Ofox to USB (OTG) or SDCard and see if it work

Categories

Resources