yashsingh1/xdaforums huggingface dataset:
[Huawei Ascend Mate 2] BBCHAMPs:
ADB is bundled into this huge SDK package.

I have it installed from eon's ago, and theres plenty of guides to get you going in that sense. However, i did a quick google search and this thread seems to be the easiest one to follow since you ultimately will be only be using ADB and Fastboot. Pretty sure itll install the proper drivers for you too.

http://xdaforums.com/showthread.php?t=2588979

One hiccup i had was that 'adb devices' was showing up unauthorized or something and wouldnt let me reboot into fastboot. To do this manually, turn off the phone and boot it holding Volume Down + Power. Once Huawei logo appears, you can let go of the POWER button only.

You are in bootloader / fastboot mode and can follow the second part of the Guide in the first thread. fastboot oem unlock 16-digit-code

.

---------- Post added at 12:08 PM ---------- Previous post was at 12:07 PM ----------

What problems were you experiencing
[Huawei Ascend Mate 2] synle:
I cannot find the usb driver for the device. However I tried this universal usb driver and it seems to work like a charm.

https://plus.google.com/103583939320326217147/posts/BQ5iYJEaaEH

Also FYI, I used windows 8.1 Home premium.
[Huawei Ascend Mate 2] shokxdauser:
small issues

Hello all,

I'm having some problems with TiBu.. It seems that someone in [Q] - Titanium Backup Thread pointed out that for now TiBu will only backup VIRTUAL items (ie the items that only have the TiBu symbol). But I used another program called File explorer with Root add-on (both from the play store) and it pointed out to me that I don't have sufficient root privileges.

Also I tried to install SuperSU from Clockwordmod but couldn't update the binaries since I needed to have custom recovery vs using Chainfire's SuperSU which seems to be working.

Overall my HAM2 is rooted but is there anything that I should change/look at to resolve the problems or should we just wait till a fully working custom recovery is ready for this awesome phone?

Thanks
[Huawei Ascend Mate 2] BBCHAMPs:
It doesnt seem as if youre actually rooted then. Weird.
[Huawei Ascend Mate 2] shokxdauser:
Any ideas on what to do after I unlock my bootloader? Mine does say unlocked. What has worked for other people? And lastly, has anyone installed the SuperSu app from clockworkmod in the play store?

Thanks
[Huawei Ascend Mate 2] ScoobSTi:
I rooted using Kingo Root, so try that. If that doesn't work for you, there are tons of other methods like Framaroot, Towelroot, etc.
[Huawei Ascend Mate 2] BBCHAMPs:
I went with android based. Towelroot.apk is confirmed working too. Any one of your favorite methods should work fine.
[Huawei Ascend Mate 2] shokxdauser:
Please let me know if I'm annoying anyone.

Once I use, say, towelroot which I do prefer.. What SuperSU app do you recommend?

Specifically I'm interested in how to update the su binaries with SuperSU from CWM vs chainfire..

Any suggestions?
[Huawei Ascend Mate 2] synle:
Hi guys,

Do you guys have problems with Titanium backup? I backed up some system app, and then uninstall those app (NOT THE BACKUP). However, after the process is done, all my backups are gone.
[Huawei Ascend Mate 2] BBCHAMPs:
SuperSU from Play Store will work fine. I have the paid version. Once it installs, just install binaries while still in the OS. Since there is no CWM / TWRP yet you must install that way.

Please, youre no annoyance to anyone, we've gotta do this together. This device has alot of potentional. I would like to see a miui port :P
[Huawei Ascend Mate 2] ScoobSTi:
+1 to that! There's no such thing as being annoying on a place like here.

If I had the time, I wish I could learn about porting ROM's and all that. There's so much potential for our phone.
[Huawei Ascend Mate 2] shokxdauser:
Thanks for that gentlemen,

I too would love to get KK on this; GravityBox KK version to me is very useful.

