yashsingh1/xdaforums huggingface dataset:
[Huawei Ascend Mate 2] 4L0M:
That's great, thank you very much.

I have just sent xordos a link with stock MT2-L05 recovery image that I have extracted recovery kernel and ramdisk from.
[Huawei Ascend Mate 2] :
I look forward to bringing you guys TWRP. :)
[Huawei Ascend Mate 2] gierso:
isnt the Source that appeared in the wild a EMUI 3.0 kernel ?

so its probably kitkat :D unless its not..
[Huawei Ascend Mate 2] xordos:
Hi, Forwarded you the information I got from 4L0M, to my surprise the L05 has very big difference, no only just the CPU, the whole file system, and like you mentioned, it is using emulated storage (honest, I saw this a few times, but really don't know too much), and doesn't have DTB section.

So, I guess this is exceed my ability, since L03 recovery is my first and only experience on twrp. :)
[Huawei Ascend Mate 2] johnclarkson:
great appreciation to you for putting effort on l05 model as well. count me in as the tester. not much knowledge but with spirit with me.
[Huawei Ascend Mate 2] elpcmaster:
Reroot

Can anyone explain how I can reroot with TWRP? The phone was originally rooted with Towelroot.
[Huawei Ascend Mate 2] Kid_Ding:
http://xdaforums.com/showthread.php?t=1538053

Download zip version flash via twrp
[Huawei Ascend Mate 2] elpcmaster:
Ok thanks. :)
[Huawei Ascend Mate 2] good_apollo:
ok.

i bricked my phone before after i rooted it. i am trying to install twrp so i can have a backup. i have never done it before and i feel like an idiot because i cannot figure this out. any help would be appreciated.

also, huawei just released the code for the stock rom on their website.
[Huawei Ascend Mate 2] xordos:
ok, so for this new phone, have you unlocked the bootloader yet? which step you have question. you need give more information so we can help.
[Huawei Ascend Mate 2] good_apollo:
yes. unlocked, and rooted with towel root.

i downloaded twrp to my pc already.
[Huawei Ascend Mate 2] xordos:
To make it easier, copy the recovery image TWRP_MT2-L03_RECOVERY.img to the same folder as your fastboot.exe

Then you boot to bootloader, the same screen where you input your bootloader unlocker code,

fastboot flash recovery TWRP_MT2-L03_RECOVERY.img

And once above flash is successful, do following to boot into recovery

0) Hold power 10seconds to reboot phone.

1) Once booted, Turn off the phone.

2) Hold the power button and volume +.

Sometimes the last step may still boot normally to Android. just retry a few more times.

Once you are in TWRP, you can backup your phone.
[Huawei Ascend Mate 2] good_apollo:
The code you said to enter, do i type that into the command prompt screen in the pc?
[Huawei Ascend Mate 2] :
Yes, and so everyone else is aware, there is an app called TWRP Manager on the Play Store. Many of you may find it very useful.
[Huawei Ascend Mate 2] superbass311:
Good.apolo may I ask if your already rooted why do you want to reroot your phone with twrp? I understand to back up but as of today there is no custom Roms for the mate 2 and its still more or less in Dev mode. Let them figure out all the quarks and in the mean time enjoy your already rooted phone. Rooting it with towel root was a milestone in itself.
[Huawei Ascend Mate 2] good_apollo:
ok, ran the code, gave me a big ol string of data.

rebooted into system recovery by holding the volume +.

now, i'm not sure what to do. it looks the same. should i see twrp in the recovery boot page?
[Huawei Ascend Mate 2] Kid_Ding:
Root potentially puts your device at risk of failing due to user error. TWRP gives you the opportunity to start over or revert to your last backup.
[Huawei Ascend Mate 2] xordos:
Actually, it is very important to have backup using recovery once you have root. Having root without backup is pretty dangerous, just like apollo previous phone that got soft-bricked without backup.
[Huawei Ascend Mate 2] good_apollo:
i wanted to make some changes to the phone, and did not have good luck last time. i wanted to make a backup first.
[Huawei Ascend Mate 2] Gir357:
I flashed TWRP and my phone is still rooted.....or did I miss something?
[Huawei Ascend Mate 2] xordos:
yes, you should see the twrp image in the 1st post.

if not, it is safe to install the recovery again, and you need tell us, or take a pic that 'big ol string'
[Huawei Ascend Mate 2] superbass311:
Yes but after you pimp out your status bar and nav bar and uninstall the 4 bloatware apps on our HAM2 what else is there?
[Huawei Ascend Mate 2] good_apollo:
this is what i got.
[Huawei Ascend Mate 2] xordos:
From Wikipedia, the free encyclopedia

