[MOD] Decrypt /data for emui 8 - Honor 9 Lite ROMs, Kernels, Recoveries, & Other D

Needed:
Unlocked Honor 9 lite on emui 8 and twrp
I have tested this and found it working on 7x should work on 9 lite too.
All you need to do is copy data/hw_init to your external sd
Then format data in twrp and flash the zip attached to this thread
Reboot
If it boots to system, then it's done
If it boots to erecovery and asks you to wipe data, then wipe data and boot to twrp
Make a data backup, format data, restore the back up you just made
Copy back hw_init from external sd to data
Reboot
Your device will be decrypted
more detailed instructions will follow

Related

will this work? twrp backup/restore

I'm on 4.7.6 and backup everything with twrp except system (use system img instead) then flash ob1 and say I don't like it. Can I clean flash 4.7.6 full zip then re flash twrp then restore the backup? Will this work without data loss?
I didn't test it myself but it definitely should. Make sure to use the same TWRP you backed it up with at the beginning and keep in mind that Non-OxygenOS Oreo builds might use keystore3 (making some TWRPs unable to decrypt /data).
Remove any PIN or password before you restore the backup and you should be fine
And don't forget that TWRP doesn't save the SD card or internal storage. Only /data without /data/media
Macusercom said:
I didn't test it myself but it definitely should. Make sure to use the same TWRP you backed it up with at the beginning and keep in mind that Non-OxygenOS Oreo builds might use keystore3 (making some TWRPs unable to decrypt /data).
Remove any PIN or password before you restore the backup and you should be fine
And don't forget that TWRP doesn't save the SD card or internal storage. Only /data without /data/media
Click to expand...
Click to collapse
Yeah I'll be sure to remove the pin/pw. I'm using cordworkx uniserval twrp. Seems to be fine on 4.7.6 with flashing things.
Yeah data is what I need backed up. /data/media shouldn't be wiped anyway in any of this? I'll make a backup on my pc just in case.
Thanks for the reply

Bootloop or data memory crash when I install PixelExperience

I Have PE last 3 weeks on my mi6
And now I have xiaomi.eu, what I do:
Format all and wipe all > install framework > install PE > go to fastboot "fastboot erase userdata"/or no/restar to recovery/or no/format data again, format anything again (what I can format of course ) I do anything
And every time when I go to /system after install PE this folder is clear and data is "destroyed" cant format data, I must change data to ext2 and back to ext4 and I can format any partition...
I have no idea what can I do now...
But xiaomi.eu is installing no problem
I try install PE via Red Wolf and twrp from topic for oreo, and any for 8.1
Nothing
Every time I have stuck on bootanimation (G and loading)

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!

Unable decrypt FBE device

I flash rom EU stable v12.0.3 on my redmi note 9 pro 5g, after time of used, i wiped dalvik, cache, data without sign out of my google account. The system reboot and show a notice that my decive was not certified by play protect.
I flash china rom v12.0.3 by miflash and flash twrp 3.5.2. But it cannot decrypt storage.
I flash china rom and twrp again, the same result. What's happen with my device and what can i do now. Thanks for your help so much.
Did you format data? This is different from wipe data
Format data is the option on the right next to advanced wipe option.
Formatting data removes encryption so backup anything on internal storage first
After formatting data reboot back to recovery
If all else fails flash stock firmware via fastboot and start again
TheFixItMan said:
Did you format data? This is different from wipe data
Format data is the option on the right next to advanced wipe option.
Formatting data removes encryption so backup anything on internal storage first
After formatting data reboot back to recovery
If all else fails flash stock firmware via fastboot and start again
Click to expand...
Click to collapse
After many times format data and try to connect with 3 pcs, i had an eu dev rom on my device. Because stable eu rom still notice about play protect. Hope that next eu stable rom will fix it.
Thanks bro alot!

[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