Right now I guess my three things that are not perfect with regards to root on the phone are:

TiBu giving me the message - Backup Failed - Insufficient free storage available

and Lucky Patcher (now I know that this particular program is frowned upon but I'm more focused on the message it says to me.. )

---> Problem with root. Don't have access to SD card from root. Please update SuperSu and update binary file su from SuperSu.

The third thing which will happen is the custom recovery which to me will solve the above first 2 problems I have been experiencing.

I've googled the first issue with TiBu but no solution yet..

As for the message of access to the SD card from root... any ideas?

Thanks to all for your help..
[Huawei Ascend Mate 2] xordos:
su, then mount sd card manually. This is how I dd out every partitions as backup.

mount -t vfat /dev/block/vold/179:65 /storage/sdcard0

But this won't permanently fix the problem, just a workaround. This is enough for me to do the backup. For myself, I don't use TB etc to backup phone, I either use customized recovery or use dd.
[Huawei Ascend Mate 2] zzEvilGeniuszz:
[MENTION=6019201]dbmj[/MENTION] since you know and also know people who know Chinese, do you think you could port over the Kit Kat rom to English so some of us can test it out? You can find it here I believe.

http://androidforums.com/huawei-ascend-mate-2-4g/861405-kitkat-4-4-2-rom-available.html
[Huawei Ascend Mate 2] xordos:
The chinese version and US version CPU is different, so the kernel etc is different. So I think it can't be directly flash on our phone.

And talk about the language, the OS itself should have English language ( I didn't check personally, but it should have )
[Huawei Ascend Mate 2] dbmj:
No. The Chinese version HAM2 got different CPU. I don't think you can directly flash the rom on the us version phone.
[Huawei Ascend Mate 2] blcistheking:
Are you able to use the volume keys to skip tracks? The option should be in media tweaks.
[Huawei Ascend Mate 2] iammudd:
I don't use that feature but I tested it just now and it works sometimes.

First, both the media player (e.g. ES file explorer) and the GravityBox have to be included in "protected apps" in the power saving setting. Then, (while screen off) the volume buttons have to be held down for a long time (for me, almost 2 seconds). The track WILL skip. Up=Next, Down=Previous. The problem (for my setup) is that pressing the button ALSO pauses the playback. Another long press (or some combination) is needed to un-pause it. The power on button will definitely un-pause and you can see that the track has indeed skipped.
[Huawei Ascend Mate 2] tomjonestom:
type error

Getting the type error when trying to unlock the boot loader, noticed in the recovery thread others having this problem. I did not try it when this was first discovered, only tried it today.
[Huawei Ascend Mate 2] zzEvilGeniuszz:
That is probably a driver issue. Do you have the correct drivers installed? Are you in USB Debugging mode?
[Huawei Ascend Mate 2] tomjonestom:
This is just using the software to get the unlock code before even trying to unlock the bootloader. Sorry should of been more clear in original post.
[Huawei Ascend Mate 2] xordos:
pls check 'requst for... recovery' besides this thread, looks like huawei is stopping provide unlock code for our phone. I could retrieve code 2 days ago with this program. But got type_error today.
[Huawei Ascend Mate 2] firenemesis7:
type error

keep getting type error when trying to get unlock code not sure what i am doing wrong. any tips?
[Huawei Ascend Mate 2] BBCHAMPs:
Maybe try to run as administrator since you're in win7
[Huawei Ascend Mate 2] D33PTHAWTE:
I don't believe the error is being thrown by windows, but rather the key gen program.

I have the same issue.

sent from my HAM2 MT2 L03
[Huawei Ascend Mate 2] firenemesis7:
Yes i do believe it is an error in the program. I wish somebody that has done this would try the program again and see if they now get an error. this really sucks i wonder if it will ever get fixed for us late comers.
[Huawei Ascend Mate 2] rekamyenom:
I am getting the same "type_error" when I enter my SN and IMEI again, is it happening on new entries as well?

I know this may sound stupid, but do we only get one use out of it per computer? Has anyone loaded it on another PC and Tried it?
[Huawei Ascend Mate 2] :
Just send an email to huawei@mobile.com with your SN and IMEI. They will look your device up in their database to confirm if the device has been released. If it has they will email you back with your 16 digit code to unlock the bootloader. May take a few days to get a response.
[Huawei Ascend Mate 2] rekamyenom:
Good to know! I am going to try it......
[Huawei Ascend Mate 2] firenemesis7:
tried it already got this response...

Dear Nicholas,

Thank you for contacting Huawei Technical Customer Service Support and we apologize for any inconvenience. Unfortunately we do not have any boot loader codes available being that any alterations made to the operation system is a void of warranty. I'm sorry that we are unable to further assist.

Best Regards,

Justin at Huawei Technical Customer Service Support
[Huawei Ascend Mate 2] :
Try again. This was the method originally used before they opened up the websites (which the website contradicts this guys response lol).
[Huawei Ascend Mate 2] rekamyenom:
I found another version of it, but I can not get it to expose the scrambled numbers you are suppose to verify, someone else give it a shot.
[Huawei Ascend Mate 2] :
If any confirms that it works let me know and I will send you my info so you may try with my device.
[Huawei Ascend Mate 2] rekamyenom:
For some reason it is just not exposing the scrambled characters your suppose to put in the box to verify you are human.... Weird
[Huawei Ascend Mate 2] 4L0M:
I am having exactly the same problem.
[Huawei Ascend Mate 2] firenemesis7:
Same here no letters.
[Huawei Ascend Mate 2] xordos:
Looks like this is an early version built by same team.

If you goto the last tab, it show build on Oct 12, 2013 and its V1.0 in status bar. The original version we are using is V2.0, built on Aug 20, 2014. It is build by same team/person.

Also, I confirmed by using Network Traffic monitor tool (Wireshark), both apps are send http request to the official Huawei server, basically, it provide some special request parameter that official web page won't provide. That's the reason we saw the tool now showing "error_type" because server side response changed.

P.S. regarding the verification code, you can input dummy value to all the fields, (the verification code is 4 chars, and correct length for S/N and IMEI), and you can see it return a whole page source code as your unlock code. It pretty much means the app's URL/request parameter/response parser built on 1 year ago won't work with current huawei server anymore.
[Huawei Ascend Mate 2] rekamyenom:
Good info thanks.....
[Huawei Ascend Mate 2] firenemesis7:
Guess us newcomers are stuck without root for now...
[Huawei Ascend Mate 2] Gir357:
So what now? Should we just wait until there's another more updated program? I really want to get my phone rooted.
[Huawei Ascend Mate 2] cr2069:
Thanks a lot! It works as expected, used Kingo to root after unlock bootloader.
[Huawei Ascend Mate 2] Gir357:
How did you get the unlock code for the boot loader?
[Huawei Ascend Mate 2] cr2069:
Sent email to mobile@huawei.com to ask for the code, telling them what you want for your mate2(MT2-L03), your phone's IMEI and SN(from the box). Then they will email you the 16 digit unlock code right away(mine took only a few minutes after I sent the email).

Then following the instructions in the first post.
[Huawei Ascend Mate 2] Gir357:
I saw in a previous post that that didn't work, but I guess its worth a shot.
[Huawei Ascend Mate 2] :
I also said previously it would work :). That guy who wrote back to the xda user must have been new or simply lazy in the company. Wouldn't make sense otherwise if they have a website specifically designed for unlocking the bootloader. HTC is the same way.

---------- Post added at 07:06 AM ---------- Previous post was at 07:04 AM ----------

Really hope to get this device swapped out so I can begin :).
[Huawei Ascend Mate 2] Gir357:
Alright, I'll try rooting tonight after I get home.

