yashsingh1/xdaforums huggingface dataset:
[Huawei Ascend Mate 2] notoriouspk:
downloaded recovery image from the first page to my phone tried flashify to flash the recovery img ...for some reason it DID NOT work

Download the recovery img file from the first page .....Then i downloaded (RASHR - Flash tool) from play store....click recovery menu on RASHR on ur phone ...select other from storage ...select the downloaded img file ...click YUP (flash it ) DONE .

got my backup done in 2 minutes .

ofcourse u have to be ROOTED with UNLOCK BOOTLOADER i also installed BUSYBOX :P

have a nexus 5 but MATE 2 battery life just slaughters nexus 5 when it comes to battery life .awesome device
[Huawei Ascend Mate 2] rjan22:
ok I have installed TWRP, now how do I boot to TWRP on my HAM2?
[Huawei Ascend Mate 2] Gir357:
Easy. Turn phone off > Hold power on + Volume up > when screen turns on, let go of power (keep holding volume up) > TWRP
[Huawei Ascend Mate 2] rjan22:
It works thanks, so now that I have done one backup, does this mean I can now uninstall the bloadwares Huawei apps and ASPHALT 8, do you know what safe bloatware can I uninstall? ANd can I uninstall TowelRoot app now?
[Huawei Ascend Mate 2] Gir357:
I don't really know. However I do seem to remember a post about someone having a problem after uninstalling the Huawei Phone Manager.

TBH you're probably better off asking someone else.
[Huawei Ascend Mate 2] xordos:
yes, and actually you can disable them first. also towelroot can be uninstalled.
[Huawei Ascend Mate 2] iammudd:
The following is not related to TWRP but it seems like the filesystem disallows certain operations (e.g. chmod) even when rooted. After re-mounting sdcard1 for root, here's one of my tests:

shell@hwMT2L03:/storage/sdcard1 $ su
su
root@hwMT2L03:/storage/sdcard1 # id
id
uid=0(root) gid=0(root) context=u:r:init:s0
root@hwMT2L03:/storage/sdcard1 # touch test
touch test
root@hwMT2L03:/storage/sdcard1 # echo abcdefg > test
echo abcdefg > test
root@hwMT2L03:/storage/sdcard1 # cat test
cat test
abcdefg
root@hwMT2L03:/storage/sdcard1 # chmod 777 test
chmod 777 test
root@hwMT2L03:/storage/sdcard1 # ls -l test
ls -l test
-rwxrwxr-x system sdcard_rw 8 2014-09-29 09:56 test
root@hwMT2L03:/storage/sdcard1 # rm test
rm test
root@hwMT2L03:/storage/sdcard1 # ls -l test
ls -l test
test: No such file or directory

In the How to root Chinese variant thread , there was mention of set_immutable.list in 4.4.2 but that doesn't exist on our version. This might explain the issues with Titanium Backup (where I can perform a backup immediately after re-rooting but not after, say, a reboot)?
[Huawei Ascend Mate 2] :
Hmmm, I'm wondering if this issue is SElinux related....
[Huawei Ascend Mate 2] superbass311:
Now that you have done the backup you can uninstall what you want but leave the Phone Manager. The Mate 2 only came with 3 or 4 things I think I got rid of. Asaphalt, and the 2 get huawei links. I cant remember what else. post if your not sure. when your all set up the way you like your phone make another backup with twrp and that will be your real reset point.
[Huawei Ascend Mate 2] rjan22:
Bro you might wanna add this video on the First Page, to help people like myself who are new on rooting.

[YOUTUBE]MRiMqDfTHgM[/YOUTUBE]

