yashsingh1/xdaforums huggingface dataset:
[Huawei Ascend XT Questions & Answers] yuweng:
Late to the party, from a different timezone, glad it works but nobody upload anything for me to make the correction :confused: Anyway, i think you guys can DIY, i see quite a few capable guys here, its quite easy & as i don't own this device, its kinda hard for me to follow up. Ported this from Official TWRP but the ramdisk contains left over mt6735 files i guess the official maintainer must've overlook on it. In fact, you can use any Official TWRP for msm8940, it should work.

For TWRP to work correctly, besides updating the recovery.fstab/ twrp.fstab accordingly, those infos you can get it from the erecovery too, just rename TWRP backup to erecovery.img & you will be able to unpack it. The default.prop also needs to be updated or TWRP will backed up using those names. Use AIK to unpack/ repack

adb shell getprop ro.product.model
adb shell getprop ro.product.device

You can also backed up the whole Factory ROM inside your device using TWRP, just translate those partition into twrp.fstab. Eg.below for my device

# Android fstab file.
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

/system ext4 /dev/block/bootdevice/by-name/system flags=display=System
/cache auto /dev/block/bootdevice/by-name/cache flags=display=Cache
/data auto /dev/block/bootdevice/by-name/userdata flags=display=Data;length=-16384
/cust ext4 /dev/block/bootdevice/by-name/cust flags=backup=1;display=Custom;wipeingui
/oeminfo emmc /dev/block/bootdevice/by-name/oeminfo flags=backup=1;display=OEMinfo;flashimg=1
/persist ext4 /dev/block/bootdevice/by-name/persist flags=backup=1;display=Persist
/misc emmc /dev/block/bootdevice/by-name/misc	flags=backup=1;display=Misc
/boot emmc /dev/block/bootdevice/by-name/boot flags=display=Boot
/recovery emmc /dev/block/bootdevice/by-name/recovery flags=backup=1;display=Recovery
/erecovery emmc /dev/block/bootdevice/by-name/erecovery flags=backup=1;display=eRecovery
/efs1 emmc /dev/block/bootdevice/by-name/modemst1 flags=backup=1;display=EFS
/efs2 emmc /dev/block/bootdevice/by-name/modemst2 flags=backup=1;subpartitionof=/efs1
/firmware vfat /dev/block/bootdevice/by-name/modem flags=backup=1;display=Firmware;mounttodecrypt
/modem_image emmc /dev/block/bootdevice/by-name/modem flags=flashimg=1;backup=1
/cust_image emmc /dev/block/bootdevice/by-name/cust flags=flashimg=1;backup=1
/system_image emmc /dev/block/bootdevice/by-name/system

/external_sd vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="Micro SDcard";storage;wipeingui;removable;andsec
/sd-ext ext4 /dev/block/mmcblk1p2 flags=display="Adopted storage, use with Micro SDcard and data";wipeingui;removable
/usb-otg auto /dev/block/sda1 /dev/block/sda flags=removable;storage;display=USB-OTG

And get those santoni DEVs involved & you guys might get to taste some custom ROMs as both are using the same SoC or even Oreo later on, Good Luck & Cheers :highfive:
[Huawei Ascend XT Questions & Answers] divineBliss:
For those of you who have never seen this before...

https://www.xda-developers.com/introducing-the-thanks-button-on-xda/

Some people around here have been working hard on the XT2 TWRP/rooting effort. If you benefit from their posts and hard work, give them a "thanks" - it costs you nothing and shows them your appreciation :good: :)
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Okay, can someone please give me a full step by step on what to do so I'll have an Ascend xt2 rooted with twrp? I'm willing to donate $2 in PayPal (I know it's not much but it's really all I have) to any person who can provide a step-by-step starting from downloading the TWRP, to booting, to flashing it, and then flashing magisk. I just don't want to get confused.
[Huawei Ascend XT Questions & Answers] divineBliss:
I don't have the XT2, otherwise if I did, I would be able to write up the instructions like I've done in the past for the XT.

Hopefully someone who has gone through the process on the XT2 will write up something soon after they are rested up. :)
[Huawei Ascend XT Questions & Answers] faxanidu:
NOBODY try magisk yet.... some apps detect root some dont... recovery is now broken as well as system i currently have a soft brick DONT try any rooting methods yet... when i figure out whats up and im sure its 99% safe ill do a writeup
[Huawei Ascend XT Questions & Answers] divineBliss:
From what I understand of yuweng's post, the current H1711 is not completely functional and still needs to be updated and tested, so keep that in mind. It may be a while yet before TWRP is fully capable and ready for the masses.