EDIT: I decided to email Huawei while in study hall and I got my code after about 5 minutes.
[Huawei Ascend Mate 2] xordos:
Thanks for the update, so their email support is not that bad.
[Huawei Ascend Mate 2] 4L0M:
I followed your advice and emailed Huawei support with my IMIE number and S/N.

They emailed me back an unlock code in about 30 mins. I booted into bootloader to unlock the mate 2 and the boot screen told me i was already unlocked....lol? Don't know how I managed that, but I did root the phone when I was on 4.2.2. so maybe that had something to do with it.

I have updated my Chinese Mate 2 MT2-L05 to KitKat 4.4.2 and I have tried every pc and .apk root tool that I could get my hands on with no success. I must have tried at least 20 different root tools.

I followed the AndroidTeen guide on here but the root tool in question posted in that thread CTD every time I run it, I have tried it on 3 different pc's with the same CTD. I am in the UK, whether that has any bearing on this tool not working on my pc's, I don't know.

I had been trying with Root Genius 1.8.7 which I'm guessing is the latest version translated into English. It told me I had root, but when the phone rebooted, it didn't stick.

Anyway, I just found the latest version of Root Genius 2.0.1.3, it's in Chinese, but there is a massive Button called "ROOT" in the centre of the screen.........and my god.....It actually WORKED!!!

