FORUMS

[TWRP][P9][3.1.1-1][EMUI 5.x/AOSP N][DECRYPTION SUPPORT]

1,767 posts
Thanks Meter: 7,033
 
By OldDroid, Recognized Developer on 1st March 2017, 08:56 PM
Post Reply Email Thread



This is only for Huawei P9 (EVA)
Code:
OpenKirin presents unofficial TWRP for stock EMUI 5.x with decryption support.
Intended for usage on stock emui 5.x in combination with unlocked bootloader and
modded boot image with disabled dm-verity (depending on what you want to do).
Code:
WARNING: since 3.1.0-2 update we've enabled image flashing to special partitions -
not just /recovery or /boot partition.
That means your device could be bricked in a few seconds if you do not pay attention
or don't know what you're doing. (Noobs please stay away out of this section!)

Installation Instructions
Code:
1. Enter fastboot mode on unlocked device
2. flash recovery using the following command: fastboot flash recovery twrp-3.1.1-1-eva.img
3. reboot to recovery!
Rooting Methods
Code:
1. Official SuperSU (not just 2.82+)
1. Ensure you are running stock kernel from b380+
2. Tick the option "Keep vendor partition mounted" inside OpenKirin Settings
3. download and install official SuperSU
4. Enjoy!

2. Custom SuperSU
1. Make sure the device running stock EMUI 5.x boot.img
2. flash this modded SuperSU 2.79: download here
3. enjoy root :)
NOTE: this is for every device (except kirin 960 based) running emui 5.x without loop support.

3. Magisk
1. ensure you are running a kernel from b380 or later
2. flash magisk
3. enjoy root & safetynet (read note)
NOTE: Magisk Hide is a known problem on Huawei/Honor devices.
Make sure you are not rebooting/turning off your device with Magisk Hide enabled!
You may face a broken fingerprint scanner, do not worry,
simply disable magisk hide and reboot - fps works again!



Downloads

FAQ
Code:
Q: What's the code status?
A: 10. June 2017

Q: which P9 models are supported?
A: every model should be supported.

Q: Can i use this TWRP with decrypted /data?
yes, you can! (have a look at the instructions in FAQ)

Q: Can i install LOS or AOSP based roms with this TWRP?
yes, you can! (please follow the installing procedure in the corresponding rom thread)

Q: Can i install Magisk?
A: Every ROM based upon b380+ kernel should now include proper loop support.
Since 3.1.0-3 you are able to flash Magisk through TWRP (recovery kernel  has been updated)

Q: Does official SuperSU work?
A: Yes, even though chainfire included a fix in his upcomming version,
you can use every version of it, just check the "Rooting Instructions" section.

Q: ETAs?
A: No.
Going back from decrypted -> encrypted?
Code:
1. Format /data inside of TWRP
2. Flash eRecovery & Kernel from your currently installed Stock ROM Build
3. Do a factory reset inside of eRecovery
5. Let device boot up
6. Install your current firmware hw_data package & SuperSU using TWRP again

Want to decrypt? No problem.
Code:
1. Format /data inside of TWRP
2. Flash a kernel with forceencrypt disabled
3. bootup your device



Special Thanks

XDA:DevDB Information
TWRP, Tool/Utility for the Huawei P9

Contributors
OldDroid, surdu_petru, XePeleato
Source Code: https://github.com/OpenKirin


Version Information
Status: Stable

Created 2017-03-01
Last Updated 2017-06-11
The Following 46 Users Say Thank You to OldDroid For This Useful Post: [ View ]
1st March 2017, 08:56 PM |#2  
OldDroid's Avatar
OP Recognized Developer
Flag Berlin
Thanks Meter: 7,033
 
Donate to Me
More
Changelog
Code:
TWRP 3.1.1-0
* bump up TWRP version to 3.1.1
* fix backup of /version
* use device specific and updated prebuilts (+kernel)
* remove the ability to flash images to ext4 mounted partitions

TWRP 3.1.0-3
* kernel updated for proper loop support
* magisk can now be installed and is supported by every rom running b380+ kernel (tested on b383)
* native_package.xml has been changed to device specific version