TWRP, short for Team Win Recovery Project, is an open-source recovery image for Android-based devices.[2][3] It provides a touch-enabled interface which allows users to install third-party firmwares and backup the current system, which are often unsupported by stock recoveries.[4][5][3][6] Therefore, it's often installed when rooting Android devices.[7]
[Huawei Ascend Mate 2] Gir357:
Yes I know this but a previous post made it sound like you have to re-root after you flash TWRP.

Oh well, I guess its not that important. My phone is rooted and I have TWRP, so I'm fine.
[Huawei Ascend Mate 2] xordos:
Right, no, you don't need to re-root. :)
[Huawei Ascend Mate 2] good_apollo:
did the picture help out at all?
[Huawei Ascend Mate 2] :
You can use TWRP for a variety of things. Not just for backups and restores. For example, I could theme the stock Rom and put together a zip using the modified files needed to make the theme possible and all the other user has to do is flash that zip from their custom recovery. The zip handles the rest. However, if you aren't a "poweruser" then TWRP will only have it's limitations to that majority. You can use TWRP to pretty much mod the heck out of your device and share it with your peers (assuming you know what you are doing). To get an idea of what TWRP is capable of then I would suggest checking out other forums here on XDA and see what other Devs/Users are doing for their devices.

I personally write scripts to be used on phones pretty often. It's very useful knowledge and gain :).
[Huawei Ascend Mate 2] xordos:
Looks like you didn't type the command correctly..

you can scroll up a little bit, and make sure the command you typed is exactly as it is showed in my post.
[Huawei Ascend Mate 2] good_apollo:
i screwed that right up.

ok, ran it again. this is what i got.
[Huawei Ascend Mate 2] xordos:
you need copy the image file to c:\adb, then run the command again
[Huawei Ascend Mate 2] superbass311:
Isn't that what xposed modules do? Like gravitybox
[Huawei Ascend Mate 2] good_apollo:
sweet jesus.

got it.

thanks, you are the man.....or woman.

any way i can donate some scratch?
[Huawei Ascend Mate 2] :
https://github.com/ModdingMyMind/MyMinds_Kernel_Swap?files=1

https://github.com/ModdingMyMind/Deodex_Android_Device

Above links are an example...
[Huawei Ascend Mate 2] xordos:
Cool and congrats!! Now you should read more about TWRP, and make sure you made a (or better, multiple) good backup.

If you like, pls donate to Modding.MyMind, he spent lots of time and effort building this recovery for us, that he even didn't have a unlocked Mate 2 to test.
[Huawei Ascend Mate 2] :
No need to donate :). A simple thanks will suffice.
[Huawei Ascend Mate 2] :
[MENTION=5863839]superbass311[/MENTION], http://xdaforums.com/showthread.php?t=2528686

A bit more learning. Though, its pretty basic considering you can do way more than what the link shares.
[Huawei Ascend Mate 2] xordos:
Wa, thanks for share these examples, usually I can see those update.zip to apply some patch/mod kinds of thing. But didn't see such functions/script used in recovery.

And to borrow a joke I saw the other day, Can we build a phone dialer into recovery, so we don't even need to boot into OS. :laugh:
[Huawei Ascend Mate 2] :
https://github.com/ModdingMyMind/TWRP_IMAGE_PORTER

If you look at the script in the above repo you will see that I embedded a binary into the actual script so instead of having the binary and script separated as two it comes in one package and the script pulls the embedded binary out from within when needed to be installed and used. You can do a lot. Goes back to what I said earlier about being a "poweruser" :).
[Huawei Ascend Mate 2] good_apollo:
thanks. Will do. Just edited the build.prop so i could get gravity box installed.

Got the navbar, and status bar updated. Looks great. Thanks for everybodys help.
[Huawei Ascend Mate 2] xordos:
Hey, actual, I recommend you make a backup now before you do anything further.
[Huawei Ascend Mate 2] good_apollo:
just made another backup.

Question though.

How,much space do these backups take?
[Huawei Ascend Mate 2] :
Depends on how much stuff you have on the partitions you are backing up. It's never the same with everyone unless the backup is completely stock.
[Huawei Ascend Mate 2] xordos:
The backup is located

/storage/sdcard0/TWRP/BACKUPS

/storage/sdcard1/TWRP/BACKUPS

depends on which storage you chose.
[Huawei Ascend Mate 2] good_apollo:
thanks. made another backup, deleted the last one.

is it safe to store the backups on the sdcard instead of the system?
[Huawei Ascend Mate 2] :
The backup will be stored on either your internal or external sdcard. By default it will be saved to which ever storage you have selected. Won't be stored to your system.
[Huawei Ascend Mate 2] xordos:
yes, sdcard is good and safe. you can also copy them out to PC as extra copy. Just in case card got damage, or delete by accident.
[Huawei Ascend Mate 2] 4L0M:
Not sure if you guys know or not, but if you have xposed installed ( I use 2.5.1 as it's the safest option by a mile at the moment and actually works properly ), you can install wanam module, which gives you the ability to have 4-way reboot menu when you hold the power button in and choose reboot option, saves you having to mess around if you quickly want to get into recovery or bootloader ( Obviously I don't know if it will load TWRP up, but I can't see why it wouldn't ) you can also instant screenshot, disable mobile data, screen record and put into aeroplane mode from this quick setting too :

[IMG="wanam"]http://i155.photobucket.com/albums/s297/xx4L0Mxx/14_zpsc4266516.jpg[/IMG]
[Huawei Ascend Mate 2] superbass311:
re root

Guys I want to go ahead and add TWRP onto my Mate 2 because its bugging me that I dont have it. Right now my bootloader is already unlocked and i'm rooted using towelroot. I have my phone customized just the way i like it with all my Xposed modules and stuff. My question is do I have to do a full unroot using SuperSU (which I installed from the Play Store) then if that does not brick my phone re root it using TWRP Root? Will re rooting factory reset my phone again like with towelroot? and I can use 15 second adb installer to install TWRP? Thanks

---------- Post added 27th September 2014 at 12:25 AM ---------- Previous post was 26th September 2014 at 11:38 PM ----------

I answered my own question. all i did was put the new TWRP on my c:\adb and ran fastboot right over the old one and works perfect. no data loss

---------- Post added at 12:47 AM ---------- Previous post was at 12:25 AM ----------

Anyone know where in the build.prop or somewhere i change the carrier text on the lockscreen and slider? Gravity Box isn't working
[Huawei Ascend Mate 2] :
Added brief instructions to backing up the stock recovery. Will be found just below the disclaimer in the OP.
[Huawei Ascend Mate 2] superbass311:
2 HAM2 videos

review:

https://www.youtube.com/watch?v=x4qfSJ8WGrs

tempered glass and trident case showcase:

https://www.youtube.com/watch?v=eeNNuWAQdjg
[Huawei Ascend Mate 2] DRAGWAV:
Trying to install TWRP without a computer. Verified unlocked bootloader, root access, busy box installed 1.22.1 /system/bin/ unable to gain permission access denied using root explorer. Using dd if=/storage/sdcard1/Download/TWRP.img of=/Dev/block/mmcblk0p19 "Cannot open for permission to write: access denied" what am I missing in order to gain write access?
[Huawei Ascend Mate 2] Kid_Ding:
Use flashify from the play store

https://play.google.com/store/apps/details?id=com.cgollner.flashify

It makes it super easy. Backup first, then flash twrp all via the app.
[Huawei Ascend Mate 2] DRAGWAV:
Done :cool: .. TY [MENTION=353933]Kid_Ding[/MENTION]
[Huawei Ascend Mate 2] :
Type "su" without the quotes and then reenter the command.
[Huawei Ascend Mate 2] DRAGWAV:
Tried various ways including su and never was able to gain permissions needed. Flashify was so simple it's almost maddening. Verified paths and file names etc .. Not sure why or how but root explorer was never able to gain write access. I have since made some successful changes and several edits to build prop with no issues.
[Huawei Ascend Mate 2] :
Typing and entering, su, followed by typing and entering the proper dd command will do the trick. My guess is you may have improperly applied the method. It happens so no biggie lol.
[Huawei Ascend Mate 2] :
I was unaware Cricket had this device. I wonder if Boost Mobile does since that is currently who I am with.... Oh wait, that's right, Boost is strictly CDMA :P grrr
[Huawei Ascend Mate 2] DRAGWAV:
Probably so I opened terminal then su, then enter, then I did dd command, then enter. Didn't try su dd if... Then enter ... Should that make a difference?
[Huawei Ascend Mate 2] superbass311:
Cricket isn't selling it I bought it off amazon and inserted my Sim card. $55 a month for 5gigs of LTE and unlimited talk and text. You can't beat that deal anywhere
[Huawei Ascend Mate 2] :
Interesting, so you unlocked the SIM card I suppose? Nevertheless, not bad. I'm still on the shrinkage plan at $40 a month with 2.5 which is usually about all I need anyways. Every now and again I may get throttled between a week or even days before the next pay period which isn't too bad.
[Huawei Ascend Mate 2] :
Type and enter:

su

Now, type and enter:

dd if=/sdcard/TWRP.img of=/dev/block/mmcblk0p19

The if statement points dd to where the recovery image is at and the of statement tells dd where to write the image too. In this case, /dev/block/mmcblk0p19 is your recovery partition so you are overwriting your current recovery with the TWRP recovery. Then, simply boot to your recovery after it is done and voila.
[Huawei Ascend Mate 2] :
Don't make typos when using dd. It has an infamous nickname known as Data Destroyer. So, one wrong move can be devastating. That is why I mentioned in the OP for only those with experience to use that method.
[Huawei Ascend Mate 2] superbass311:
Incorrect. Cricket accepts any AT&T phones Locked or Unlocked and any unlocked GSM phone. That is what makes it great. AT&T phones for sale everywhere. I started off with them with an Unlocked Family Mobile (Walmart & tmobile) after I was sick of getting no services. ( I'm a mobile hotspot so I need service wherever I go) Once provided my unlock code from Family Mobile for my Galaxy S2 I bought a cricket sim card and activated it. Worked great but only got HSPA+ and not LTE. I dont care what anyone says HSPA+ is not 4g and def not LTE. Please do your fact checking before you try and correct me on this (anyone, lol). On Craigslist I found a locked AT&T LG Optimus G Pro for $250. That was the best phone I ever owned to this day. After a while I get bored with my toys and was looking for a great phablet. I came across this phone which is the mac daddy bang for your buck and its huge and looks crisp. its brighter then the NOTE 3 so it makes it look as good. Anyways getting off track all I did was take the Cricket sim out of the g pro and into my HAM2 put in the APN settings and away I go! This phone on Cricket plan is crushing any ones phone. My brother has a Note 3 on Verizon and his phone is dead by dinner time and hes paying triple what my bill is.

* Cricket is owned by AT&T and therefore not renting server and tower space from them. Cricket is taking advantage of 100% of AT&Ts towers. I'm sure your aware boost is renting tower space from sprint and also sprint customers under heavy load take priority over boost customers. Does this really matter? no. But to a power user it matters.
[Huawei Ascend Mate 2] :
[MENTION=5863839]superbass311[/MENTION], I gotcha lol. Yea, I'm aware Cricket got bought out. I have the K2_CL for Boost and the Cricket version is K2_PLC_CL however, that phone is pretty much obsolete now. The owners of that variant were notified by Cricket that they would have to get a new phone. So, I basically don't see them around my forums much anymore these days. Boost drives me nuts to say the least and now that Cricket is running off of AT&T towers, I may have to consider going to them. But I will hold off for now simply because I am enjoying only having to pay out $40 with LTE. Loving LTE and I agree with you in your video. If you are buying a phone that doesn't support LTE you are wasting your time and money.
[Huawei Ascend Mate 2] superbass311:
Hopefully I will see you become part of the HAM2 family. Since in retrospect your basically the godfather to everything cool on the HAM2. I was really iffy because of the non 1080p and I could not care less of the Snapdragon 400. However for $300 I took a chance and if I didn't like it I would return it to Amazon but I fell in love with it. I'm an Apex fan not Nova but Apex on this phone runs so smooth and looks clean. The battery is the selling point for this phone. No need for these battery apps and widges anymore. Now you turn it on and forget it. lol. I have been using my phone heavily all day since 8 and its almost 1 now here and my battery is at 83%. thank you Waa-Way (huawei).

---------- Post added at 04:46 PM ---------- Previous post was at 04:44 PM ----------

Anyone interested in switching to Cricket let me know and I can give you a referral code and we both get money off our bill...
[Huawei Ascend Mate 2] :
The battery life on the MT2-L03 is definitely in beast mode. I have never seen anything else like it. I put the phone through some very stressful tests and I found that I didn't have to recharge it until about the closing of the second day. If I put my current daily device through those same test I'm having to plug it up within three to four hours if not sooner.
[Huawei Ascend Mate 2] xordos:
A little bit more info to complicate things up.

1. after su, enter, you can type 'id' without quote to verify you are root or not.

2. Somehow, in my phone MT2L03, after su to root, the sdcard is not mounted. i have to copy file to /data before i run su. ( or you can mount sdcard manually after su)
[Huawei Ascend Mate 2] :
Pretty strange to see the sdcard get unmounted after it gains root. First I have heard of that dilemma, but I appreciate the info. The curiosity as to why it does this is now gonna bug me so I have to do some research haha.
[Huawei Ascend Mate 2] xordos:
yes, it is strange.

maybe it is related to mount option when system startup, not sure.

Also saw some post mentioned Chinese version mate2 has immutable file list kinds of stuff.

ahh, another thing, looks like this is only apply to that su'ed session. As at that same time, es file explorer can still see /sdcard and open files in sdcard. :D
[Huawei Ascend Mate 2] iammudd:
When I was looking into why Titanium Backup was failing, I had mentioned in the original root thread that several mounts were missing when you "su" but I didn't know to re-mount them permanently for root.

/dev/block/vold/179:25 /storage/sdcard0 vfat rw,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:65 /storage/sdcard1 vfat rw,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:65 /mnt/secure/asec vfat rw,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /storage/sdcard1/.android_secure tmpfs ro,seclabel,relatime,size=0k,mode=000 0 0
[Huawei Ascend Mate 2] xordos:
maybe TB need a fix for our phone or we need modify fstab to normal behaviour.

ES filer and root explorer doesn't have this issue as I have used them to modify /system/build.prop fine.
[Huawei Ascend Mate 2] rjan22:
I am so noob at this can anyone make a video of how this whole thing is done, I just cane from an iPhone since the first one came out so really has no idea, hope you guys don't beat me up thanks
[Huawei Ascend Mate 2] :
Yea, I just checked my daily device and this is definitely not a problem for me lol. [MENTION=3266877]xordos[/MENTION], can you confirm the location of the su binary? Typically it is found in /system/xbin and a hidden .su found in /system/bin/.ext
[Huawei Ascend Mate 2] iammudd:
Yes, ES File Explorer works consistently. But some other apps were not working for me. e.g. JRummy build.prop editor, secure settings.

Similarly, while SuperSu can update its binary using the "normal" option but not via TWRP recovery. The same for trying to install ChainsDD superuser . I had to download the zip and manually install in TWRP.
[Huawei Ascend Mate 2] xordos:
I am outside right now. so pls see screen shot. That su2 file is created by me for testing as I don't know why they don't use setuid sticky bit anymore. Looks like now SuperSU is using some daemon to do that. But still I am not quite sure. pls see pic for more info.

[MENTION=5537766]Modding.MyMind[/MENTION]: (update on Oct 08), sorry for the update after a while, today, when I am checking something else, I did notice following file does exist in following directory, I was list incorrect directory before:

ls -la /system/bin/.ext
-rwxr-xr-x root root 125420 2014-10-08 05:05 .su

This file also in my very early backup image too,same file size.
[Huawei Ascend Mate 2] xordos:
If you don't have any flashing rom experience before, I would suggest you hold to this a little bit. Read read and read more on android flashing/mod post, articles. Read something about bootloader,root,recovery and brick. Or if you prefer video, search on youtube, different phone is ok. 90% user use non-rooted phone, and you can do almost everything fine.

Then once you read those, and still want to flash your phone, then you should be able to follow most discussions in this mate2 forum. And we will be glad to help/answer your questions you may have.

Not trying to discourage you, but just my 2c.
[Huawei Ascend Mate 2] rjan22:
I think this is an easy video, why not make me one man, just Dont want to brick this phone I am so enjoying it, hope someone can do it, not just for me but for all in the HAM 2 community .
[Huawei Ascend Mate 2] xordos:
[MENTION=4235172]4L0M[/MENTION], Pls check your PM.
[Huawei Ascend Mate 2] icyboyice:
So just to be sure, this is an additional method of installing the TWRP recovery correct? After I root I can install this app and download the recovery IMG file to my phone and flash it within this app no problems?
[Huawei Ascend Mate 2] Kid_Ding:
yes, but do remember that anything you do at root and thereafter is at your own risk.
[Huawei Ascend Mate 2] :
Hey guys/gals, I'm currently busy on a project outside of this forum and my own. So, for the meantime, I will be taking a break with this particular project. Remember, the link to the source can be found in the OP. Feel free to buff out any minor/cosmetic details and update me on the changes if there are any.

:)
[Huawei Ascend Mate 2] icyboyice:
Gotcha . But this procedure surely won't cause any harm if done right correct? (I have experience with modding and stuff)
[Huawei Ascend Mate 2] superbass311:
Thank you for everything
[Huawei Ascend Mate 2] Kid_Ding:
Definitely, i tried it myself with no issues.