The Mate 2 is now on KitKat 4.4.2 and Rooted, with the added bonus in my opinion that Root Genius 2.0.1.3 installs Supersu, rather than KingUser that was installed when I used Root Genius 1.8.7 on the Mate 2 with 4.2.2 installed.

I'm now off to delete the 20 Chinese apps installed on my phone that I have no idea what they are...lol.

I know this is a long read, but I thought it may save someone hours of using Google Translate to find a solution. Thanks.
[Huawei Ascend Mate 2] janrck:
Wow! can you post a link for the Root Genius 2.0.1.3 please?

Thanks for your post
[Huawei Ascend Mate 2] 4L0M:
http://www.shuame.com/root/

RootGenius 2.0.1.3

Download the PC version, that's what I used.

Remember that I have one of the Chinese variants of the Ascend Mate 2. My model number is MT2-L05.

I have no idea if this will work on the US version.

Good Luck !
[Huawei Ascend Mate 2] Gir357:
I now have root! I just unlocked the bootloader through ADB using the code from Huawei, and then used KingoROOT to root the device. Works like a charm! Thanks for the help everyone!

Now we just need a CyanogenMod ROM!
[Huawei Ascend Mate 2] ScoobSTi:
I want CM11 or CM12(?) so bad! Now that I have root, I'm starting to miss the KitKat-only things I had on my old phone.

Anyway, my old phone is a great example of what can happen if we have a developer in the house. That phone was released in 2011 with 2.3 Gingerbread. It's the low end of the low end.

Despite all that, its device forum has 7 KitKat ROMs, tons of JB ROMs, MIUI ROMs, CWM and TWRP.