Whose going to finish brewing the H1711 TWRP? :laugh:
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
In that case, how can I help? In a few minutes im going to unlock the bootloader, and boot (not flash)) the TWRP recovery. Is there anything I can backup while I'm at it and upload to here?
[Huawei Ascend XT Questions & Answers] divineBliss:
I wonder if SuperSU would do better? I use SuperSU for root on my H1611 XT - some use Magisk - not sure which version they are using - that could be a factor.

---------- Post added at 01:12 AM ---------- Previous post was at 01:09 AM ----------

yuweng did request that the stock recovery be backed up and posted here. That has not happened yet.

Honestly, you might want to wait to unlock, etc until things are farther along and more stable. Someone posted that fastboot boot would not work.
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
I have nothing else to do, so I'll give it a go and backup the stock recovery and post it here. Hope everything goes well
[Huawei Ascend XT Questions & Answers] faxanidu:
THIS dont do anything yet.... still need to dump recovery. plus working on magisk im soft bricked... so everybody hold up a bit... also i can make a full twrp with the erecovery partition
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
oh alright then. Btw, if I'm not mistaken. Does unlocking the bootloader wipe data or no? I know it happens on some devices and on some it doesn't.
[Huawei Ascend XT Questions & Answers] faxanidu:
yes
[Huawei Ascend XT Questions & Answers] divineBliss:
If you are really bored, you could unlock and confirm fastboot boot TWRP.img does not work - but you have been warned about not flashing it. Also keep in mind that your data partition will be wiped when you unlock and you could end up with FRP issue discussed earlier. You up for all that, then proceed :) - you decide.
[Huawei Ascend XT Questions & Answers] faxanidu:
fastboot boot does not work on our phones due to a bug
[Huawei Ascend XT Questions & Answers] divineBliss:
Sorry, I meant to say confirm it does not work. Time for some zzzz for me ;)
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
dang... there's no other way to boot twrp besides fastboot? if not, guess i have no choice but to wait
[Huawei Ascend XT Questions & Answers] faxanidu:
OK guys somehow i booted into twrp with a key combo trying to get it into fastboot.... ill look more into this also.

EDIT: restoring EVERYTHING pray for me lol. you all better love me forever for this.

EDIT2: it BOOTS!!!!!!!!!! back to work then some zzzzzz ill post if i find anything super interesting.

EDIT3: i was right about the key combo! the regular recovery is the one that does the update.app.old vol UP and DOWN at same time when you turn it on, boots right into TWRP.

so if your up to experimenting and KNOW WHAT YOUR DOING! TWRP is safe to flash, cause we have 2 recoveries. so im going to dump the erecovery and make a full 100% sure TWRP for us. also for the record THANK YOU THANK YOU THANK YOU YUWENG for your help. PM me i might need a bit of help later with a few things.

And EVERYONE make sure you hit that thanks button for him and everyone helping in this thread. were all working hard and for free. cause thats what we do. all we ask is for some thanks :D
[Huawei Ascend XT Questions & Answers] divineBliss:
Key combo I like to use for getting into recovery: press both power and volume up buttons until phone vibrates twice, then release power button only at end of the 2nd vibration cycle. Release volume up only after you see recovery screen.

Took me a while to figure it out that it's best to wait for 2nd vibration cycle as releasing after 1st did not always put phone in recovery. I imagine this applies to the H1711 also.

As above, but power and volume down instead of volume up to get in fastboot mode with buttons should work. :)

Hope that helps.
[Huawei Ascend XT Questions & Answers] faxanidu:
the phone has always encrypt enabled. so internal storage will be inaccessible for now. i have a patch that turns that off, but its not needed. so back everything excluding /data and im SERIOUS make a dd backup of boot.img it will save your ass everytime.
[Huawei Ascend XT Questions & Answers] de4f_by_mort4rs:
Man, people have been unfortunately quiet about this phone so far...how does it not have even the traction that the 1st iteration did? Anyone have any news about a working root method? Or maybe even an official software update? I just bought mine at the start of the year and it's still on a July 2017 security patch...
[Huawei Ascend XT Questions & Answers] divineBliss:
On the H1611, after we flashed TWRP, we had to format the data partition so it would be accessible by TWRP and allow the phone to boot - if I'm recalling correctly.

