[Guide][Huawei P8] TWRP + Root Systemless Marshmallow Installation (GRA-L09&GRA-UL00)

Search This thread

Rashad83

Senior Member
May 13, 2011
1,150
735
ASUS ROG Phone II
ASUS ROG Phone 5
INSTALL TWRP:

1- Make sure you have an unlocked bootloader. Get your specific unlock code for your Huawei P8 from this page: https://emui.huawei.com/en/plugin.php?id=unlock&mod=detail make sure to register using facebook method that way you will get the code directly. Make sure to stop adblock extension in your browser from blocking the facebook link.

- After getting your unlock code follow the last part of the tutorial http://www.teamandroid.com/2015/06/07/unlock-bootloader-huawei-p8/ starting from step 3.. By the way in the link step 6 is wrong, to enter fastboot mode simply turn off the device and remove any connections from the pc then hold volume down and connect back the usb connection to pc at the same time; it should power the device in fastboot mode.

2. Download the latest TWRP from here: https://dl.twrp.me/p8/, If there is no new update after version 2.8.7.1 then flash this version: http://forum.xda-developers.com/showpost.php?p=65499548&postcount=564. The official TWRP version 2.8.7.1 doesn't work on Marshmallow it will cause an endless bootloop.
- Ty to @rodlane for providing the Twrp. It's working fine.

3. Put TWRP image file in the ADB and Fastboot folder. Then from ADB and Fastboot Folder hold shift and right click to open CMD(command prompt) from there. Once CMD is open run the following code:

adb devices (This will show if your device is connected)
adb reboot bootloader (will reboot the device in bootloader mode)
fastboot devices
fastboot flash recovery "name of the twrp file downloaded .img" ( ex: fastboot flash recovery twrp-2.8.7.1-p8.img )

4. Manually restart the device, by holding power until it restarts.

* A more detailed tutorial for downloading drivers and prerequisites needed which i didn't cover. Ty Sarang. http://www.androidsage.com/2016/01/29/how-to-install-twrp-recovery-on-your-android-device/.
In step 4 in the link to go to bootloader mode for our device turn off the device. Then hold volume down and connect the usb to pc or laptop this will boot the device in bootloader mode. Or you can use the CMD command as suggested earlier.

ROOT P8

1. Download the latest SU.zip from here. http://forum.xda-developers.com/showpost.php?p=64161125.
2. Put the Su zip in SD card or internal memory.
3. When phone is OFF hold (volume up + power key) together until you see Huawei startup logo then release. After you boot into Twrp make sure to select read only mode when the Twrp starts.

Note: If you can't boot into twrp although you flashed it correctly, do this:
*After flashing twrp. restart the device manually by holding power until it restarts.
*From ADB and Fastboot Folder hold shift and right click to open CMD(command prompt) from there. Once CMD is open run the following code:
-adb devices
-adb reboot recovery


4. Inside Twrp go to advance-> Terminal. Click select and type the following code without the quotation "echo SYSTEMLESS=true>>/data/.supersu". Already explained why in Chainfire page. <-----VERY IMPORTANT STEP TO DO OR SU WILL NOT BE INSTALLED AND YOU WILL BE STUCK IN A BOOTLOOP
5. Go back to install menu, and flash the SU zip. After that restart the the device it should restart without a bootloop.

Thanks to @Chainfire for SU and help, and @ralfbergs for pointing out the need to use the command line http://forum.xda-developers.com/showpost.php?p=65458498&postcount=302.

P.S: (12-07-16) I have sold my P8, so I can no longer help with any new updates to the device i am really sorry. I wish everyone the best of luck. Take care
 
Last edited:

tomtro74

Senior Member
Jan 24, 2013
233
48
Ennis
Hi!
Thanks, but not working for me.
I flashed the twrp with success, but my
phone has the stock recovery not the twrp.
I cant understand why.
Any idea?

I think I've seen somewhere, NOT to reboot the phone with fastboot command after flashing recovery, use buttons instead and hold Volume Up while booting, otherwise custom recovery will bee overwritten by stock again.
 

Rashad83

Senior Member
May 13, 2011
1,150
735
ASUS ROG Phone II
ASUS ROG Phone 5
I think I've seen somewhere, NOT to reboot the phone with fastboot command after flashing recovery, use buttons instead and hold Volume Up while booting, otherwise custom recovery will bee overwritten by stock again.

I agree with you, I put it there incase someone needed the code. But before when rooting by flashing a .bat file inside the file the code used had the command line without losing the recovery that's why I also put it there. But it's not a must use anyway. Thanks.
 
Last edited:

x_h168

Member
Mar 1, 2016
8
1
I want to ask: my P8 has root, and successfully installed the xposed framework program, most framework programs can be normal use, however, is the most important Gravitybox program can not run, don't know what the reason, who knows what's the solution?
 

tt_man

Member
Sep 20, 2015
24
1
dosent work for me i have flashed the twrp recovery and i shut down the phone then vol+ with power i accessed the erecovery and the recovery request wifi to download files then failed ....
 

Rashad83

Senior Member
May 13, 2011
1,150
735
ASUS ROG Phone II
ASUS ROG Phone 5
dosent work for me i have flashed the twrp recovery and i shut down the phone then vol+ with power i accessed the erecovery and the recovery request wifi to download files then failed ....
Are you sure you flashed correctly?, if you are, try the twrp file suggested by Voison. Another reason could be the combo keys used to boot to twrp in lollipop its( volume up + power) but i can't confirm if it's the same for Marshmallow.
 
Last edited:

AD2076

Senior Member
Dec 10, 2014
275
289
Roma
I want to ask: my P8 has root, and successfully installed the xposed framework program, most framework programs can be normal use, however, is the most important Gravitybox program can not run, don't know what the reason, who knows what's the solution?
How did you installed Xposed Framework?
 

RicGrollero

Member
Jul 16, 2012
5
0
Laigueglia
Hi, sorry for the OT, but I cannot create a thread so I have to write here. I have a Huawei P8 and I would like to unlock the bootloader but every time I try to connect to the huawei site it always tell me that the server is busy, so I'm hopeless. Can someone help me and do it for me?

Information:
Product: HUAWEI GRA-L09
SN: S7M0216108011240
IMEI: 869370023363473
Product ID: 08552512
 

AD2076

Senior Member
Dec 10, 2014
275
289
Roma
4. Inside Twrp go to advance-> Terminal. Click select and type the following code without the quotation "echo FSTABSYSTEMRW=true>>/data/.supersu". Already explained why in Chainfire page.
THIS DOESN'T WORK AND WILL LEAD TO A BOOTLOOP!!!

The proper command to use in terminal is:
Code:
echo SYSTEMLESS=true>>/data/.supersu

@Rashad83 you should test and troubleshoot before writing a guide. Your signature says your P8 is still on Lollipop...
@all: I am gonna write a proper howto, not just a quick brainless cut & paste from here and there

Regards
 
  • Like
Reactions: belal elsayed

Rashad83

Senior Member
May 13, 2011
1,150
735
ASUS ROG Phone II
ASUS ROG Phone 5
THIS DOESN'T WORK AND WILL LEAD TO A BOOTLOOP!!!

The proper command to use in terminal is:
Code:
echo SYSTEMLESS=true>>/data/.supersu

@Rashad83 you should test and troubleshoot before writing a guide. Your signature says your P8 is still on Lollipop...
@all: I am gonna write a proper howto, not just a quick brainless cut & paste from here and there

Regards
I apologize from everyone for the mistyping that is in the command line, and for causing any bootloop.

@AD2076:

1. Since you are so perfect, and know how to read signatures you should know there is no beta rom for my model's region and i can't test the code, but never the less i have got feedback from others who have tested the command line and it works for them http://forum.xda-developers.com/showpost.php?p=65555974&postcount=26,http://forum.xda-developers.com/showpost.php?p=65568736&postcount=29 , and yeah i have pointed to the right command line back then. If you follow my thread towards the end you will notice i have linked a post to the right command line -> "and ralfbergs for pointing out the need to use the command line http://forum.xda-developers.com/show...&postcount=302".
2. Negativity never solves problems but the opposite it causes ill feelings, I am a human being and i make mistakes that's why the likes of you can post back and correct me, but there is a proper way of doing it without causing ill feelings and embarrassment to others, something like the inbox you could have messaged me to correct the command line without being insulting. I have nothing to gain from writing this thread except helping others in need.
3. You should never take my word or any other for that matter without double checking, that's why we have Google. And my only wrong doing in writing this thread is copying the wrong command line out of hurry which i have my self to blame but the likes of you makes it hard to do any good.
4. "I am gonna write a proper howto, not just a quick brainless cut & paste from here and there". Really..!, may i know what part is copy and pasts beside the command line?, By the way it's "How To" and not howto.......
 
Last edited:
  • Like
Reactions: hillbillie

AD2076

Senior Member
Dec 10, 2014
275
289
Roma
1. Since you are so perfect, and know how to read signatures you should know there is no beta rom for my model's region and i can't test the code, but never the less i have got feedback from others who have tested the command line and it works for them http://forum.xda-developers.com/showpost.php?p=65555974&postcount=26,http://forum.xda-developers.com/showpost.php?p=65568736&postcount=29
Looks I am not so good at reading signatures... not as good as you in writing guides you can't try for sure.
others... they probably enabled system rw in twrp
and yeah i have pointed to the right command line back then. If you follow my thread towards the end you will notice i have linked a post to the right command line.
I did and found the proper command line, but in a "guide" I expect to find exact and doublechecked instructions
2. Negativity never solves problems but the opposite it causes ill feelings, I am a human being and i make mistakes that's why the likes of you can post back and correct me, but there is a correct way of doing it without causing ill feelings and embarrassment to others, something like the inbox you could have messaged me to correct the command line without being insulting. I have nothing to gain from writing this thread except helping others in need.
I tried to be positive pointing out the proper command line to save others from bootloop
I didn't mean to be insulting but I was angry after a lot of time spent for a typo
3. You should never take my word or any other for that matter without double checking, that's why we have Google. And my only wrong doing in writing this thread is copying the wrong command line out of hurry which i have my self to blame but the likes of you makes it hard to do any good.
No one should write a "guide" in a hurry and without doublechecking and testing it, imho

BTW @Rashad83 I am glad you edited the post, you saved some headaches to others and some time to me. Now your one is almost a proper guide and I can confirm it works. Just a few notes:
  • fastboot reboot is not necessary and can be problematic to start in recovery later
  • vol+ and power combo works in marshmallows too
  • to have the combo work please keep keys pressed until the huawei logo appears
  • twrp-2.8.7.1 doesn't work (I am on B317), new_twrp does
  • please reformat it better, it's ugly :angel:

Now, just to be positive, let me link this
guide
No need to downgrade to B170 or whatever... it works using B317 from huawei site.

Apologize for your ill feelings
 

Rashad83

Senior Member
May 13, 2011
1,150
735
ASUS ROG Phone II
ASUS ROG Phone 5
Looks I am not so good at reading signatures... not as good as you in writing guides you can't try for sure.
others... they probably enabled system rw in twrp

Clearly you are "not as good as me" in writing proper english either.
"I expect to find exact and doublechecked" english when commenting. You are so perfect.

Please don't consider replying, i have had enough of your condescending remarks.
 
Last edited:

PointyFinger

New member
Mar 5, 2016
2
0
Hey there, I'm having issues getting into TWRP after flashing it. No matter what I do my phone will not boot into recovery at all, it just boot loops for a little bit before rebooting normally. If it does boot into recovery its the standard one, not TWRP. Any ideas?

Edit: My phone is the GRA-UL00 variant, running build C470B181. Stock EMUI 3.1 Lollipop.
 
Last edited:

Rashad83

Senior Member
May 13, 2011
1,150
735
ASUS ROG Phone II
ASUS ROG Phone 5
Hey there, I'm having issues getting into TWRP after flashing it. No matter what I do my phone will not boot into recovery at all, it just boot loops for a little bit before rebooting normally. If it does boot into recovery its the standard one, not TWRP. Any ideas?

Edit: My phone is the GRA-UL00 variant, running build C470B181. Stock EMUI 3.1 Lollipop.

This thread is for Marshmallow Twrp and root which is different from Lollipop especially the root method. For installing Twrp on Lollipop:
- Make sure you unlocked the bootloader.
- You have all the needed drivers installed in your pc. i have linked a very detailed guide for how to install Twrp and drivers needed please follow it, here is another one with root for our device http://www.droidviews.com/root-huawei-p8-and-install-twrp-recovery/.
*In step 5 in the link use twrp-2.8.7.1-p8.img instead of the old one,the command will be:
fastboot flash recovery twrp-2.8.7.1-p8.img.
*After that manually restart the device, by holding power until it restarts. Then When phone is OFF hold (volume up + power key) together until you see Huawei startup logo then release. You should be able to boot into twrp. To root continue with the link steps.
 
Last edited:

AeonSL

Member
Dec 24, 2015
35
2
I already waited 14 days..and today i tried with facebook account for the unlock code....

"The Huawei ID used to apply for the unlock code has not been used on the device for more than 14 days"

I'm not able to flash anything on this phone...fastboot says it's unlocked but can't flash?



Verstuurd vanaf mijn HUAWEI GRA-L09 met Tapatalk
 

Rashad83

Senior Member
May 13, 2011
1,150
735
ASUS ROG Phone II
ASUS ROG Phone 5
I already waited 14 days..and today i tried with facebook account for the unlock code....

"The Huawei ID used to apply for the unlock code has not been used on the device for more than 14 days"

I'm not able to flash anything on this phone...fastboot says it's unlocked but can't flash?



Verstuurd vanaf mijn HUAWEI GRA-L09 met Tapatalk

So did you manage to get the unlock code or not?, or is it telling you the huawei id is wrong, and your not able to get it.
 

Rashad83

Senior Member
May 13, 2011
1,150
735
ASUS ROG Phone II
ASUS ROG Phone 5
No it is telling me that the the huawei id has not been used for 14 days...???

Verstuurd vanaf mijn HUAWEI GRA-L09 met Tapatalk
Try another huawei id using the Huawei id generator method. For me when i tried to unlock the code it gave me a message "wrong id" so i used this method.
http://forum.xda-developers.com/p8l...otloader-root-p8-p8lite-t3164956#post62851688
Also i just saw this post he had issues with Huawei id too. http://forum.xda-developers.com/showpost.php?p=65673335&postcount=181
 
Last edited:

AeonSL

Member
Dec 24, 2015
35
2
Not working...it gives me the same message that the id has not been used for 14 days..?

Verstuurd vanaf mijn HUAWEI GRA-L09 met Tapatalk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 15
    INSTALL TWRP:

    1- Make sure you have an unlocked bootloader. Get your specific unlock code for your Huawei P8 from this page: https://emui.huawei.com/en/plugin.php?id=unlock&mod=detail make sure to register using facebook method that way you will get the code directly. Make sure to stop adblock extension in your browser from blocking the facebook link.

    - After getting your unlock code follow the last part of the tutorial http://www.teamandroid.com/2015/06/07/unlock-bootloader-huawei-p8/ starting from step 3.. By the way in the link step 6 is wrong, to enter fastboot mode simply turn off the device and remove any connections from the pc then hold volume down and connect back the usb connection to pc at the same time; it should power the device in fastboot mode.

    2. Download the latest TWRP from here: https://dl.twrp.me/p8/, If there is no new update after version 2.8.7.1 then flash this version: http://forum.xda-developers.com/showpost.php?p=65499548&postcount=564. The official TWRP version 2.8.7.1 doesn't work on Marshmallow it will cause an endless bootloop.
    - Ty to @rodlane for providing the Twrp. It's working fine.

    3. Put TWRP image file in the ADB and Fastboot folder. Then from ADB and Fastboot Folder hold shift and right click to open CMD(command prompt) from there. Once CMD is open run the following code:

    adb devices (This will show if your device is connected)
    adb reboot bootloader (will reboot the device in bootloader mode)
    fastboot devices
    fastboot flash recovery "name of the twrp file downloaded .img" ( ex: fastboot flash recovery twrp-2.8.7.1-p8.img )

    4. Manually restart the device, by holding power until it restarts.

    * A more detailed tutorial for downloading drivers and prerequisites needed which i didn't cover. Ty Sarang. http://www.androidsage.com/2016/01/29/how-to-install-twrp-recovery-on-your-android-device/.
    In step 4 in the link to go to bootloader mode for our device turn off the device. Then hold volume down and connect the usb to pc or laptop this will boot the device in bootloader mode. Or you can use the CMD command as suggested earlier.

    ROOT P8

    1. Download the latest SU.zip from here. http://forum.xda-developers.com/showpost.php?p=64161125.
    2. Put the Su zip in SD card or internal memory.
    3. When phone is OFF hold (volume up + power key) together until you see Huawei startup logo then release. After you boot into Twrp make sure to select read only mode when the Twrp starts.

    Note: If you can't boot into twrp although you flashed it correctly, do this:
    *After flashing twrp. restart the device manually by holding power until it restarts.
    *From ADB and Fastboot Folder hold shift and right click to open CMD(command prompt) from there. Once CMD is open run the following code:
    -adb devices
    -adb reboot recovery


    4. Inside Twrp go to advance-> Terminal. Click select and type the following code without the quotation "echo SYSTEMLESS=true>>/data/.supersu". Already explained why in Chainfire page. <-----VERY IMPORTANT STEP TO DO OR SU WILL NOT BE INSTALLED AND YOU WILL BE STUCK IN A BOOTLOOP
    5. Go back to install menu, and flash the SU zip. After that restart the the device it should restart without a bootloop.

    Thanks to @Chainfire for SU and help, and @ralfbergs for pointing out the need to use the command line http://forum.xda-developers.com/showpost.php?p=65458498&postcount=302.

    P.S: (12-07-16) I have sold my P8, so I can no longer help with any new updates to the device i am really sorry. I wish everyone the best of luck. Take care
    1
    4. Inside Twrp go to advance-> Terminal. Click select and type the following code without the quotation "echo FSTABSYSTEMRW=true>>/data/.supersu". Already explained why in Chainfire page.
    THIS DOESN'T WORK AND WILL LEAD TO A BOOTLOOP!!!

    The proper command to use in terminal is:
    Code:
    echo SYSTEMLESS=true>>/data/.supersu

    @Rashad83 you should test and troubleshoot before writing a guide. Your signature says your P8 is still on Lollipop...
    @all: I am gonna write a proper howto, not just a quick brainless cut & paste from here and there

    Regards
    1
    THIS DOESN'T WORK AND WILL LEAD TO A BOOTLOOP!!!

    The proper command to use in terminal is:
    Code:
    echo SYSTEMLESS=true>>/data/.supersu

    @Rashad83 you should test and troubleshoot before writing a guide. Your signature says your P8 is still on Lollipop...
    @all: I am gonna write a proper howto, not just a quick brainless cut & paste from here and there

    Regards
    I apologize from everyone for the mistyping that is in the command line, and for causing any bootloop.

    @AD2076:

    1. Since you are so perfect, and know how to read signatures you should know there is no beta rom for my model's region and i can't test the code, but never the less i have got feedback from others who have tested the command line and it works for them http://forum.xda-developers.com/showpost.php?p=65555974&postcount=26,http://forum.xda-developers.com/showpost.php?p=65568736&postcount=29 , and yeah i have pointed to the right command line back then. If you follow my thread towards the end you will notice i have linked a post to the right command line -> "and ralfbergs for pointing out the need to use the command line http://forum.xda-developers.com/show...&postcount=302".
    2. Negativity never solves problems but the opposite it causes ill feelings, I am a human being and i make mistakes that's why the likes of you can post back and correct me, but there is a proper way of doing it without causing ill feelings and embarrassment to others, something like the inbox you could have messaged me to correct the command line without being insulting. I have nothing to gain from writing this thread except helping others in need.
    3. You should never take my word or any other for that matter without double checking, that's why we have Google. And my only wrong doing in writing this thread is copying the wrong command line out of hurry which i have my self to blame but the likes of you makes it hard to do any good.
    4. "I am gonna write a proper howto, not just a quick brainless cut & paste from here and there". Really..!, may i know what part is copy and pasts beside the command line?, By the way it's "How To" and not howto.......
    1
    Okay i finaly flashed twrp, but not with the help of huawei support.

    Huawei support did nothing for me but caused me a headache!!

    I was able to get the bootloader unlock key from DC-Unlocker.

    Now i can't wait for Cyanogenmod to be ported because EMUI is just bull****t!!


    Verstuurd vanaf mijn HUAWEI GRA-L09 met Tapatalk
    That's great, i was going to suggest that but since it's not free i didn't. Good luck.
    1
    Thanks for your help!

    Verstuurd vanaf mijn HUAWEI GRA-L09 met Tapatalk
Our Apps
Get our official app!
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