We need some developers in here! :(
[Huawei Ascend Mate 2] janrck:
I just tried to root with root genius and didnt work, maybe I need to unlock the bootloader first?

Can anyone post the huawei support email from MT2-l05 Chinesse version?

Thanks!
[Huawei Ascend Mate 2] 4L0M:
mobile@huawei.com

I just sent an Email saying :

Hello, great device.

My Model no is : MT2-L05

My S/N is :

My IMIE no is :

Would you be kind enough to send me the 16 digit unlock bootloader code please?

They emailed me back within 30 mins with the code.

Good Luck !
[Huawei Ascend Mate 2] :
mobile@huawei.com
[Huawei Ascend Mate 2] DRAGWAV:
PS you can get the imei and serial number easiest if phone boots. Settings- about phone- status.
[Huawei Ascend Mate 2] blcistheking:
Do Adway and the xposed module youtube adway work?

Might just get a sbh20 to deal with the track changing since this is the cheapest lte phone with outstanding battery.
[Huawei Ascend Mate 2] 4L0M:
Oddly, i'm searching for host file right now as i'm reading your post with Root Explorer as I cannot currently get Adaway or Adfree to block ads
[Huawei Ascend Mate 2] blcistheking:
So that is two things that the mate 2 can't do despite having root. Guess it's back to the drawing board, thanks for replying so quickly.
[Huawei Ascend Mate 2] Bobvark:
the youtube adblock exposed module doesn't work either....

nor does the pandora exposed module (but I guess we don't talk about that one)
[Huawei Ascend Mate 2] xordos:
are you sure, I think its mobile@huawei.com
[Huawei Ascend Mate 2] 4L0M:
Ok guys, I think I have quite a big problem.

Can one of you that are on 4.3 and rooted, use root explorer or similar to see if you have a default.prop file?

I have the Chinese Mate 2 on 4.4.2 and I've just realised that a lot of root apps probably will not work for me as I have a default.prop file

who's first line is

ro.secure=1

Which, by my understanding means the system partition cannot be written to by apps as the build.prop file calls the default.prop file when phone starts, meaning I cannot achieve R/W access in my system partiton as the ro.secure line makes the System partition READ ONLY.

I also believe that the default.prop file is overwritten on every Boot up by the bootloader, meaning that unless I can unpack bootimage and modify or rem out that line, I have no way of changing it. Just a heads up for anyone else.

If anyone can think of a way around this I would be eternally grateful. Cheers.
[Huawei Ascend Mate 2] Gir357:
That's what I sent it to, but i have the us version. I don't know if it makes a big difference though.

---------- Post added at 03:12 PM ---------- Previous post was at 02:54 PM ----------

I found the default.prop file on my phone and it has one line before ro.secure=1 which is ro.crypto.state=unsupported

I can post a pic if you want
[Huawei Ascend Mate 2] iammudd:
Here is the complete file:

#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.crypto.state=unsupported
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=0
persist.sys.strict_op_enable=false
persist.sys.whitelist=/system/etc/whitelist_appops.xml
persist.sys.usb.config=none

I tried changing the value to 0 but after reboot, the original file is restored. Is this why, Titanium Backup and JRummy's build.prop editor are failing?
[Huawei Ascend Mate 2] :
You are correct. Had to double check my last email. Good catch and thanks.
[Huawei Ascend Mate 2] 4L0M:
Thanks iammudd

Mine reads :

#
#ADDITIONAL DEFAULT PROPERTIES
#
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=0
ro.crypto.state=unsupported
persist.sys.usb.config=modem,nmea,mass_storage,adb,diag

ro.config.hw.bootversion=MT2-L05V100R001C17B408_BOOT

I am unable to save build.prop changes after I have edited them with ROM Toolbox Pro build prop editor, or Root Explorer and then rebooted.

I have also tried changing values using Terminal Emulator, but everything is reset back to standard after a reboot. This is probably why I am unable to get Adaway or Adfree working, as they can't overwrite my host file.

If Modding.MyMind and the rest of the guys trying to port TWRP recovery are successful, then I don't think this will be an issue, as TWRP can be set to ro.secure=0 when it boots I think.

Still pretty annoying, and my skills are too limited to work out a fix to be honest. I will class my Mate 2 as Partially Rooted at this point.
[Huawei Ascend Mate 2] ScoobSTi:
I have AdBlock Plus (Xposed) and YouTube AdAway and they work for me. No ads in apps/games and in YouTube.
[Huawei Ascend Mate 2] 4L0M:
Hi ScoobSTI...

Do you have a default.prop file in your root folder with

ro.secure=1

written in it mate?
[Huawei Ascend Mate 2] :
Default.prop won't stick unless you unpack the boot.img, edit the file to your taste, repack the boot.img, then flash the modified boot.img over top of your stock. Make sure you keep your stock for backup ;).

---------- Post added at 07:57 PM ---------- Previous post was at 07:53 PM ----------

If I could unlock the bootloader on my sample device I would proceed with building TWRP. It is WAY easier for me to run tests on my end since I would have access to the build test directly. With that said, it was just recently brought to my attention on my previous test build that the dtb was not found so I am in process of going back and double checking this to see if I, by mistake, built the custom recovery without applying it.
[Huawei Ascend Mate 2] ScoobSTi:
Yes, the line "ro.secure=1" is there. What is this for?
[Huawei Ascend Mate 2] xordos:
Hi ScoobSTi, your phone is MT2-L03, and unlocked/rooted, right?

My phone is MT2-L03, bootloader unlocked and rooted, I don't have ro.secure line in my /system/build.prop

EDIT: sorry, my bad, I was checking /system/build.prop not /default.prop.
[Huawei Ascend Mate 2] ScoobSTi:
Yes, MT2-L03, unlocked and rooted. Also, he asked for default.prop, not build.prop. It's in the very root of the device, not in /system/.

Here is a screenshot. It's in the left column, near the bottom.
[Huawei Ascend Mate 2] xordos:
Oh, sorry, my bad. Yeah, I have that line as well in /default.prop:

And like Modding.MyMind mentioned, this / file system is extract from some image, and reside in RAM, so changes to this file will be revert back to the image content after reboot.

cat /default.prop
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.crypto.state=unsupported
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=0
persist.sys.strict_op_enable=false
persist.sys.whitelist=/system/etc/whitelist_appops.xml
persist.sys.usb.config=none

getprop|grep secure
[ro.adb.secure]: [1]
[ro.secure]: [1]
[Huawei Ascend Mate 2] 4L0M:
OK. Thanks everyone for the feedback.

So the ro.secure=1 line is not the problem as all you US users have this line and still able to mount system r/w on 4.3 with root

The problem is actually with the 4.4.2_r3 update for the Ascend Mate 2.

One of the things it adds is R/W protection in the kernel ( I believe ).

This is not as bad as it could have been as we are able to unlock the bootloader, so making a new boot.img with R/W Protection disabled should be feasible, as opposed to finding a source for the Kernel ( If we were on a locked bootloader ).

Having R/W protection enabled basically makes root access for all intents and purposes pointless for 90% of root applications.

I have no idea how to unpack my boot.img or kernel, but I will read up on it and see if I can work something out.

This may be something worth considering for MT2-L03 owners if you hopefully get your KitKat update at some point, as it may break functionality for a lot of your root apps.

Regards.
[Huawei Ascend Mate 2] superbass311:
Has anyone made a rooting video yet? I have never had to unlock my bootloader myself in order to root my device. All I ever did was hook up to the computer turn on debugger and hit root on the program. Lol. I have no experience in unlocking my bootloader and need help. Phone will be here tomorrow from Amazon prime. Trying to get my ducks in a row.

?

---------- Post added at 11:36 AM ---------- Previous post was at 11:34 AM ----------

KingoRoot is what I have always used but that's step 2. I need help with step one
[Huawei Ascend Mate 2] Gir357:
I might be able to make a simple video tonight or something
[Huawei Ascend Mate 2] superbass311:
I really just need help with adb. I have Windows 8.1 and no experience in adb. However I'm very tech savvy and learn fast. Soon as I get my phone tomorrow I'm going to email Huawei and ask for my unlock code. From the post I've read (and I have read ever post under the HAM2) the customer support is good for fast response.
[Huawei Ascend Mate 2] Bobvark:
Mine Didn't work. What version of Xposed are you using?
[Huawei Ascend Mate 2] xordos:
Not sure what you mean can not mount system as RW, Have you tried cmd line in Terminal or use adb shell

su
mount | grep system
mount -o rw,remount /system
mount |grep system

after remount as rw, it still show /system as read only?

In my MT2-L03, it will show as rw.