Agree with dd or backup boot.img early as possible - wish I knew prior to messing with the H1611. :)

---------- Post added at 02:00 AM ---------- Previous post was at 01:58 AM ----------

Read back a few pages :)
[Huawei Ascend XT Questions & Answers] de4f_by_mort4rs:
Well dang I didn't realize these things were all being posted as of minutes ago. My phone was telling me that the last post was in July. Glad to see there is a strong following for this series of phone.

In any case, I'll guess I'll just have to deal with the bull storage limitations for now. I don't have a computer and have been praying for a one-click computer-less root method to pop up.

Guess I'll just have to keep praying..
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Okay now I'll unlock the bootloader and boot twrp, and maybe try to flash it
[Huawei Ascend XT Questions & Answers] aslezak:
Thanks yuweng, I will take care of these steps when I have time over the next few days.

FYI I was able to dd backup all of the partitions, but my boot.img is supposedly modified so I'll be waiting for someone to upload an untouched boot image. I can still get this TWRP modified with what I have.
[Huawei Ascend XT Questions & Answers] faxanidu:
It says the boot is modified no matter what for some reason. Was able to work around it. Got my untouched boot.img though got to find a way to upload the 80 mbs on this slow internet.

---------- Post added at 06:38 PM ---------- Previous post was at 06:37 PM ----------

Formatting the data partition does not work probably cause of ported twrp.
[Huawei Ascend XT Questions & Answers] divineBliss:
I wonder if "fastboot erase/format userdata" would work?
[Huawei Ascend XT Questions & Answers] aslezak:
Root!

Root instructions:

(I used Magisk Manager v5.5.3 boot.img patching to create the boot.img)

stock boot.img

I am not responsible if you brick your device. I didn't brick mine, but if you don't type the correct commands you could be in trouble

Copy this patched_boot.zip to your sdcard. You can download it from the device directly if that's easier. Insert the sdcard into the phone if it wasn't there already (e.g. if you downloaded from a computer).

Reboot phone into fastboot. The easiest way is, if phone is on, unplug phone from USB, hold power button / select "Power Off". Hold VolDown+Power. Phone will boot into fastboot mode.

(skip this step if you've already flashed TWRP) Flash TWRP into your recovery partition. The link was provided in an earlier post (page 24) by yuweng twrp-xt2.7z

plug usb cable in (from phone to computer). From your computer / cmd.exe window, cd \adb:

fastboot devices #make sure computer adb/fastboot sees your device

fastboot flash recovery recovery.img

Boot into TWRP. From the above step, you should "fastboot reboot", immediately unplug phone from USB, then

With the phone unplugged from the computer, hold VolUp+Power. Release power after the device reboots. It might take a couple tries .. select reboot from eRecovery if that starts instead. Alternatively you can boot into recovery through adb via "adb reboot recovery".

Tap "Keep Read Only" when TWRP starts.

Tap "Install", then tap "Install Image" at the bottom. Browse (Up a Level) then "external_sd"

If you unzipped the patched_boot.zip you will see patched_boot.img here. Select it.

Select "boot" (uncheck "recovery") partition to flash.

Swipe to confirm Flash

Tap "Reboot" once it's completed.

You should be rooted!

Note: if Magisk Manager does not appear in your list of installed applications, download & install it from here latest Magisk Manager. Without this, you won't be prompted to allow root!
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Yaaayy ? thanks dude, I will do this tonight. Would you like a donation?
[Huawei Ascend XT Questions & Answers] aslezak:
Just click the "Thanks" button in the bottom right corner of my "Root!" post. That's all I need. Thank you!
[Huawei Ascend XT Questions & Answers] faxanidu:
Ok now here's the problem install some modules and try to delete the bloatware off the phone and report back :( .... This is how I did bricked my phone doing exactly what you did.
[Huawei Ascend XT Questions & Answers] divineBliss:
I would recommend those with multiple H1711s not unlock the bootloader on them all.

With the H1611, once you have unlocked bootloader (or is it rooted), if AT&T has an OTA update to a new version, the phone could not successfully take the OTA. What happened is someone with a never before unlocked bootloader H1611 on the latest stock ROM had to unlock bootloader and use TWRP to backup and upload certain partitions. Then people like clsA created a stock ROM of that new version from those files for people with rooted H1611 phones to be able update their phones.

I'm guessing H1711 will have the same challenges for OTA updates. :) Also with H1611, only people with an activated AT&T or AT&T MVNO SIM could install the AT&T ROM update via OTA as AT&T does not make it possible to do any other way.
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
if you can still get into twrp, I'll have a backup tonight that you can use to restore
[Huawei Ascend XT Questions & Answers] divineBliss:
I would not delete anything off the phone. Instead have TWRP or dd backups handy of your working setup, then use an app like App Freeze to freeze/disable any bloatware apps which phone app manager won't let you disable/uninstall. If you disable the wrong system app, you could cripple the phone. Just my suggestion from prior experience.

It's easier to unfreeze an app you later find out you need/want vs if you deleted the app off the phone totally. There's really not much to be gained by deleting vs freezing apps you're unsure of needing.

Clearly apps like Facebook, Uber, and other junk can be uninstalled if the phone app manager lets you and you don't need those apps.

Good luck. :)
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
? I'll make a full rooted backup and post it here tonight just in case anyone bricks and needs to restore
[Huawei Ascend XT Questions & Answers] divineBliss:
Someone should probably list the current limitations of the H1711 initial TWRP which is not completely functional yet :) .