Big thanks to Joshua Bass, he is one of those guy who is making HAM2 community grows.
[Huawei Ascend Mate 2] :
OP updated with the video and credit properly given to [MENTION=5863839]superbass311[/MENTION] for making the video.
[Huawei Ascend Mate 2] superbass311:
more then happy to make the videos. Woop-Woop for the HAM2 and [MENTION=5537766]Modding.MyMind[/MENTION]. If I would have known it will be the official video I would have put a little more into it. lol. Can I redo it? haahah
[Huawei Ascend Mate 2] :
Sure, feel free to redo it if you like. :)
[Huawei Ascend Mate 2] superbass311:
Official TWRP Install Video

[MENTION=5537766]Modding.MyMind[/MENTION] Here is the long awaited Video Guide: Huawei Ascend Mate 2: How To Install TWRP. Please replace this with the old one. I will be deleting soon. I will have the Official Unlock bootloader video next and maybe you can put that in the proper place also and poof we have both issues covered in HD. haha. With Love XDA! [MENTION=5863839]superbass311[/MENTION]

https://www.youtube.com/watch?v=sjA4F_TzzwQ&edit=vd
[Huawei Ascend Mate 2] :
[MENTION=5863839]superbass311[/MENTION], OP has been updated with your video. Thanks. :)
[Huawei Ascend Mate 2] rjan22:
Now we only need a video of Xposed and how to fix adaway to work on it. If you know what I mean haha. By the way how did you made that option on power menu to boot in "recovery", and your I click flashlight that turns on without going to the app itself?
[Huawei Ascend Mate 2] superbass311:
Haha I will also make you and everyone else that video why I'm on a roll. Once you get Xposed Installer to work you can then Install Adv. Power and its an option for the Screenshot (which I love btw) and extra restart settings.

https://play.google.com/store/apps/details?id=com.xbmi.pureflashlight&hl=en is the flashlight widget I used. Its very responsive and you can turn your phone screen off and it will still stay on if you add it to protected apps under power manager.
[Huawei Ascend Mate 2] superbass311:
Bootloader Unlock

[MENTION=5537766]Modding.MyMind[/MENTION] here is the official How to Unlock your bootloader video.

https://www.youtube.com/watch?edit=vd&v=O2-xGOToHso

Xposed Installer Build Prop edit video uploading now.
[Huawei Ascend Mate 2] :
OP updated with reference to the video that demonstrates how to unlock your bootloader. See OP for the reference, see second post for the video :).

Many thanks [MENTION=5863839]superbass311[/MENTION]
[Huawei Ascend Mate 2] superbass311:
Can you please add: you must email mobile@huawei.com asking:

Hello I purchased the Ascend Mate 2 and I would like my bootloader unlock code.

SN: xxxxxxxxxxxxxxxxxxx

IMEI: xxxxxxxxxxxxxxxxxx

Thank you

they should get a response within 24 hours. This is the 1st 1st step to anything.

---------- Post added at 09:04 PM ---------- Previous post was at 09:00 PM ----------

[MENTION=5537766]Modding.MyMind[/MENTION] and finally the last official video. How to modify the build.prop to get Xposed Installer working with the HAM 2. I'm not sure what thread this goes into but maybe you can put it in the correct space.

https://www.youtube.com/watch?v=-DtWDM8hifM&feature=youtu.be

With great Love XDA!

SuperBass311
[Huawei Ascend Mate 2] Kid_Ding:
Maybe you should build a tutorial thread in q&a showcasing all this information so that [MENTION=5537766]Modding.MyMind[/MENTION] can reference it instead of having to update his thread based on your updates. #justathought
[Huawei Ascend Mate 2] superbass311:
Its an Idea but I think everyone is going to come into the TWRP thread and root there phone. I could be wrong and have been plenty in the past but I don't think anyone is going to read this thread then go into the Q and A thread looking for answers. In my past experience they (me) read the instructions (page 1) then read the rest of the thread. I never leave the thread looking for Q&A. Since I took the time to make the video they can at least go into the proper instructions.

---------- Post added at 09:30 PM ---------- Previous post was at 09:28 PM ----------

