[Huawei P8 Guides, News, & Discussion] Tecalote:
Rooting and Unroot Huawei P8 GRA-xxx Marshmallow (Android 6) [All Stock-Firmwares with EMUI4.0.1]​

For newer Firmwares use following Guide: https://xdaforums.com/showpost.php?p=75460388&postcount=323

Note: DONT FLASH SUPERSU OVER EXISTING ROOT - SINCE SUPERSU 2.82 IT IS REQUIRED TO UNROOT YOUR PHONE BEFORE USING NEWER VERSION!

SuperSU-v2.82-SR5-permissive.zip by Tecalote: https://www.androidfilehost.com/?fid=962187416754458671 MD5: b168a88bc815d3fac521ace97402a949

It enables init.d and SELinux Permissive (required for installing several mods like Viper4Android etc...)

NEW TWRP released by [MENTION=6233909]AD2076[/MENTION] : https://eu.dl.twrp.me/grace/twrp-3.1.1-0-grace.img.html

This new method should work on all types of GRA (GRA-L09-TL00-CL00-UL00-UL10-TL10-CL10) for newer Firmwares from 2017 on!

For Unroot you can do it directly from SuperSU App - with restoring the boot.img (SuperSU App ask you, answer with YES) - or alternative you can flash UnSU Script with TWRP:

http://xdaforums.com/showpost.php?p=63615067

If you flash unsu script - you must restore your original unmodified boot.img from TWRP Backup! This make sure you can boot straight to system after Unroot.

If you flash instead boot.img extracted from update.app you cannot boot to system before installing EMUI Recovery and doing Factoryreset.

But it is possible to Root your Phone directly after flashing boot.img to BOOT

Restoring boot.img is required after Unroot in every case! A) If you like to stay unrooted and B) if you want to Root with new Version of SuperSU. If you want Root with new SuperSU, you must restore original boot.img. After you have restored it from TWRP Backup or flashed it with adb in Fastboot Mode, you can Root directly after restoring without boot to system before.

If you cannot restore boot.img, because you have no TWRP Backup from Boot, you can download the Firmware for your build Number (Settings/About Phone) from here:

http://pro-teammt.ru/firmware-database/?firmware_model=GRA&firmware_page=0

With following Tool you can extract boot.img from UPDATE.APP - Huawei Update Extractor: https://xdaforums.com/showthread.php?t=2433454

Unlocked Bootloader required

Unlocked Bootloader:

If your Bootloader is locked install the App Huawei-ID on your Phone. On newer Firmwares, the Huawei-ID App is already preinstalled.

But anyway update it to this version: https://www.androidfilehost.com/?fid=385035244224383206

After you must visit website for login and requesting the unlock-code. Visit: http://emui.huawei.com/en/plugin/hwdownload/download and click: Unlock Bootloader.

Make an Account or Login with your Huawei-ID, click again: Unlock Bootloader. Fill out form - you can find all information in Settings "About the Phone" and "Status" - for the Product-ID use dialer ( *#*#1357946#*#* ). Submit information and you receive the Unlock Code.

- On your phone activate the developer options (Settings "About the phone" press several times consecutively the "Build-Number")

- In developer options activate "USB-Debugging"

- In Settings "Security" activate "Unknown Sources" and HiSuite HDB accept

- install the latest HiSuite (from Huawei) on your PC - Download: http://consumer.huawei.com/minisite/HiSuite_en/index.html

- start HiSuite and connect your Phone with the USB-Cable with your PC. You will receive a fingerprint question on your Phone, acitvate "Always" and "Yes"

- accept also the installing of HiSuite on your Phone. As soon the drivers are installed and your phone is succesful connected, close HiSuite (even in the background).

- unzipp "Minimal ADB + Fastboot", install it on your PC - Download: https://www.androidfilehost.com/?fid=385035244224386526

- (the path will be C:\Program Files (x86)\Minimal ADB and Fastboot) - after open the Program as Administrator

- tap: adb devices (your device must listed with ID)

- tap: adb reboot bootloader (Phone restart in Fastboot-Mode) You will see, your bootloader is locked

- wait until PC installs additional drivers, after:

- tap: fastboot devices (your device must listed with ID)

- tap: fastboot oem unlock YOUR16DIGITCODE (which you have received from Huawei) - after unlock tap: fastboot reboot

If you have problems to execute fastboot-commands and you see just: "Waiting for any devices" - or if you have trouble with hardware-buttons read following information: http://xdaforums.com/showpost.php?p=69440645&postcount=129

Old methods (2016) - not reccomended for newer Firmwares (2017..)

It is no more possible to Root Huawei Firmware up to EMUI 4.01 with newer Versions of SuperSU (current stable 2.78) neither with the Force Systemless Command! Dont try it, because SuperSU will destroy the original boot.img of the Firmware - See Screenshot 1. You can flash the zip but your phone would not boot and staying on the Rescue-Screen of the Bootloader.... That´s why I maked this Thread!

All methods updated 13.10.2016 - everything works now! . ;)