I'm guessing it won't backup/restore all crucial partitions in its current form.

Best bet is to make backups with dd also until TWRP is fully baked and proven out.
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
I had 2, lost one and sent the other to enigma. Hope he tries this...
[Huawei Ascend XT Questions & Answers] aslezak:
I don't think it will take long to get a corrected TWRP out. TWRP can't back up the data partition in its current state, but you can do this using dd

dd if=/dev/block/bootdevice/by-name/userdata | gzip -9c > /external_sd/data.img.gz

Also, I think wiping the data partition from TWRP causes issues (I had to use eRecovery / factory reset to get going again).

I added the stock boot.img to my Root! post in case someone wants to have at it.

Here is the stock erecovery.img (same as recovery.img).

Otherwise, I'll try to get it done tomorrow.
[Huawei Ascend XT Questions & Answers] divineBliss:
I wonder if TWRP is formatting the correct partition when you select /data to format (since you ran into problems).

Also wonder if fastboot command I posted earlier can be used to format /data.

Does existing TWRP backup any partitions correctly? (recovery, boot, system)
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Btw.. what would happen if I decided to swipe to allow system modifications instead of selecting keep read only in TWRP?
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
whats next

So once root is accomplished, and a working twrp is installed, what will it take to install and integrate exposed?
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Well magisk offers the zips for Xposed for nougat (which is what the Ascend xt2 has) so I'm guessing you can either install Xposed through magisk or download and flash the Xposed zip in TWRP, idk if it'll work though but that's what you'd do to install Xposed
[Huawei Ascend XT Questions & Answers] divineBliss:
Why would you want to do that at this point? The system partition may get modified - and that may be undesirable.

See https://disqus.com/home/discussion/...g_ota_friendly_system_images_and_more/oldest/

and https://twrp.me/site/update/2015/06/22/twrp-2.8.7.0-released.html

for some insights into this question.
[Huawei Ascend XT Questions & Answers] faxanidu:
Went through and got all bloat off. Using phhs root. I have full access to delete things.

---------- Post added at 10:17 AM ---------- Previous post was at 10:15 AM ----------

I have exposed installed now
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
Can you back the phone up in that state, so it can be restored to a phone?

No bloatware, root, twrp, xposed. Looks like a rom...... I'd like to try it....

And can you edit qfstab, and make the edits stick?

That is my ultimate goal.
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Um.. so upon trying to flash twrp, it fails because I have to unlock FRP.

I factory reset, and then I re locked the boot loader, then unlocked the boot loader again, but it twrp still doesn't flash because of the frp lock. Also, volume down and power doesn't reboot into fastboot, it just loops back to the Huawei screen over and over for as long as I hold the buttons for. Can anyone help?
[Huawei Ascend XT Questions & Answers] crashburn833:
How? it keeps failing on me error 1 when i try to install magisk via twrp

---------- Post added at 04:19 PM ---------- Previous post was at 04:16 PM ----------

try holding power and vol down while phone plugged into a computer that is how i got fastboot
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Do you know how to get pass the FRP lock in fastboot?
[Huawei Ascend XT Questions & Answers] crashburn833:
nope still on mine and works fine
[Huawei Ascend XT Questions & Answers] ravijaua:
dc unlocker unlock sim

Can you please pm me if you are interested in the unlocking the huawei ascend xt2 or the similar elate one and are willing to pay $5 to unlock the sim. No just unserious interests. Only serious interest ready to pay. I am making a list of people. Thanks so much. This will be tentatively through dc-unlocker. It is not ready yet but they are working on it and wanted to know how many people are interested. Thanks so much.
[Huawei Ascend XT Questions & Answers] faxanidu:
Delete Google account. Factory reset from erecovery. Fastboot oem relock xxxxxxxx . Where xxxxxxxx is your unlock code. Turn on developer options. Slide on oem unlock. Fastboot unlock phone again.

---------- Post added at 06:52 PM ---------- Previous post was at 06:50 PM ----------

Magisk does not work right on this phone yet. I'm using phh superuser.
[Huawei Ascend XT Questions & Answers] divineBliss:
How did you make phone go to erecovery partition vs regular recovery partition?
[Huawei Ascend XT Questions & Answers] faxanidu:
Our phone has 2. The main recovery is Huaweis update.app failsafe. Recovery is vol up, down, pwr.

Erecovery is just hold vol up, pwr.
[Huawei Ascend XT Questions & Answers] divineBliss:
Based on H1611 XT, I thought main recovery partition is power + volume up and takes you to stock recovery or TWRP.

So erecovery would be the Huawei update.app failsafe :confused: . I never thought of that Huawei update.app failsafe as erecovery though. I thought someone said erecovery was the same as recovery for stock phone. :confused: :confused: .

Oh well, carry on with the XT2 progress.

You guys should consider making new XT2 threads over time so XDA powers will see the XT2 activity and create a new XT2 phone section. :)
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
phh superuser? Did you flash that or..
[Huawei Ascend XT Questions & Answers] faxanidu:
I'll be making a new thread with write up and credits when I know everything works well and is SAFE I don't do half ass.

---------- Post added at 09:27 PM ---------- Previous post was at 09:25 PM ----------

Yes there's a .zip to flash then just search phh in the play store for the superuser manger.

NOTE: NONE OF MY METHODS ARE SYSTEMLESS YET.

---------- Post added at 09:29 PM ---------- Previous post was at 09:27 PM ----------

Also I'm working on a boot.img without force encryption and modded dm-verify. That should get Magisk working.
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Okay thanks, can you direct me to the zip, or tell me what to search so I can download and flash it
[Huawei Ascend XT Questions & Answers] faxanidu:
Let me re find it

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

Also I made a script that will dump every partition on the phone to the sdcard if anyone wants it
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Okay, can you on me the script and the link to the superuser zip to flash
[Huawei Ascend XT Questions & Answers] faxanidu:
THINGS IN ATTACHMENTS!

EXPERIMENTAL ONLY!!!!!!!!!!!!!!!!!!!!!!!!!!!

rename .txt as .sh, put on phone, adb, su, chmod 777 block.sh, sh block.sh

ignore the weird error messages.

as for xposed install the zip, download the xposed manager, it will say not activated or something, just click to re install.
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
Thanks so very much.

Just to clarify, this does require installing of the TWRP that was posted earlier?

As I understand it, it is not fully functional yet. and which portions are not fully functional?
[Huawei Ascend XT Questions & Answers] aslezak:
You can't flash Magisk via TWRP, it fails as it thinks boot.img has been modified.

If you want Magisk, you can flash patched_boot.img from my Root! post earlier. Alternatively you can try the superuser faxanidu has posted.
[Huawei Ascend XT Questions & Answers] yuweng:
i can't believe that everyone is so busy rooting & nobody cared about fixing TWRP, it is the single most important thing before even starting to mod anything at all ! i don't want to leave behind a bad name for porting a half-working recovery, here is the fully working V2, based on aslezak erecovery backup & What should I back up in TWRP? And the fix for magisk, Enjoy :cool:
[Huawei Ascend XT Questions & Answers] faxanidu:
I had a twrp from kitchen to post this morning. Did it last night. You beat me to it. Lol. Thank you again. Your amazing. I'll keep mine backed up just in case.
[Huawei Ascend XT Questions & Answers] crashburn833:
boot loops twice then goes to regular recovery

---------- Post added at 06:55 PM ---------- Previous post was at 06:36 PM ----------

still got yours?
[Huawei Ascend XT Questions & Answers] yuweng:
V2 i'm using the kernel & boot arguments from XT2 erecovery that i thought might be more compatible, i guess not :o TWRP-XT2-V3