TWRP 3.1.0-2
* Add support for NTFS formatted MicroSD cards or OTG drives
* Enabled direct image flashing to special partitions
(be careful when using it - one wrong klick means brick in a second!)
* TWRP is now compatible with AOSP based ROMS (LineageOS)
and decrypted Stock ROMS, transition from Stock to LOS is possible.
* Correct versioning - Device version is now comming from the common base.
* 3650-common: introduce init.recovery.hi3650.power.rc for better power handling

TWRP 3.1.0-1
* proper handling of decryption (improves booting time by ~10 seconds)
* do not wipe /data/hw_init during /data wipe or factory reset to prevent system errors
* cleanup ramdisk, reduced image size by 10mb

TWRP 3.1.0-0
* add the ability to format oem specific partitions
* add back f2fs support so we can format /data as f2fs
* bump up twrp version to 3.1.0
The Following 14 Users Say Thank You to OldDroid For This Useful Post: [ View ]
1st March 2017, 09:39 PM |#3  
Junior Member
Thanks Meter: 5
 
More
I have a p9 with b378 rooted and a working version of twrp (no data encryption), is it possible to install this thru my twrp?
1st March 2017, 09:53 PM |#4  
Senior Member
Thanks Meter: 663
 
Donate to Me
More
Quote:
Originally Posted by frenzissi

I have a p9 with b378 rooted and a working version of twrp (no data encryption), is it possible to install this thru my twrp?

Yes, should be fine
2nd March 2017, 01:53 AM |#5  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by Atarii

Yes, should be fine

I can confirm this works fine
2nd March 2017, 03:35 AM |#6  
scaniathe's Avatar
Senior Member
Flag Wadowice
Thanks Meter: 79
 
More
Thanks

<<<by scaniathe>>>
2nd March 2017, 07:16 AM |#7  
Senior Member
Thanks Meter: 26
 
More
Thank you for your effort. It installed flawless on my L19C432 with B378.
I tried to root it but it failed. Chainfire's latest zip rebooted my phone and phh's ended with error 1.

LE: I flashed @Atarii B378 img and now I am rooted. AdAway is working as expected. Thank you!
2nd March 2017, 07:22 AM |#8  
Senior Member
Thanks Meter: 663
 
Donate to Me
More
Quote:
Originally Posted by mihairimia

Thank you for your effort. It installed flawless on my L19C432 with B378.
I tried to root it but it failed. Chainfire's latest zip rebooted my phone and phh's ended with error 1.

You will still need to use my pre-rooted boot images, that's separate from TWRP. L19 is work in progress
2nd March 2017, 07:29 AM |#9  
OldDroid's Avatar
OP Recognized Developer
Flag Berlin
Thanks Meter: 7,033
 
Donate to Me
More
Quote:
Originally Posted by mihairimia

Thank you for your effort. It installed flawless on my L19C432 with B378.
I tried to root it but it failed. Chainfire's latest zip rebooted my phone and phh's ended with error 1.

i will look into it today, could you link me the zip files you used for rooting? especially phhs version (supersu is not supported, thats why we removed it from the entire recovery ecosystem)

Regards
The Following 2 Users Say Thank You to OldDroid For This Useful Post: [ View ]
2nd March 2017, 08:09 AM |#10  
Senior Member
Thanks Meter: 26
 
More
Quote:
Originally Posted by OldDroid

i will look into it today, could you link me the zip files you used for rooting? especially phhs version (supersu is not supported, thats why we removed it from the entire recovery ecosystem)

Regards

The one from here https://forum.xda-developers.com/p9/...2-0-n-t3506947. Dont waste your time. Its working if B378 img from Atarii is flashed.

Quote:
Originally Posted by Atarii

You will still need to use my pre-rooted boot images, that's separate from TWRP. L19 is work in progress

L09 B378 img is ok for now. Still need to test if system apps uninstall. But I am happy Adaway is working!
2nd March 2017, 09:07 AM |#11  
Senior Member
Thanks Meter: 34
 
More
Is somebody here to explain me (quick explain) what is encryption/decryption support?
And I never know... When I launch TWRP for the 1st time, we have to choose if we want to let the system untouched.
Must I let the system in "Read Only mode" or not? I don't understand what it can change (I didn't have to choose that on my previous (HTC) devices)...
Thanks.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes