[ROOT] Full Root for the Mate 9

ante0

Senior Member
Dec 28, 2009
3,206
1,576
243
Stockholm
thanks.how i flash a decrypted boot image?please say to me step by step.thanks
What's your full model?
L29CxxxByyy

There is an easy way as I'm not at my computer, but I need to make sure your models HW data and Public data exists.

Also, you can OTA just fine, just need to reflash stock recovery when you do.
 

infoenekas

Senior Member
Nov 6, 2014
115
9
0
What's your full model?
L29CxxxByyy

There is an easy way as I'm not at my computer, but I need to make sure your models HW data and Public data exists.

Also, you can OTA just fine, just need to reflash stock recovery when you do.
mha-L29C185B158
MY BRO...I SUCCESS to flash descrypt image and then Superuser ...then wipes...then install apk
but root not work.. i can uninstall system app by an uninstaller system app
i install super su from google store....it wants update but faild...in next try i select from recovey...and now my phone not load:crying:....it stay on huawie logo...format data again ...but not usefull
help...please...i love this phone :crying::(
.thanks
 
Last edited:

eddmecha

Senior Member
Jan 26, 2011
553
204
0
Penampang
mha-L29C185B158
MY BRO...I SUCCESS to flash descrypt image and then Superuser ...then wipes...then install apk
but root not work.. i can uninstall system app by an uninstaller system app
i install super su from google store....it wants update but faild...in next try i select from recovey...and now my phone not load:crying:....it stay on huawie logo...format data again ...but not usefull
help...please...i love this phone :crying::(
.thanks
u cannot use supersu ,instead use phh superuser bcoz supersu is not supported
your step should be
1-UBL
2-flash twrp thru adb
3-reboot to twrp
4-format data
5-reboot into twrp thru reboot option in twrp
6-flash decrypt boot img
7-flash superuser.zip
8-flash hw data.zip n public.zip
9-reboot to system
10-install phh superuser from playstore
 
Last edited:

infoenekas

Senior Member
Nov 6, 2014
115
9
0
u cannot use supersu ,instead use phh superuser bcoz supersu is not supported
your step should be
1-UBL
2-flash twrp thru adb
3-reboot to twrp
4-format data
5-reboot into twrp thru reboot option in twrp
6-flash decrypt boot img
7-flash superuser.zip
8-flash hw data.zip n public.zip
9-reboot to system
10-install phh superuser from playstore
thanks...
in the other words you say do all steps again...
but
how find hw data.zip n public.zip for my model?!
i use this topic :https://forum.xda-developers.com/ma...oot-mate-9-t3556590/post71116171#post71116171
but i do not know what put Instead region?(mu model is mha-L29C185B158 )
how i load download mode? i can not load it now!
 
Last edited:

gm007

Senior Member
May 29, 2011
7,813
4,492
253
Are those for L29C432B156?

What are they used for and how to actually find them on per-model base?

Gesendet von meinem MHA-L29 mit Tapatalk 2
Those files are the data and apps for each firmware.
Let me explain how you get the files:
First check the firmware for ur model here http://hwmt.ru/oth/HWFF/info/view.php?find_model=mha

Find a full firmware package.
in this example i will use L29C432B156.

Copy the link to ur browser and change at the end of the link update.zip to filelist.xml

http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1366/g104/v75974/f2/full/filelist.xml

Open it in ur browser, you will see the path of each file.
For data file it's update_full_hw_eu.zip and the path is hw/eu ,so replace filelist.xml in the link to /hw/eu/update_full_hw_eu.zip
You will see full link like this: http://update.hicloud.com:8180/TDS/...4/v75974/f2/full//hw/eu/update_full_hw_eu.zip

Do the same for public zip.

Hope it's clear.
 

ante0

Senior Member
Dec 28, 2009
3,206
1,576
243
Stockholm
Those files are the data and apps for each firmware.
Let me explain how you get the files:
First check the firmware for ur model here http://hwmt.ru/oth/HWFF/info/view.php?find_model=mha

Find a full firmware package.
in this example i will use L29C432B156.

Copy the link to ur browser and change at the end of the link update.zip to filelist.xml

http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1366/g104/v75974/f2/full/filelist.xml

Open it in ur browser, you will see the path of each file.
For data file it's update_full_hw_eu.zip and the path is hw/eu ,so replace filelist.xml in the link to /hw/eu/update_full_hw_eu.zip
You will see full link like this: http://update.hicloud.com:8180/TDS/...4/v75974/f2/full//hw/eu/update_full_hw_eu.zip

Do the same for public zip.

Hope it's clear.
Way easier than my previous "method". Had no idea about filelist.xml

Are those for L29C432B156?

What are they used for and how to actually find them on per-model base?

Gesendet von meinem MHA-L29 mit Tapatalk 2
They're data and Public zips. Settings, apps, etc. Without it you won't get System Update in settings and camera tends to break w/o it. Settings app itself tends to get iffy too if you don't flash it and wipe dalvik/art and cache.
Themes break without it. And you can't set intervalled wallpaper without it. So stuff do break. :p
The one you have quoted might be for C432B156, but better if you get your own if you need it.

When you update via Funky or Firmware Finder those are downloaded automatically, not sure of they are when you OTA as you can't find them using the OTA links on hwmt.ru.
And they're wiped (/data/hw_init/)when you unlock bootloader (/data wipe) or format Data. So that's why you should flash them after formatting data in twrp
 
Last edited:
  • Like
Reactions: gm007

infoenekas

Senior Member
Nov 6, 2014
115
9
0
hi to all
i do not sure about my complete model . sure "mha-L29" only.
what is my region? is eu?
my phone stay on boot logo
i try to flash hw and public file. but i do not know what is my region?
 
Last edited:

eddmecha

Senior Member
Jan 26, 2011
553
204
0
Penampang
thanks...
in the other words you say do all steps again...
but
how find hw data.zip n public.zip for my model?!
i use this topic :https://forum.xda-developers.com/ma...oot-mate-9-t3556590/post71116171#post71116171
but i do not know what put Instead region?(mu model is mha-L29C185B158 )
how i load download mode? i can not load it now!
try to flash a fresh boot.img,do u have any backup in twrp before you flash the patched boot.img?if not then try to extract from update.app of your firmware
 

nitrate

Senior Member
Dec 24, 2008
179
21
0
Goerlitz
Way easier than my previous "method". Had no idea about filelist.xml



They're data and Public zips. Settings, apps, etc. Without it you won't get System Update in settings and camera tends to break w/o it. Settings app itself tends to get iffy too if you don't flash it and wipe dalvik/art and cache.
Themes break without it. And you can't set intervalled wallpaper without it. So stuff do break. :p
The one you have quoted might be for C432B156, but better if you get your own if you need it.

When you update via Funky or Firmware Finder those are downloaded automatically, not sure of they are when you OTA as you can't find them using the OTA links on hwmt.ru.
And they're wiped (/data/hw_init/)when you unlock bootloader (/data wipe) or format Data. So that's why you should flash them after formatting data in twrp
Ok, so what i did was: unlock Bootloader, flash TWRP, flash decrypted boot.img, wiped data, flashed Superuser.

I didn't flash any of those two files. Maybe that's the reason why "Update" doesn't open if i go to the settings and enter "Update" in the search box. The button appears as i'm about to enter the word "Update" into the box, but nothing happens if i hit it.

What happens if i go to the recovery and do flash any of those files? Will it wipe my device? Everything is running just fine but it might be that i missed something...

Thanks in advance.

Gesendet von meinem MHA-L29 mit Tapatalk 2
 

ante0

Senior Member
Dec 28, 2009
3,206
1,576
243
Stockholm
Ok, so what i did was: unlock Bootloader, flash TWRP, flash decrypted boot.img, wiped data, flashed Superuser.

I didn't flash any of those two files. Maybe that's the reason why "Update" doesn't open if i go to the settings and enter "Update" in the search box. The button appears as i'm about to enter the word "Update" into the box, but nothing happens if i hit it.

What happens if i go to the recovery and do flash any of those files? Will it wipe my device? Everything is running just fine but it might be that i missed something...

Thanks in advance.

Gesendet von meinem MHA-L29 mit Tapatalk 2
Yup, that's why.
Just flash Public first then HW, it won't wipe anything.
Well, public does wipe but only the contents of /data/hw_init/ which should be empty. You could just check if it is before flashing. And follow @gm007 's post to getting hw and Public.
 

vipivj

Senior Member
Jan 10, 2017
119
11
0
mha-L29C185B158
MY BRO...I SUCCESS to flash descrypt image and then Superuser ...then wipes...then install apk
but root not work.. i can uninstall system app by an uninstaller system app
i install super su from google store....it wants update but faild...in next try i select from recovey...and now my phone not load:crying:....it stay on huawie logo...format data again ...but not usefull
help...please...i love this phone :crying::(
.thanks

You need to use all the files for C185B158
 
Last edited:

audioralf

Senior Member
Mar 12, 2011
1,318
377
0
Cad someone confirm please that he has been rooted and managed to get ota without using funkyhuawei?


My device: Mediapad X2 GEM 701->703 B212 KangVIP (AJ mod)
 

ante0

Senior Member
Dec 28, 2009
3,206
1,576
243
Stockholm
You can receive ota when rooted but you cannot install it.
You should be able to with stock recovery/boot?

That kind of defeats the purpose though I guess, as you'd have to decrypt (if you want to stay decrypted) and install superuser again.

Reading up on it now, Nexus 5/6 OTA's seem to check the integrity of /system, so if you have busybox etc installed it would fail and thus would not install OTA.
Only way to get OTA would be to flash stock system.img again, as the whole partition is checked (checksum, if no match it fails).

If this is the case with Mate 9 I do not know, but I'd guess it is. (and it might check other partitions too)
 
Last edited:
  • Like
Reactions: gm007

nitrate

Senior Member
Dec 24, 2008
179
21
0
Goerlitz
Yup, that's why.
Just flash Public first then HW, it won't wipe anything.
Well, public does wipe but only the contents of /data/hw_init/ which should be empty. You could just check if it is before flashing. And follow @gm007 's post to getting hw and Public.
I've been able to flash PUBLIC without any problems. But flashing HW gave me ERROR 7.

So, i rebooted and realized that ROOT was also lost. :confused:

How to flash HW?

Gesendet von meinem MHA-L29 mit Tapatalk 2
 

ante0

Senior Member
Dec 28, 2009
3,206
1,576
243
Stockholm
I've been able to flash PUBLIC without any problems. But flashing HW gave me ERROR 7.

So, i rebooted and realized that ROOT was also lost. :confused:

How to flash HW?

Gesendet von meinem MHA-L29 mit Tapatalk 2
It does give errors. It tries to run commands that TWRP can't execute ('mountencrypt and update_huawei_pkg_from_ota_zip')
Root shouldn't be lost because of it, unless you flashed back stock boot?