Note* also he is not obligated to move anything. If he chooses not to they will be at the end of this thread which is the proper thread I believe and a good place for people to find it. I only asked him because he has been my guidance in this from unlocking the bootloader days.
[Huawei Ascend Mate 2] Kid_Ding:
I get that. But the information you provided is worthy of its own thread. I think if we maintain the order of how topics can be referenced based on OP post and headlines, it will be easy to find the help one may need. I not saying you're doing something wrong. Just that we should not clutter a thread about twrp development with q&a discussions. You guys have a working relation, this was just my opinion. Thanks for listening. As you were.
[Huawei Ascend Mate 2] rjan22:
[MENTION=5863839]superbass311[/MENTION]

I am sorry but I agree, one thread all video is there from unlocking of bootloader, rooting, twrp with backup and restore, and xposed peace out.
[Huawei Ascend Mate 2] :
Hey, it's my understanding that the MT2-L03 may get an update to 4.4.x (or may not). If it does, please let me know if it causes interference with TWRP. I may be required to update the device tree to reflect some changes.

Nothing to worry about of course, but it's known to be the case when a device receives an update.

Thanks :)

Edit: Also, if you are not aware, you will be required to flash back to your stock recovery in order to accept any OTA's. Afterwards, you may flash back TWRP again. Just a heads up for those who are unaware. Please do not attempt to install an OTA through TWRP.
[Huawei Ascend Mate 2] rjan22:
How do we flash back to stock? Oh crap I think I didn't made an image backup of my recovery stock ROM, am I screwed?
[Huawei Ascend Mate 2] :
The same way you installed TWRP ;)
[Huawei Ascend Mate 2] xordos:
You are fine. Check post #7 in this thread.
[Huawei Ascend Mate 2] :
Post seven has been added to the OP just below the disclaimer. A brief reference and a link which will take the viewer straight to your post. Thanks for hosting :).
[Huawei Ascend Mate 2] :
Been busy guys. This is what I was working on.

https://github.com/ModdingMyMind/mkbootimg_tools/tree/master/ARM

See README.md for a sample of how it is used. The original work is from Xaiolu, but I made it compatible for ARM. Not only that, but I revamped the entire process for unpacking and repacking images due to how some images used a non standard mkbootimg binary from the OEM's. To rectify this dilemma I added support. Been at this for days trying to figure out the math formula lol. Finally cracked it last night.
[Huawei Ascend Mate 2] arcadesdude:
Is it normal that my phone boots into twrp recovery from being powered off? I have the phone completely off and plug it into the wall charger and it goes into twrp.
[Huawei Ascend Mate 2] Kid_Ding:
Yes it does that for me too
[Huawei Ascend Mate 2] D33PTHAWTE:
I think that's normal for TWRP because I've had several other devices (HTC, Samsung, and LG) all behave the same way.
[Huawei Ascend Mate 2] :
Typically it is normal if the device doesn't have off mode charging. For example, the original dev who built TWRP for my device didn't include offmode charging so it would boot to TWRP instead. When he moved on to another device I decided to take over and offmode charging was one of the things I fixed.

From what I could see in the ramdisk for ya'lls device it currently has offmode charging. But since I was relying on assistance and doing this blind it was difficult for me to narrow down the solution :-/.
[Huawei Ascend Mate 2] superbass311:
With everything else you have done I think everyone here is willing to overlook this [MENTION=5537766]Modding.MyMind[/MENTION]. Thank you from all of us. With a battery that does not die this is a problem of the past. Thank you Thank You Thank you Again.
[Huawei Ascend Mate 2] xordos:
feel shamed... :)

I think i will play around more build param see if we can make following work (sort by priority)

. adb (this worked in cwm recovery)

. offmode charge

. mtp (put to last as this may not easy)

last night when i do the upgrade, backup, I start to feel adb will be much better than the built in command line. :)
[Huawei Ascend Mate 2] elpcmaster:
The update is not working.

Has anyone tried to do the software online update to their HAM2? It is not working. I think it has something to do with TWRP.
[Huawei Ascend Mate 2] xordos:
pls check the system update thread in general section.
[Huawei Ascend Mate 2] :
Great news guys and gals. [MENTION=3266877]xordos[/MENTION] has found the fix for offmode charging and adb. A test will be conducted to insure it's integrity and if it works then the OP will be updated with the new build. I don't take credit for this fix so be sure to give him thanks.
[Huawei Ascend Mate 2] pucherto123:
I know I can always use the PC method to install TWRP, but I would like to know how to do it from the phone :cool:

Sent from my MT2L03
[Huawei Ascend Mate 2] :
See the OP for instructions on installing TWRP via your device :)
[Huawei Ascend Mate 2] pucherto123:
I did and I'm scared to try it since it says that method is for advanced users lol this is the first time I have rooted a phone......

Sent from my MT2L03
[Huawei Ascend Mate 2] :
Then I wouldn't recommend that method. The dd command is infamously known as Data Destroyer. It has this unique nickname due to it's design and what it is capable of doing if improperly used or if a minor typo has been made. It's a very useful technique that you can do while on the fly and aren't by a computer but I would become more familiar with your device and the state it is currently in and possibly understanding basic linux commands before you decide to attempt something you aren't familiar with or lack understanding too.
[Huawei Ascend Mate 2] pucherto123:
Well I felt ballzier and went ahead and tried it..........but didn't work told me something like "error with the path" and what do you mean by data destroyer? I checked my data folder and is empty when on my other ham2 I have some files in there......

Sent from my MT2L03
[Huawei Ascend Mate 2] superbass311:
lol

Using Rooted Huawei Ascend Mate 2

---------- Post added at 03:18 PM ---------- Previous post was at 03:16 PM ----------

go to the general\how to videos under the mate to threads

Using Rooted Huawei Ascend Mate 2
[Huawei Ascend Mate 2] pucherto123:
Damn it, don't laugh @ me brah ROFL

I'll just wait till I get home and install TWRP LOL

Sent from my MT2L03
[Huawei Ascend Mate 2] :
Data Destroyer isn't referencing your data directory lol. dd is designed to write images in many ways than one. It is very diverse in it's capabilities. However, if improperly used you could literally destroy whatever it is you are attempting to write to. Check out what dd is all about on something such as wiki :)
[Huawei Ascend Mate 2] MikeyLee:
Edit+++ Finally got it to work
[Huawei Ascend Mate 2] xordos:
As some of you already noticed from his profile, Modding.MyMind just PM me a few days back that he maybe will have less and less time coming to XDA. So here I want to thank him again for giving big help on rooting and building TWRP on our Mate2 devices. Shortly after we got our phone rooted, without a device to test, he still managed to successfully build the TWRP for us. Thank you, Modding.MyMind.

[MENTION=4235172]4L0M[/MENTION],

OK, so I think I am going to post the MT2-L05 (Chinese LianTong Version) TWRP alpha build, it has a huge defect that it could not handle the internal storage properly, but anyway, want to post the build so anyone interested can try:

http://xdaforums.com/ascend-mate2/orig-development/alpha-teamwin-recovery-project-t2922871
[Huawei Ascend Mate 2] notoriouspk:
ok i have unlocked my bootloader and rooted my mate 2 when i try to flash twrp ...all goes well i get the msg 0.10 sec done finished in cmd when i download and flash TWRP ...but when i restart my phone it always goes to Android recovery ...dosent matter how many times i try restarting it or flashing TWRP again and again ...i tried flashing recovery through flashify ...too same results twrp manager same thing

confused whats going on ...can any of u guys help ...i think the minor update that we had a few months before might have to do something with it ....

Rom manager shows TWRP installed

but

