[TWRP][H6X][3.1.1-0][EMUI 5.x / AOSP N][DECRYPTION SUPPORT]

OldDroid

Recognized Developer
Nov 18, 2012
1,767
6,949
153
Berlin



This is only for Honor 6X (BERLIN)
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:
[COLOR="red"][B]WARNING:[/B] 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!)[/COLOR]

Installation Instructions
Code:
1. Enter fastboot mode on unlocked device
2. flash recovery using the following command: fastboot flash recovery twrp-3.1.1-0-berlin.img
3. reboot to recovery!
Rooting Methods
Code:
[B][U]1. Official SuperSU (not just 2.82+)[/U][/B]
1. Ensure you are running stock emui 5.x kernel
2. Tick the option "Keep vendor partition mounted" inside OpenKirin Settings
3. download and install [URL="www.supersu.com/download"]official SuperSU[/URL]
4. Enjoy!

[B][U]2. Custom SuperSU[/U][/B]
1. Make sure the device running stock EMUI 5.x boot.img
2. flash this modded SuperSU 2.79: [URL="https://drive.google.com/open?id=0BxWP2gF_0Bd_UmQ2Zm9ZRGxBTUE"]download here[/URL]
3. enjoy root :)
[COLOR="red"][B]NOTE:[/B][/COLOR] this is for every device (except kirin 960 based) running emui 5.x without loop support.

[B][U]3. Magisk[/U][/B]
1. ensure you are running a emui 5.x kernel
2. flash magisk
3. enjoy root & safetynet (read note)
[B][COLOR="red"]NOTE:[/COLOR][/B] 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
Code:
[LIST]
[URL="https://github.com/OpenKirin/android_device_honor_berlin/releases/download/3.1.1-0/twrp-3.1.1-0-berlin.img"][U]download twrp-3.1.1-0-berlin.img[/U][/URL]
[/LIST]

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

Q: which H6X 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: Since 3.1.1-0 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
Code:
* [URL="https://forum.xda-developers.com/member.php?u=2335078"]surdu_petru[/URL]
* [URL="https://forum.xda-developers.com/member.php?u=7354786"]XePeleato[/URL]
* [URL="https://forum.xda-developers.com/member.php?u=220328"]paulobrien[/URL]
* [URL="https://forum.xda-developers.com/member.php?u=3424732"]jgates86[/URL] (Tester)

XDA:DevDB Information
TWRP, Tool/Utility for the Honor 6X

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


Version Information
Status: Stable

Created 2017-04-02
Last Updated 2017-06-11
 
Last edited:

OldDroid

Recognized Developer
Nov 18, 2012
1,767
6,949
153
Berlin
Changelog
Code:
[B]TWRP 3.1.0-2[/B]
* 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

[B]TWRP 3.1.0-1[/B]
* proper handling of decryption (improves booting time by ~10 seconds)
* do not wipe /data/hw_init during wipe or factory reset to prevent system errors
* cleanup ramdisk, reduced image size by 10mb
* /cust and /version usage fixed
* sometimes unmount of /data partition failed, fixed aswell

[B]TWRP 3.1.0-0[/B]
* initial release
 
Last edited:

OldDroid

Recognized Developer
Nov 18, 2012
1,767
6,949
153
Berlin
new version is up! check op for more information ;)

Few things to mention:
* You can now wipe /data & do a factory reset without loosing system functionality (as i excluded /data/hw_init from beeing wiped).
* A new rooting method has been provided in op, it is compatible with every nougat version on your honor 6x.

releases & changelogs can be found also on github: https://github.com/OpenKirin/android_device_honor_berlin/releases

Regards
 

luukvbaal

Member
Feb 12, 2017
19
4
3
new version is up! check op for more information ;)

Few things to mention:
* You can now wipe /data & do a factory reset without loosing system functionality (as i excluded /data/hw_init from beeing wiped).
* A new rooting method has been provided in op, it is compatible with every nougat version on your honor 6x.

releases & changelogs can be found also on github: https://github.com/OpenKirin/android_device_honor_berlin/releases

Regards
This is great, thanks alot for your work!
 
  • Like
Reactions: atcharatip pinmook

okbakaka

Senior Member
Mar 27, 2017
187
32
0
great guys ,just a question how could i flash a rom zip ? it says failed ,even with the TWRP 3.101 its failed should i do something mount ,or wipes or something