For systemless rooting (like my method A) you can also use the SRKToolHuawei 2.0 by [MENTION=4008653]somboons[/MENTION]

- Download: https://www.androidfilehost.com/?fid=529152257862664925 - Thread: http://xdaforums.com/mate-8/development/tool-srk-tool-huawei-t3369797

Before you going to root your phone make a full Nandroid Backup (all shown Partitions) with TWRP - if something goes wrong you can restore your backup.

Thread for German Speakers GRA-L09: http://www.android-hilfe.de/thema/huawei-p8-b380-root-anleitung.797464/

Requirements:

1) Unlocked Bootloader:

If your Bootloader is locked install the App Huawei-ID on your Phone. On newer Firmwares, the Huawei-ID App is already preinstalled.

But anyway update it to this version: https://www.androidfilehost.com/?fid=385035244224383206

After you must visit website for login and requesting the unlock-code. Visit: http://emui.huawei.com/en/plugin/hwdownload/download and click: Unlock Bootloader.

Make an Account or Login with your Huawei-ID, click again: Unlock Bootloader. Fill out form - you can find all information in Settings "About the Phone" and "Status" - for the Product-ID use dialer ( *#*#1357946#*#* ). Submit information and you receive the Unlock Code.

- On your phone activate the developer options (Settings "About the phone" press several times consecutively the "Build-Number")

- In developer options activate "USB-Debugging"

- In Settings "Security" activate "Unknown Sources" and HiSuite HDB accept

- install the latest HiSuite (from Huawei) on your PC - Download: http://consumer.huawei.com/minisite/HiSuite_en/index.html

- start HiSuite and connect your Phone with the USB-Cable with your PC. You will receive a fingerprint question on your Phone, acitvate "Always" and "Yes"

- accept also the installing of HiSuite on your Phone. As soon the drivers are installed and your phone is succesful connected, close HiSuite (even in the background).

- unzipp "Minimal ADB + Fastboot", install it on your PC - Download: https://www.androidfilehost.com/?fid=385035244224386526

- (the path will be C:\Program Files (x86)\Minimal ADB and Fastboot) - after open the Program as Administrator

- tap: adb devices (your device must listed with ID)

- tap: adb reboot bootloader (Phone restart in Fastboot-Mode) You will see, your bootloader is locked

- wait until PC installs additional drivers, after:

- tap: fastboot devices (your device must listed with ID)

- tap: fastboot oem unlock YOUR16DIGITCODE (which you have received from Huawei) - after unlock tap: fastboot reboot

If you have problems to execute fastboot-commands and you see just: "Waiting for any devices" - or if you have trouble with hardware-buttons read following information: http://xdaforums.com/showpost.php?p=69440645&postcount=129

2) There is a new TWRP released by KangV from the Huawei Rom Team (HRT) v. 3.0.2 - multilingual. ​

Download: https://www.androidfilehost.com/?fid=529152257862681510

- rename the .img to "TWRP" (TWRP.img) and flash it with ADB.

- first store the TWRlP.img in C:\Program Files (x86)\Minimal ADB and Fastboot, after open the Program (Phone must be connected with USB to PC)

- tap: adb devices (your device must listed with ID)

- tap: adb reboot bootloader (Phone restart in Fastboot-Mode - you will see, your bootloader is unlocked now)

- tap: fastboot flash recovery TWRP.img

If the flashing of the Recovery is succesfully done - disconnect your Phone from USB!

- press the Vol+ button first (staying on Vol+) and simultaneously press the Power Button

- wait until the phone reboot - in the moment you see the Huawei Logo skip pressing the Power Button but stay on Vol+ until you are succesfully bootet to TWRP

- TWRP ask you by the first start for root access "Allow to modify system partion" - swype to confirm "yes"

- go to button "Backup", select your external Storage and make a complete Nandroid Backup of all shown partititions

- after you can Root your Phone now - see description

Note: If you make something wrong booting first time to TWRP and the Phone reboot to system instead of TWRP, Stock-Recovery will be reflashed and you must flash TWRP again with ADB

A) Rooting in systemless Mode (by maintaining the original Stock-Kernel)

Note: This kind of rooting your phone is for for normal use (Root-Explorer, Root-Apps) but not for Hardliner-Mods :D

Your TWRP should always have write permissions, if it ask you swype to confirm this! If it don`t have, you can enable this in the Mount button (disable system partition read only)

1.) Download SuperSU with your Browser (not with Downloadmanager) 2.67: https://download.chainfire.eu/897/SuperSU/BETA-SuperSU-v2.67-20160121175247.zip?retrieve_file=1

- or download the file from the attached file below in OP and place SuperSU 2.67 on the external SD

2.) Boot to TWRP and make a complete Nandroid Backup first (if you dont have it already)

3.) In TWRP go to the Advanced button and use the Terminal.

On the first screen tap on the ok button and after write following Force Systemless Command:

echo SYSTEMLESS=true>>/data/.supersu

and quit this with the ok tab

4.) Navigate back to the main menu and use the Install button

5.) Navigate to the location of the placed SuperSU 2.67

6.) Swype to confirm flash - after use: Reboot

7.) If TWRP ask you for Root - "Your device does not appear to be rooted - Install SuperSU now?" - NO - use: DO NOT INSTALL Button!

Older Versions of TWRP ask you this - the newest TWRP 3.0.2 dont.

8.) P8 reboots now 2 times and rebooted finaly to system.

9.) Open the SuperSU App (it will be on an empty site of your home) - you have now systemless Root

10.) Open Playstore an Update the SuperSU and after say yes to Update the Binary.

11.) :) The Phone must be restarted and you are up-do-date with the Root.

Uninstall this kind of Root:

If you want to unroot your Phone and you have used method A, do following:

1) If you have Xposed Framework installed - uninstall it with the uninstaller.zip (matching your phone) in TWRP - directly after you must Wipe Cache and Dalvik - next step: reboot your phone.

2) If you have BusyBox installed - uninstall it with BusyBox-Cleaner.zip in TWRP - Download: https://www.androidfilehost.com/?fid=24591000424941581

3) Reboot Phone open SuperSU and tap "complete Unroot"

4) If SuperSU ask you to restore your original Boot Image - say yes!

5) If the phone reboot automatically Unroot is ready - check it with Root Checker

6) If the phone dont reboot automatically, boot into TWRP and:

7) flash unsu.zip - Download: http://xdaforums.com/attachment.php?attachmentid=3931994&d=1478779893 - reboot your Phone and Unroot is ready.

8) If the Download-Link of unsu.zip has changed, because it gets updates - you find it on this site: http://xdaforums.com/showpost.php?p=63615067

B) Rooting in SYSTEM-Mode (by using modified Stock-Kernel made for Rooting with SuperSU)

1.) Download SuperSU - current version 2.79 Stable (with Browser, not with Downloadmanager): https://download.chainfire.eu/1016/SuperSU/UPDATE-SuperSU-v2.79-20161211114519.zip?retrieve_file=1- it is the original one from Chainfire, not CCMT

2.) Download the Kernel, which allow you to Root: https://www.androidfilehost.com/?fid=385035244224383592

3.) Place both zips on the external SD

4.) Reboot to TWRP Recovery

5.) Make a comlete Nandroid Backup

6.) Navigate back to the main menu

7.) Use: Install - and navigate to the place of the Kernel-for-Root-Stock-MM.zip

8.) Swype to confirm flashing the Kernel-for-Root-Stock-MM.zip

9.) Directly after this flash navigate back to the main menu

10.) Use: Install - navigate to SuperSU.zip

11.) Swype to confirm flashing SuperSU - after use: Reboot

12.) If TWRP ask you for Root - "Your device does not appear to be rooted - Install SuperSU now?" - NO - use: DO NOT INSTALL Button!

Older Versions of TWRP ask you this - the newest TWRP 3.0.2 dont.

13.) P8 reboots one times directly to the system

14:) Open the SuperSU App (it will be on an empty site of your home) - you have now Root in the System with the latest stable SuperSU

Unroot this Installation of Root in System-Mode:

1) If you have Xposed Framework installed - uninstall it with the uninstaller.zip (matching your phone) in TWRP - directly after you must Wipe Cache and Dalvik - next step: reboot your phone.

2) If you have BusyBox installed - uninstall it with BusyBox-Cleaner.zip in TWRP - Download: https://www.androidfilehost.com/?fid=24591000424941581

3) Reboot Phone open SuperSU and tap "complete Unroot" - Needs some seconds, after:

4) flash unsu.zip - Download: http://xdaforums.com/attachment.php?attachmentid=3931994&d=1478779893 - reboot your Phone and Unroot is ready.

5) If the Download-Link of unsu.zip has changed, because it gets updates - you find it on this site: http://xdaforums.com/showpost.php?p=63615067

6) Reboot your Phone, and if

7) If TWRP ask you for Root - "Your device does not appear to be rooted - Install SuperSU now?" - NO - use: DO NOT INSTALL Button!

Older Versions of TWRP ask you this - the newest TWRP 3.0.2 dont.

8) After Reboot check it with a Root Checker - Your devices is not Rooted!

C) Systemless Rooting (by using modified Stock-Kernel made for Rooting with SuperSU)

Note: This is the only kind of Root to install the Systemless Xposed Framework!

This Thread does not officially Support the issue "how do hide Root" . Please use other Threads made for this. But you're invited to post ideas and solutions for this issue - if you have any! Because many people searching for a good solution :o

1.) Download SuperSU - current version 2.79 Stable (with Browser, not with Downloadmanager): https://download.chainfire.eu/1016/SuperSU/UPDATE-SuperSU-v2.79-20161211114519.zip?retrieve_file=1 - it is the original one from Chainfire, not CCMT

2.) Download the Kernel - which allows you to Root: https://www.androidfilehost.com/?fid=385035244224383592

3.) Place both zips on the external SD

4.) Reboot to TWRP Recovery

5.) Make a comlete Nandroid Backup

6.) Navigate back to the main menu

7.) Use: Install - and navigate to the place of the Kernel-for-Root-Stock-MM.zip

8.) Swype to confirm flashing the Kernel-for-Root-Stock-MM.zip

9.) Directly after this flash navigate back to the main menu

10.) After go to the Advanced button and use the Terminal.

On the first screen tap on the ok button and after write following Force Systemless Command:

echo SYSTEMLESS=true>>/data/.supersu

and quit this with the ok tab

11.) Use the install button and navigate to SuperSU.zip

12.) Swype to confirm flashing SuperSU

13) Reboot your Phone

14.) If TWRP ask you for Root - "Your device does not appear to be rooted - Install SuperSU now?" - NO - use: DO NOT INSTALL Button!

Older Versions of TWRP ask you this - the newest TWRP 3.0.2 dont.

15.) P8 reboots now 2 times and rebooted finaly to system.

16:) Open the SuperSU App (it will be on an empty site of your home) - you have now systemless Root with the latest stable SuperSU

Uninstall this kind of systemless Root:

If you like to Unroot your Phone from this systemless Root, do following steps:

1) If you have Xposed Framework installed - uninstall it with the uninstaller.zip (matching your phone) in TWRP - directly after you must Wipe Cache and Dalvik - next step: reboot your phone.

2) If you have BusyBox installed - uninstall it with BusyBox-Cleaner.zip in TWRP - Download: https://www.androidfilehost.com/?fid=24591000424941581

3) Reboot Phone open SuperSU and tap "complete Unroot"

4) If SuperSU ask you two times to restore the original Stock-Boot Image say: YES

5) Phone reboots automatically

6) Check it with Root Checker: succesfully unrooted

7) If the phone dont reboot automatically - reboot by yourself to TWRP

8) flash unsu.zip - Download: http://xdaforums.com/attachment.php?attachmentid=3931994&d=1478779893 - reboot your Phone and Unroot is ready.

9) If the Download-Link of unsu.zip has changed, because it gets updates - you find it on this site: http://xdaforums.com/showpost.php?p=63615067

10) Reboot your Phone - Root is uninstalled

After you have rooted your phone - it is recommended to flash Busybox in TWRP:

I always prefere BusyBox YDS by YashdSaraf for Huawei P8. This busybox recognizes which kind of Root and architecture you have and it will install to in the right directory. It uses also arm64 Binarys - just flash it after Rooting and first boot to system with TWRP.

You can find the Thread here: http://xdaforums.com/android/software-hacking/tool-busybox-flashable-archs-t3348543

Use in Download Section the Universal zip or the ARM zip (it conains arm64).

Credits:

Many thanks to [MENTION=631273]Chainfire[/MENTION] for his grandiose SuperSU :cowboy:

Many thanks to [MENTION=6233909]AD2076[/MENTION] for the new TWRP-Recovery twrp-3.1.1-0-grace.img for Huawei p8 marshmallow. :cool:

And thanks a lot to [MENTION=5423715]YashdSaraf[/MENTION] for very good BusyBox :o

Last Update: 06.02.2018