it it always goes back to stock recovery .:(

build number (mt2-l03v100r001c00b148)
[Huawei Ascend Mate 2] xordos:
Can you make a screenshot when you flash the recovery image, just want to see the cmd line and output.
[Huawei Ascend Mate 2] pucherto123:
Did you take the B148 update already
[Huawei Ascend Mate 2] xordos:
yeah, I forgot that, after update, twrp install may have issues, check this thread around post 169:

http://xdaforums.com/showthread.php?t=2897452
[Huawei Ascend Mate 2] husky55:
I am an idiot. I cannot downoad the TWRP file from the 1rst page. I disabled the anti virus and web shield and I got the large arrow but no IMG file for the TWRP file. What do I have to do? I have rooted my HAM2 but I need recovery BK. I tried to install TWRP through the Play store but it did not work. Please help me. I am on B148.

---------- Post added at 09:36 AM ---------- Previous post was at 08:57 AM ----------

I had the same exact problem. I cannot download the img twrp file. What is going on. I also have the B148.
[Huawei Ascend Mate 2] xordos:
OK, the original hosting site has more ads now and is confusing, please use following URL to download:

http://tinyurl.com/q62m68x

Select this file: TWRP_MT2-L03_RECOVERY_modding0923.img

md5sum: 983cb674760b86ecee12c971087848f7

Alternatively, There is an offical TWRP team build, which also works fine:

http://xdaforums.com/ascend-mate2/orig-development/recovery-twrp-2-8-0-0-touch-recovery-t2913270
[Huawei Ascend Mate 2] hahyun6:
How do I remove TWRP and replace it back with stock? Thanks!
[Huawei Ascend Mate 2] xordos:
Just use the same fastboot command and provide the stock recovery image (see post #7) filename as the last parameter.
[Huawei Ascend Mate 2] :
MT2-L03 TWRP 2.8.4.0 with LED support <-- Download link

For those looking to be satisfied with an LED indicator while in TWRP then here you go.
[Huawei Ascend Mate 2] kimtyson:
https://dl.twrp.me/mt2l03/twrp-2.8.6.0-mt2l03.img.html

There is now a 2.8.6 version. Going to try it out now. Will let you know.

EDIT: It works with newest 2.8.6. One thing I noticed is that the old version, 2.8.0, had the wrong date in the backup file name. That is fixed in this version. And it is blue instead of the old color (orange?). I flashed it using ADB, as instructed in the first post.
[Huawei Ascend Mate 2] pckarma112:
2.8.6

hI. I read your post about 2.8.6. I have it installed. Went with the app from play store to install it. That went fine. When it installed. It asked me if I wanted to aplly fix to write to ext card. I did. But, I think it may have had cards backwards? I notice now when I went to backup that I can only backup to internal? Do you have this problem? or anyone? Know how to fix it for our phone? I know its a post with 3 questions. Sorry, but Im stumped. Thanks
[Huawei Ascend Mate 2] kimtyson:
I almost bricked a phone using the Play Store TWRP installer for the very reason you stated. I don't like that question about the fix for SD cards. For that reason I always install TWRP via ADB. I think you were actually supposed to say NO to the question but I am not an expert on it since I don't use it. Someone else might help or you could search a little. The issue is not only applicable to the HAM2.

Once in TWRP, you can choose where you want to backup to.
[Huawei Ascend Mate 2] pckarma112:
twrp

Well, I was aware of the problem with sd card writing and kk. Up till now. I have always used cmw. So I really dont know twrp that well. As for the install with the app. It was easy and seemed like a no brainer for the question. Of course I want to do my nandroids to ext sd. lol. Now I do see in the twrp app where there is a option in settings to UNDO this. I will try that. As far as I know all it does it change a setting in a xml file in ect folder to write to ext sd. So no biggie. Where I am confused is You say there is a option in twrp to backup to ext. Then, I am missing it completely. Like I said I dont know it well. Just know I already did a backup and it never asked me to where. It did the backup to internal. I will keep playing around with it and see if I am just missing it ? My hope was that maybe it was just something simple and you could hint me to it. Anyways, Il do some reading and see what I can find. Something else that is strange with trwp and this may be related. It wont format my ext sd card either. I get the infamous E: unable to remove partition table. So, maybe it has something to do with how the card is already partitioned? Who knows. Thanks for responce. Il see what I can do. If this was caused by the app install of twrp. Il come back and tell..

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

Ok, so all this confusion about the backup was a pretty simple answer. As I said. I am not very familiar. with twrp. So after the kind responce from the gentlemen above. I went back and played with twrp some more. Thats when i finally see at one of the top gray bars a option to change direction of backup. That was all I needed. Sorry to take anyones time. As far as twrp manager. I had no issues with it at all. It was a breeze. Now that It did its job. I see no reason to keep it and will be uninstalling it. Blame this on old eyes..lol Thanks
[Huawei Ascend Mate 2] kimtyson:
I used to use CWM but moved to TWRP about 1.5 years ago and never looked back.

To pick your location in TWRP select Backup and then toward the bottom of the selection, after you put a check mark on the partitions you want to back-up, push the button that shows "Storage". (Mine reads "Storage: MicroSD". Once you select that button a window opens where you can select your desired storage location for the back-up (Internal, MicrosSD, or even OTG!)

I'm not sure about the formatting your SD card question. I have to play with mine a bit more I guess.

Glad you found it. I left my answer for anyone else that has the same question.

Personally, I'd leave TWRP installed so you can do other back-ups in the future, or to install any custom ROMs that we might see.
[Huawei Ascend Mate 2] pckarma112:
Yes I will

Thanks again for pointing it all out. What i meant was I am going to uninstall the twrp manager app from playstore. Not twrp itself. But I will say this. I do not trust formatting a sd card with twrp. In messing around with it. I almost formatted my internal sd. Now, maybe this has something to do with that write to ext question I got when i installed twrp manager? Not sure. I only know if I had not been paying attention. I may have been screwed. I would still be interested to know which version of twrp seems to be the most stable for this phone? Just user experience. Maybe its me not being used to it. But picking the wrong sd card to format would be a disaster. I still like cwm better cause I had always used philz version of it. But im grateful that team win made this for our phone. Going to send them a six pack. For now I just did my formatting in pc. I want to see if I can get link2sd working on this. Always need more room....lol Thanks, again.
[Huawei Ascend Mate 2] notoriouspk:
internal storage not showing ?

I have twrp v 2.8.7.0 I cant see my internal storage in twrp cleared cache n dalvic still nothing

when phone is booted I cant see internal storage in file manager

what am I doing wrong ?

need help plz

thanks
[Huawei Ascend Mate 2] :
If on 5.1 then it is my understanding that the File Manager isn't equipped for identifying the fused internal sd located at /data/media but I believe there is a simple fix for that. I just cannot remember off the top of my head. As for not seeing internal sd within TWRP you need to give more details, maybe provide a screenshot as to what you are looking at while in TWRP and even provide a recovery log so that assistance can be provided.
[Huawei Ascend Mate 2] Moody66:
Open Settings.... Click Storage... You will see Default Location. change it. It will tell you to reboot. That should solve your issue.
[Huawei Ascend Mate 2] notoriouspk:
thanks guys for ur replys was in a remote area no WiFi no data

Sorry for replying late

SD card is fine now

flashed twrp L connect USB cable

window shows internal storage (but says damaged sd )...from here u can do what u want ..

note : SD isn't damaged its just not properly readable ...won't show all files but u can copy files to it

following is what I did

copied old trwp backup to internal

restore from twrp

copied Dload foler to internal and on microsd

flashed stock huawei recovery

booted lollipop>>updater >>Menu>>local flashed lollipop upgrade

All back to normal

flashed TWRPL again

internal storage was deleted in the process ...on a brighter side lollipop running smoother

now all I need is an update from huawei for lollipop