• XDA Forums have been migrated to XenForo. We are aware of several issues including missing threads, logins not working, and more. To discuss, use this thread.

[How to] Decrypt data on P10 and other kirin devices (EMUI, OREO and PIE roms)

sfoot13

New member
Apr 24, 2013
587
235
0
www.flickr.com
Well, first of all, this is not my work, I'm just sharing this guide that worked for me, it should work on any kirin device.

I have a P10 (VTR-L29C432), don't ask me if it works on X device, just try it for yourself as I did.

1) You need an unlocked bootloader and FRP
2) If you don't want to lose any data, backup your internal memory, because you'll need to do some wipes on stock recovery.
3) Reboot into TWRP and flash the "Huawei_remove_encyption_data_2.zip", here's the link: https://forum.xda-developers.com/mate-9/how-to/guide-how-to-decrypt-data-mate-9-hi3660-t3834748, you can use blackball's TWRP (p10 plus) or twrp from Honor 9 lite forum (both works on any emui and pie's rom, but you'll need and sdcard in order to flash the file)
4) After that, reboot into bootloader and flash your stock recovery and wipe data and cache
5) Reboot again into bootloader and flash again your favorite Twrp.

Some Twrps:
https://forum.xda-developers.com/showpost.php?p=77262856&postcount=166 P10 plus TWRP
https://forum.xda-developers.com/9-lite/development/recovery-twrp-3-2-1-0-t3789306 Honor 9 Lite TWRP
https://forum.xda-developers.com/honor-view-10/development/recovery-twrp-3-2-1-0-t3769917 Honor View 10 TWRP
https://forum.xda-developers.com/p10-plus/development/recovery-twrp-3-2-1-0-oreo-t3734993 P10 plus TWRP (blackball)
https://forum.xda-developers.com/android/themes/theme-twrp-materialised-dark-light-play-t2915584 Themes for TWRP, download and flash as a normal zip.

If your device isn't hi3660 (kirin 960), you'll need to do it manually, first go to vendor/etc and look for a file called "fstab......" (you'll need to remember that name), go to the zip file that you previously downloaded and extract it, go to the folder vendor/etc and you'll see the fstab.hi3660 file, rename it with the name of your fstab and paste it into vendor/etc (if it ask for overwrite, hit the YES button), reboot and do the wipes on stock :D


If it was useful for you, go and say thanks / donate to @micky387 for their work and to the Devs that made possible the tools that we use. :highfive:
 
Last edited:

doktor29

Active member
Dec 21, 2010
403
60
28
for me it wont work... TWRP stuck at TWRP screen
Edit
ok, i flashed recomended recovery from tutorial and now works :)
thanks
 
Last edited:

sfoot13

New member
Apr 24, 2013
587
235
0
www.flickr.com
in order to make any twrp working, first you need to reboot into fastboot and type fastboot -w, after that flash any twrp and follow the steps, I tried it with many recoveries, even with p10plus version.
Actually I'm using one from PRA forum, it works with custom roms
but internal memory is encrypted, but is not a problem for me.
 

haddadadam35

New member
Oct 5, 2014
9
1
0
Well, first of all, this is not my work, I'm just sharing this guide that worked for me, it should work on any kirin device.

I have a P10 (VTR-L29C432), don't ask me if it works on X device, just try it for yourself as I did.

1) You need an unlocked bootloader and FRP
2) If you don't want to lose any data, backup your internal memory, because you'll need to do some wipes on stock recovery.
3) Reboot into TWRP and flash the "Huawei_remove_encyption_data_2.zip", here's the link: https://forum.xda-developers.com/mate-9/how-to/guide-how-to-decrypt-data-mate-9-hi3660-t3834748, you can use blackball's TWRP (p10 plus) or twrp from Honor 9 lite forum (both works on any emui and pie's rom, but you'll need and sdcard in order to flash the file)
4) After that, reboot into bootloader and flash your stock recovery and wipe data and cache
5) Reboot again into bootloader and flash again your favorite Twrp.

Some Twrps:
https://forum.xda-developers.com/showpost.php?p=77262856&postcount=166 P10 plus TWRP
https://forum.xda-developers.com/9-lite/development/recovery-twrp-3-2-1-0-t3789306 Honor 9 Lite TWRP
https://forum.xda-developers.com/honor-view-10/development/recovery-twrp-3-2-1-0-t3769917 Honor View 10 TWRP
https://forum.xda-developers.com/p10-plus/development/recovery-twrp-3-2-1-0-oreo-t3734993 P10 plus TWRP (blackball)
https://forum.xda-developers.com/android/themes/theme-twrp-materialised-dark-light-play-t2915584 Themes for TWRP, download and flash as a normal zip.

If your device isn't hi3660 (kirin 960), you'll need to do it manually, first go to vendor/etc and look for a file called "fstab......" (you'll need to remember that name), go to the zip file that you previously downloaded and extract it, go to the folder vendor/etc and you'll see the fstab.hi3660 file, rename it with the name of your fstab and paste it into vendor/etc (if it ask for overwrite, hit the YES button), reboot and do the wipes on stock :D


If it was useful for you, go and say thanks / donate to @micky387 for their work and to the Devs that made possible the tools that we use. :highfive:
Why would you need to unlock the data ? :)
 

pcportugal

New member
Apr 4, 2008
6
1
0
Do you know MP? Just asking because it's out of context. If you want to teach lessons, why do it on public instead of MP which is ethical.

And yes I'm doing the same mistake, but I hope to prevent many.
 

hansiohne

New member
May 25, 2016
17
2
0
Will I be able to enrcypt my system on a ROM Basis afterwards? I want an encrypted device but I also want to be able to do backups in TWRP.
 

zgfg

Well-known member
Oct 10, 2016
4,298
1,827
113
Will I be able to enrcypt my system on a ROM Basis afterwards? I want an encrypted device but I also want to be able to do backups in TWRP.
I experimented similarly on two P9 phones with Oreo, and was able to encrypt back by doing:
Install latest + Factory reset from eRecovery

Of course, before eRecovery, you must revert to stock Recovery (and stock eRecovery, Kernel if they were flashed over) and unroot (stock Ramdisk) - without you risk a brick

Edit: Also, while having decrypted Data and internal memory, successfully received an OTA patch (Huawei stopped updating but sent a smalll OTA patch to the existing firmware)
 
Last edited:

hansiohne

New member
May 25, 2016
17
2
0
I experimented similarly on two P9 phones with Oreo, and was able to encrypt back by doing:
But as I said I don't want to encrypt back because if I had no need to permanently decrypt (for TWRP backup reasons, I have berkeley and encryption doesn't work there on TWRP) I wouldn't do it. Instead, I want to decrypt and then do a normal device encryption in AICP. Or am I getting it wrong and it's the same type of encryption in the end?
 
Our Apps
Get our official app! (coming soon)
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone