yashsingh1/xdaforums huggingface dataset:
[Huawei P8 Guides, News, & Discussion] Bary-Jan:
After the first flash, the SU is neither on the clean page nor anywhere else. I did a repeat of the whole procedure, including the flashing of SU, and it's not anywhere.

and system partition is unchecked
[Huawei P8 Guides, News, & Discussion] Tecalote:
Okay, then unzip SuperSU.zip on PC.

In the folder common is the Superuser apk.

Copy the apk to your phone and install and open it
[Huawei P8 Guides, News, & Discussion] Bary-Jan:
He writes after installing and opening. root undetected
[Huawei P8 Guides, News, & Discussion] Tecalote:
Then try instead Magisk v16 stable (from xda)

If something goes wrong, you can flash Magisk Uninstaller.

https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

I guess, SuperSU is may not compatible with your Firmware..
[Huawei P8 Guides, News, & Discussion] Bary-Jan:
Older versions of the SU? I can do it and I am satisfied.
[Huawei P8 Guides, News, & Discussion] Tecalote:
You can try 2.79 or older from OP /old method but don't flash any Kernel.

And before you do so - go in TWRP to Backup and make a TWRP Backup of all shown Partitions (choose storage: Micro SD)

In the worst case you can boot to TWRP and restore the backup!
[Huawei P8 Guides, News, & Discussion] Bary-Jan:
So neither the older versions will go wrong.

---------- Post added at 02:04 ---------- Previous post was at 01:54 ----------

Would it give a newer firmware version? Or where can be a mistake?

I have now Build number GRA-L09C150B390
[Huawei P8 Guides, News, & Discussion] Tecalote:
B391 is available and approved for installation.

http://update.hicloud.com:8180/TDS/data/files/p3/s15/G985/g104/v82458/f1/full/update.zip

For installing this, Emui Recovery is needed instead of TWRP. (Update with TWRP not possible)

You must unzip the update.zip and then extract the RECOVERY.IMG from UPDATE.APP with Huawei Extractor:

https://xdaforums.com/showthread.php?t=2433454

Then you flash RECOVERY.IMG same way as you did with TWRP before.

Now you copy the UPDATE.APP to a folder on the main directory of your external SD - but the folder must be named: dload (exactly)

With Vol+ and Vol- (pressing down the Vol Button in the middle) and Power Button phone restart into EMUI Recovery and flashing the update.

But you must keep pressing the buttons until Software Update start.

After reboot to the system you boot again into Fastboot Mode and look if the Bootloader isn't closed.

If it's open you can flash TWRP, allow Systemmodifikation on first start of TWRP (swype to confirm).

Then flash latest SuperSU from OP.

But if Bootloader is closed you must reopen before..
[Huawei P8 Guides, News, & Discussion] Blackice015:
Hi thanks for the guide, the root seems to have worked.

Now i want to flash Busybox but when i use adb fastboot TWRP.img i get the Huawei eRecovery.

How do i get TWRP back / how do i flash Busybox?
[Huawei P8 Guides, News, & Discussion] Tecalote:
Before you flash Busybox you must check with Root Fileexplorer if in system a folder exists with the name: xbin

Some of the last Firmwares doesn't have this folder.

If you flash then Busybox by YashdSaraf you get a Bootloop.

If the folder xbin does not exist it's better to flash Busybox by Osm0sis (xda) - it use another location to place Busybox.

To flash TWRP use

adb reboot bootloader

fastboot flash recovery twrp.img (must match the name of your TWRP, or rename it twrp.img)

After flashing Twrp you must disconnect USB from device and with pressing Vol+ and Power Button (as long until TWRP is on Screen) you must boot immediately to TWRP. (before first Reboot to system)

You can download Reboot Menu from Playstore to boot directly to TWRP.
[Huawei P8 Guides, News, & Discussion] Blackice015:
Alright thanks, not sure what i did wrong but following your instructions it worked. according to Busybox Free, YDS is installed to /su/xbin. Is this correct?

However i now want to install Xposed and every time i enable it and restart i get stuck on the loading screen. No modules, and i tried different versions. Any idea what could be wrong?
[Huawei P8 Guides, News, & Discussion] Tecalote:
I am busy at the moment, I give you later (in about 3 hours) exakt instructions for Xposed Framework.

Don't experiment with it now.

/su/xbin is okay
[Huawei P8 Guides, News, & Discussion] Bary-Jan:
I do not know if it has a connection, but after yesterday's failures I let it go. Tonight, the phone began reporting a lack of storage space. He was so slow to slow he did not respond to the touch. After the third restart I was able to make something work ...
[Huawei P8 Guides, News, & Discussion] Tecalote:
You need for Android 6 the Xposed Framework SDK 23 v89 arm64

First install Xposed Installer 3.1.5.apk - you can find this App attached in this post:

https://xdaforums.com/showthread.php?t=3034811

After flash Xposed Framework SDK 23 v89 arm64 with TWRP:

https://dl-xda.xposed.info/framework/sdk23/arm64/xposed-v89-sdk23-arm64.zip

When you flashed go back to the main menu and open Wipe (not Factoryreset, but Advanced Wipe) and wipe Dalvik Art Cache and Cache, swipe to confirm. Reboot your phone.

The Reboot needs about 18 min.

After open Xposed Installer, Framework should be activated.

Now you can download and install modules. Modules must be activated in Xposed Installer and need a reboot of the phone.
[Huawei P8 Guides, News, & Discussion] Blackice015:
It worked, thanks a lot!
[Huawei P8 Guides, News, & Discussion] Old Jimbo:
I have a GRA-L09, EMUI 4.0.3, build number C432B398. As my former phone was a Samsung, I'm not familiar with rooting this device. Can someone tell me please what tools should I use according to the phone's EMUI and build number?
[Huawei P8 Guides, News, & Discussion] Tecalote:
1) You must unlock the Bootloader. For this you need the Unlock code. Until 24. July it was possible to get it from Huawei, but Huawei stopped this service. Now you can read the code only with DC Unlocker Software

2) The Unlock code must be flashed in Fastboot mode

3) Flash TWRP from the first Post of this Thread (OP)

4) Flash SuperSU from OP with TWRP from OP

5) Read on xda how to flash Unlock code and TWRP on Huawei devices with Android 6/7 (on Android 8 its a bit different)

Alternatively you can Root your Phone with Magisk v16 (flashing with TWRP instead of SuperSU)
[Huawei P8 Guides, News, & Discussion] R560:
Can you recommend a freeware (if any) tool to read/get the unlock code ?
[Huawei P8 Guides, News, & Discussion] Tecalote:
There's no Freeware Tool.

The only one was Huawei's Bootloader Unlock Webseite, which is down since 25.07.2018.

But DC Unlocker costs 4 EUR.

This isn't much.
[Huawei P8 Guides, News, & Discussion] Soldier50:
It didn't work for me :(

I flashed TWRP, Tapped Install, installed SuperSu then tapped on the reboot system, however no SuperSU icon, also the Root checker says, it is not properly rooted.

What should i do?

GRA-L09C432B520

Emui 4.0.3
[Huawei P8 Guides, News, & Discussion] Tecalote:
Extract SuperSU zip file on PC, in the folder "common" you find Superuser apk.

Install the apk and open it.
[Huawei P8 Guides, News, & Discussion] Soldier50:
Installed, however it says : Root Undetected.

I unlocked the bootloader, then installed twrp what have I missed? ? :(
[Huawei P8 Guides, News, & Discussion] Tecalote:
Difficult to say.

How is the Build Number of your device (Settings /About phone /Build Number)?
[Huawei P8 Guides, News, & Discussion] Soldier50:
Build number is: GRA-L09C432B520

Today i tried an app called Scan&Shop (Tesco), and it says: App doesnt wotk with rooted phones. However nor the Su nor the RootChecker identify root access on the phone. Maybe it has been screwed and now it is between stock and root :confused:
[Huawei P8 Guides, News, & Discussion] Tecalote:
I asked you some posts ago - what does SuperSU say, if you open it (remember, I advised you to install the apk)

I don't want to know, what your Root Check App says (because this could be an old version and may not recognize Root)

I would like to know what's happen if you open SuperSU?

If SuperSU does not say "no su binary found" or similar - then you have Root
[Huawei P8 Guides, News, & Discussion] Soldier50:
Sorry about that.

My SuperSu says: Root Undetected. I attached a screenshot of it. [IMG="Screenshot"]https://drive.google.com/open?id=1zQgdGgyZPlPQhj_GVM1NXzPFmscMgGF7[/IMG]
[Huawei P8 Guides, News, & Discussion] Tecalote:
Okay, then you have really no Root. Something went wrong.
[Huawei P8 Guides, News, & Discussion] rr4444:
Same problem for me :(

I'm also on b520. bootloader unlocked with dc-unlocker, trwp installed and i installed the supersu zip from this thread. no errors, reported success, but then SuperSU says no root :(((

are you aware of a supersu alternative that will work on a p8?

---------- Post added at 05:13 PM ---------- Previous post was at 05:04 PM ----------

looking at magisk 16 - any reason why 16 you recommend and not 17?
[Huawei P8 Guides, News, & Discussion] rr4444:
ok - i have preliminary success with magisk 17.1.

important point is: do not hide magick from the phone manager system app, or you have to restore the boot image!! it ends up in a weird loop at the frontend ui unlock screen
[Huawei P8 Guides, News, & Discussion] rr4444:
Ok looking good so far.

1, Bootloader unlocked using code from DC Unlocker. 4 euro well spent after Huawei took down their request site. I'll remember this for future phone purchases.........

2, TRWP from this OP (grace is for P8)

3, Magisk via TRWP. I really like it and Google Pay and banking works!

4, Link2SD is great. Also paid for full version. Another few euros well spent.

NB my note from previous post about being careful which apps you move to ext4 SD to not kill your phone.

Also, I split my 128GB into two partitions, as per Link2SD reqs, which make sense. BUT I split it 50:50 because some apps still insist on internal or the first (FAT32) partition e.g. DCIM for photos

---------- Post added at 04:26 PM ---------- Previous post was at 04:16 PM ----------

Many thanks to tecalote for his/her original posts and this thread. This was my first foray into treating my phone like a proper POSIX platform
[Huawei P8 Guides, News, & Discussion] rr4444:
useful links based on this thread and elsewhere:

https://www.dc-unlocker.com/huawei-android-hisilicon-unlock-guide

https://www.dc-unlocker.com/huawei-android-phone-qualcomm-unlock-guide

then

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

from OP

https://dl.twrp.me/p8/

https://www.xda-developers.com/how-to-install-twrp/

https://www.xda-developers.com/how-to-install-magisk/

https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

https://play.google.com/store/apps/details?id=com.buak.Link2SD&hl=en
[Huawei P8 Guides, News, & Discussion] Tecalote:
Yes, I know. I will try it again with Stock b370 as soon I have time. I let you know.

The official TWRP 3.xx do not Support Marshmallow yet. You can just use the one from blackball or jemmini
[Huawei P8 Guides, News, & Discussion] Tecalote:
I found a solution for your issue. I will post it during today as soon I have time!
[Huawei P8 Guides, News, & Discussion] Tecalote:
[MENTION=6233909]AD2076[/MENTION] If you want systemless Root, you have to do following steps:

1) Restore if possible your Nandroid Backup with Root in System

2) If Xposed Framework is installed, boot to TWRP and flash xposed-uninstaller.zip for your arm64SDK23 device. Wipe Dalvik and Cache!

3) in System, start directly in SuperSU "Unroot" (Message, SuperSU disappears in some Sec) Apk is staying on Desktop!

4) Boot zo TWRP and flash und unsu:

http://xdaforums.com/attachment.php?attachmentid=3528363&d=1446472307

5) Immediately flash Busybox cleaner:

https://www.androidfilehost.com/?fid=24591000424941581

6) Reboot now, TWRP is asking for Root: No

7) Root will be (half) restored after Reboot . Does not matter, cause we want convert Root to systemless one.

8) With Root Explorer go to /sbin - there delete: su

9) After go to /system/xbin - and delete: su

10) Boot to TWRP, and flash the Kernel first I gave you. Immediately after go in TWRP to Advanced /Terminal:

Confirm select button and write with keyboard:

echo SYSTEMLESS=true>>/data/.supersu

Confirm with select button.

Navigate back to the main menu.

11) install : SuperSU 2.78.flash zip

https://download.chainfire.eu/1001/SuperSU/UPDATE-SuperSU-v2.78-20160905010000.zip

12) Reboot (TWRP ask for Root : no! )

13) Phone , reboots 2 times. After in System you will see - voila: Root is systemless!

14) Boot to TWRP and flash Busybox, for working Symlinks.

https://www.androidfilehost.com/?fid=24591000424942978

This BusyBox ist good, cause it will install to /su/xbin (systemless).
[Huawei P8 Guides, News, & Discussion] AD2076:
I am gonna try, I just missed steps 4 5 and 14
[Huawei P8 Guides, News, & Discussion] Tecalote:
Does it work? I did it yesterday successful.
[Huawei P8 Guides, News, & Discussion] AD2076:
systemless root works. The main problem is suhide doesn't install.

SafetyNet test fails without suhide
[Huawei P8 Guides, News, & Discussion] Tecalote:
... Cause of TWRP Version.. I keep looking for one, which works. I have an idea. Needs a bit time
[Huawei P8 Guides, News, & Discussion] AD2076:
how can avoid half restoring of root at boot?
[Huawei P8 Guides, News, & Discussion] Tecalote:
The Kernel has the su binary inside and is trying to restore. If you don't root systemless, it will root always in System even after Unroot.

(in prerooted Roms)

Can you give me a link to the Suhide App please
[Huawei P8 Guides, News, & Discussion] AD2076:
http://xdaforums.com/apps/supersu/suhide-t3450396
[Huawei P8 Guides, News, & Discussion] Tecalote:
Thanks
[Huawei P8 Guides, News, & Discussion] AD2076:
Here is what I have to do to successfully pass the SafetyNet test:

1)unroot with both supersu app and unsu in recovery

2)check for su binaries using TWRP filemanager and delete them all

3)reboot (twrp asks to root and obviously I say NO)

4) install supersu app and unroot

I have to repeat step 4 at every reboot

Is it possible to have a ROM or kernel without autoroot?

P.S. I tried installing suhide using flashfire to workaround twrp limitations and it flashes but the autoroot strikes back again and safetynet test fails
[Huawei P8 Guides, News, & Discussion] Tecalote:
I answer later, this time I am working... Nearly everything is possible
[Huawei P8 Guides, News, & Discussion] SMhd3000:
First Method

First Method Worked For Me.Don't Test Second Or Third Method (Because Of Costume Kernel).
[Huawei P8 Guides, News, & Discussion] Tecalote:
Hello, I didn't forget your issue. I was busy. I made a Custom Rom. http://xdaforums.com/huawei-p8/development/rom-huawei-p8-gratitude-tecalote-t3468118

For this exists a VIP Patch with included special Suhide. It is not integrated into the Rom. The Patch is made by KangV and it must be linked to the serial number of the device. I am in contact with him and can order this patch. With just one click, the Root is temporarily hidden. (tested) This should work for safety net Apps. This part is in testing phase now. I will inform you.
[Huawei P8 Guides, News, & Discussion] frecciak:
i have tried lot of time, but this kernel restore root every reboot, and get detected form safetynet.

anyone can make kernel without autoroot?
[Huawei P8 Guides, News, & Discussion] Tecalote:
Thread update will be coming soon

I made a kernel for Unroot and systemless Root now - it does not autoroot - Download: https://www.androidfilehost.com/?fid=385035244224383592 - I write a How-Do in the OP

1) it is not possible to have Xposed Framework installed and Unroot - because Xposed Framework needs Root and thats why SuperSU cannot Unroot and restore the Root on boot, cause otherwise, if you really Unroot, with installed Xposed Framework - the phone would not boot anymore. Xposed Framework must be uninstalled!

2) If you make a Unroot with my newest kernel (systemless or Root in system does not matter) - the Unroot is succesful - no Root after Reboot.

3) Whitout Root the Busybox want work unless you Root again.

I wrote a Thread how-to-root P8 with SuperSU 2.78 - I will update the whole Thread soon - cause P8 has a new firmware-leak (b380). It is not my Thread to solve issues with hide-root :)

So maybe you open a new Thread where people can talk to this important topic - for working saftey-net together with Root. I understand, this is important - but I cannot help in this case yet.

I made a Custom Rom: http://xdaforums.com/huawei-p8/development/rom-huawei-p8-gratitude-tecalote-t3468118/page6

For this Rom exists a VIP-Patch - you can hide Root with one click - its not included in the Rom, must be managed separately cause will work only for the serial number of one phone and need to be patched for each phone. But it works very great!

The other possibility is - if you want Root (systemless) , Hide Root and Xposed Framework (systemless) installed - you can use my new custom kernel (first installing, after rooting with systemless command - busybox must be cleaned in System and new installed in /su/xbin - and solve everything so do it with : http://xdaforums.com/xposed/unofficial-systemless-xposed-t3388268

For busybox cleaning use: https://www.androidfilehost.com/?fid=24591000424941581

And for installing BusyBox use: https://www.androidfilehost.com/?fid=24651430732236700

It is the Best BusyBox with binarys for arm64 and checking root during install - will install busybox systemless, if your Root is systemless.

Edit: Thread is updated NOW - please read an download the new kernel
[Huawei P8 Guides, News, & Discussion] AD2076:
Thanks, gonna try your kernel.
[Huawei P8 Guides, News, & Discussion] Tecalote:
The issue of autoroot can also be cause may there are any backup scripts from SuperSU in /system/etc/init.d called "99SuperSUDaemon" or in /system/etc called ".installed_su_daemon" (hidden)

Both must be deleted.
[Huawei P8 Guides, News, & Discussion] frecciak:
i have deleted "/system/etc/init.d called "99SuperSUDaemon" and /system/etc called ".installed_su_daemon" (hidden) ", and flashed new kernel, but every reboot make autoroot.
[Huawei P8 Guides, News, & Discussion] tebasah:
How many credits did u buy because i want to unlock my boot loader to... Please need your help
[Huawei P8 Guides, News, & Discussion] rr4444:
Was 4 credits, €1 each
[Huawei P8 Guides, News, & Discussion] tebasah:
Thanks bro i will try to buy and get back to ... I really needs 4g or 3g on my phone
[Huawei P8 Guides, News, & Discussion] tebasah:
i already unlocked bootloader and flash twrp.... ineed a custom rom so that i can access 3g or 4g network ... i entitled just to 2g on the both sim and only one works ilrespectively.....
[Huawei P8 Guides, News, & Discussion] m_pascal:
Maybe I'm doing wrong something but I can't install the TWRP.

These are my steps:

- revert the firmware to B300 and after to B170

- check for "USB Debug" enabled

- unlock the bootloader

- upgrade to GRA-L09C432 B398 from sdcard

- upgrade to GRA-L09C432 B520 from system update

- boot normally the system

- adb reboot bootloader

- unlock the bootloader AGAIN (I found it locked again)

- fastboot flash recovery twrp.img (tried both twrp-3.1.1-0-grace.img and twrp-2.8.7.0-p8.img, same results)

- fastboot reboot (the P8 boots up normally)

- power off

- boot in recovery (I found the eRecovery, not the TWRP) so AGAIN...

- adb reboot bootloader

- fastboot flash recovery twrp.img

- fastboot reboot with "Power + Vol+" pressed (I found again the eRecovery, not the TWRP)

Where I'm doing wrong?
[Huawei P8 Guides, News, & Discussion] erayrafet:
Unplug the cable quickly after you send the fastboot reboot command. Then start holding the vol up button.
[Huawei P8 Guides, News, & Discussion] m_pascal:
Thank you, it worked like a charm!
[Huawei P8 Guides, News, & Discussion] glorymyrrh:
bootloader locked

Thank guys but i can't access the website to unlock bootloader. It seems unavailable... Please help!!!:crying::crying:
[Huawei P8 Guides, News, & Discussion] bubba_66:
You need to use DC unlocker https://www.dc-unlocker.com/
[Huawei P8 Guides, News, & Discussion] lk1zhm:
Huawei P8 unlock code?

As a newbie here on the Huawei P8 site I wonder how can I root my P8 without getting an unlock code from Huawei. my latest firmware is Marshmallow 6.0 with Emui 4.03. The explanation described here does not work Superso goes to a website that no longer exists.
[Huawei P8 Guides, News, & Discussion] bubba_66:
This is the only way - https://www.dc-unlocker.com/
[Huawei P8 Guides, News, & Discussion] lk1zhm:
This does not work either, I have read through almost everything, but unfortunately cannot go any further. Huawei also no longer issues codes.
[Huawei P8 Guides, News, & Discussion] Tecalote:
Huawei doesn't offer anymore Unlock Codes. For newer devices (than P8) it's nearly impossible to get some with 3rd party applications.

But for Huawei P8 as well as P9 you can read the Bootloader Unlock Code with Hu-Client from DC Unlocker.

It costs 4 EUR and you need to have an Account on DC Unlocker and as existing User (with Username and Password) you can run the application HCU Client and read the Unlock code.

The phone must be correctly connected with USB to PC/Notebook - same as you would must connect for ADB Mode and additional you have to enable USB "Manufacturer Mode" with hidden Project menu.

If you would read one post before yours - [MENTION=6346387]bubba_66[/MENTION] has already mentioned.

Best Regards
[Huawei P8 Guides, News, & Discussion] Tecalote:
If you do it the correct way, it's working for sure.

I did it one hundred times
[Huawei P8 Guides, News, & Discussion] lk1zhm:
Yes IT works, i had the unlock code now, ant how going it now?
[Huawei P8 Guides, News, & Discussion] lk1zhm:
From 2018, one will no longer receive an unlock code for the P8 from Huawei. Is there no other simple way to get this code?
[Huawei P8 Guides, News, & Discussion] Tecalote:
[MENTION=335989]lk1zhm[/MENTION] The only way is using HCU-Client by DC Unlocker.

You must create an account and then pay 4 credits with your existing account = 4 EUR.

After you must have a working connection between phone and PC (with USB Debugging enabled) and phone must be set to USB manufacturer mode with Project menu.

Then you can read the Unlock code with HCU-Client Tool for PC.

This method is working for P8 and P9 and P9 Plus.

On newer devices like Mate 10 it's not working anymore, because the backdoor is closed by security patch levels.
[Huawei P8 Guides, News, & Discussion] lk1zhm:
Thanks I'm going to try this
[Huawei P8 Guides, News, & Discussion] EzzyLupe:
Isn't there other way to get my bootloader code ? Because i can't really purchase the DC Unlocker credit to get it :/
[Huawei P8 Guides, News, & Discussion] Tecalote:
There's no other way..
[Huawei P8 Guides, News, & Discussion] EzzyLupe:
Ahh :/ is there someone that are able to pay the credits for someone else? cuz i'm blocked on purchasing anything online, so for me there is no way to do it and i really need to unlock the bootloader
[Huawei P8 Guides, News, & Discussion] Tecalote:
Which Firmware or Rom to you use?
[Huawei P8 Guides, News, & Discussion] Tecalote:
I update the Thread today and include how to unroot.

And yes, you are all right, the kernel does autoroot again. Sorry for complications - I find a solution today and post it in the OP!
[Huawei P8 Guides, News, & Discussion] frecciak:
my firmware is b370 (GRA-L09C432B370) installed from updater... (upgraded b200 )

twrp downloaded from this thread

very tnx for your work :D
[Huawei P8 Guides, News, & Discussion] Tecalote:
Yes, sorry for complications .... [MENTION=6233909]AD2076[/MENTION] You all are right.... I make the solution today and I have it already, just make some tests. After I post in the OP - I update the Thread complete and give the link to the kernel I made now and a description, how to unroot (just some steps).