yashsingh1/xdaforums huggingface dataset:
[Huawei Ascend XT Questions & Answers] zMILWAUKEE:
Hello everyone. I have the Cricket variant of this phone and so far have only gotten as far as unlocking the bootloader. Every adb command after that i.e. manual root,temp manual inject su.zip all fails. I did however get the source code for the At&t version ( the version this thread was started for ), but unfortunately I am not much of a kernel compiler, that damn linux terminal frustrates the crap out of me. So if any of you folks know how to compile the kernel and get the boot.img a custom recovery shouldnt be to far off. Like I said I have the Cricket variant and am more than happy to test anything someone can come up with. here is the link for the source code http://www.mediafire.com/file/i5ntgz6rfo6bldb/H1711_NG__EMUI5.1_opensource.tar.gz ... Good luck everyone..
[Huawei Ascend XT Questions & Answers] divineBliss:
Here is the Huawei link to get the kernel source code directly from their server:

http://consumer.huawei.com/en/opens...Type=openSourceSoftware&pageSize=10&curPage=1

From what I recall of the H1611 TWRP, additional source code (which Huawei didn't provide for the H1611) had to be ported from a different model Huawei to make the H1611 TWRP. Guessing the same will apply for the H1711 TWRP development.
[Huawei Ascend XT Questions & Answers] aslezak:
Phenomenal find! I can see the kernel in there, but I don't see any .dtb files defining the partitions. Anyone know where to find the partition table?

This should make porting twrp quite easy. I don't have time to do it atm but should be able to find time in the next two weeks. I think faxanidu will probably beat me to it.
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
You rock. NICE.
[Huawei Ascend XT Questions & Answers] faxanidu:
Downloading now everyone stay tuned
[Huawei Ascend XT Questions & Answers] try2win:
I don't even know enough to be dangerous, but from what I've read over the last few pages a few very smart people are getting closer to rooting this model with the possibility of perhaps one day using custom roms (I think that what's being discussed)...I hope that works out because custom roms keep these cheaper phones going very a long long time. I'm also wondering will any of these newly discovered or soon to be discovered "cracks" help us in getting the phone "SIM card unlocked"
[Huawei Ascend XT Questions & Answers] faxanidu:
Bad news still need the ramdisk to make a boot.img. digging through files, still seeing If i can find an angle to escalate privlages.

EDIT: Words.
[Huawei Ascend XT Questions & Answers] aslezak:
I've got a compiled kernel now -- 64-bit, although our phones are running 32-bit.

Linking was failing at: drivers/iommu/arm-smmu.c due to undefined symbol: msm_pcie_configure_sid()

To resolve, I added CONFIG_PCI_MSM=y to merge_msm8937_32_defconfig & re-ran make.

There were quite a few modifications required to get the kernel compiled; I'll try to get a set of diffs made & upload them somewhere for everyone. This should be useful for ROM creation.

Next step is to figure out how to get a working boot.img. Per faxanidu, this may be complicated.
[Huawei Ascend XT Questions & Answers] divineBliss:
Progress :) . Did you try to compile 32-bit version?
[Huawei Ascend XT Questions & Answers] aslezak:
64-bit is compiling now. I am not sure how to "downgrade" to a 32-bit kernel given the only targets provided by Huawei are for arm64. That just means, more research required...
[Huawei Ascend XT Questions & Answers] borderline butterfly:
I bought the huawei ascend xt 2 a week and a half ago. I have had Samsung galaxy express prime and a Samsung galaxy grand prime. This phone is so much better than the prepaid Samsung galaxy phones. It's incredible in speed and performance and it has excellent graphics and the quality is astonishing for the price. This is the very best prepaid smartphone that I have ever ran across! I love it! It's of very good and high quality. It's very much like a iPhone 6 s.
[Huawei Ascend XT Questions & Answers] crashburn833:
anyone know where i can get part to replace my mic and speakers they are both having issues
[Huawei Ascend XT Questions & Answers] paindaddi:
huawei warranty

Huawei will fix it for free they have a one year warranty on all headsets.
[Huawei Ascend XT Questions & Answers] enigma2446:
Deleted.
[Huawei Ascend XT Questions & Answers] aslezak:
Here is the patch / shell script to download the toolkit, patch the source, and compile the Image.gz-dtb.

file.patch: apply within H1711_NG__EMUI5.1_opensource/kernel subdirectory:

patch -p1 < file.patch

Alternatively, just run this shell script huawei_patch.sh it will run the patch & compile the kernel for you:

./huawei_patch.sh

Note that this kernel boots .. it fails once it tries to execute init. I've set init to be "sh" (the shell from /vendor/bin/sh) but that's dynamically linked, so it's failing. I also tried a static busybox (armv7l), but it's not starting. Theoretically this will give us a root shell if we can get it working :good:

How do I know this? I flashed the kernel+ramdisk (from the Y7 Prime) to recovery, using Android Image Kitchen, having modified the BOOT.img-cmdline file. There are logs on the phone under /log/boot_fail/uploading/bootfail_YYYYMMDD*.gz; inside there is a kmsg.log that tells me this info:

<3>[1, swapper/0][ 4.053862] Failed to execute /sbin/sh (error -8). Attempting defaults...
<0>[1, swapper/0][ 4.054020] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[Huawei Ascend XT Questions & Answers] crashburn833:
that would require a reciept? if so cannot do it also cannot go without phone for even a day.
[Huawei Ascend XT Questions & Answers] paindaddi:
Not sure
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Hello, I have the ascend XT2 as well
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
So I'm guessing for the ascend XT2 we can unlock the bootloader but no root yet?
[Huawei Ascend XT Questions & Answers] enigma2446:
At the moment that is correct but there is a few of us actively trying to obtain root/custom recovery
[Huawei Ascend XT Questions & Answers] crashburn833:
what do we have to do to get our own place on xda for this phone so we are not in one thread having to go several pages just to find a solution to something?
[Huawei Ascend XT Questions & Answers] faxanidu:
Considering the luck I had with the last phone thread I did probably not going to happen
[Huawei Ascend XT Questions & Answers] aslezak:
Reaching out to anyone with a Huawei Elate .. has the phone received any automatic updates yet? I have one in a sealed box that I don't really want to open unless I have to. I haven't had any luck getting the compiled kernel to continue booting after it hits init (from my previous posts) so this would be the next best option.
[Huawei Ascend XT Questions & Answers] faxanidu:
I have an idea for the init I've been away from main desktop
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Anyone try to root with kingroot? I was thinking of unlocking the bootloader and then using kingroot and then using supersume.. Think it'll work?
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
nope. read the prior posts. Every single rooting solution has failed.

---------- Post added at 03:05 AM ---------- Previous post was at 03:01 AM ----------

hmm. one thing to do is to keep patching what the log file shows....

I assume you are booting this kernel by using fastboot boot kernel_img. Right?

some where on this set of fora, I saw a google drive with THE code. I downloaded it. It is the entire Hauwei source tree for one of the y series phones I think.

It is huge....

And it is a lot more than the kernel. Maybe there is a clue hiding in it.
[Huawei Ascend XT Questions & Answers] divineBliss:
I requested a XDA forum for the Huawei Ascend XT2 H1711:

https://xdaforums.com/showpost.php?p=74925117&postcount=22579

It took a while after the H1611 forum request before the XDA powers actually created it. :)
[Huawei Ascend XT Questions & Answers] faxanidu:
Yes my other thread we have root ROMs the like... Still don't have our own page. If you succeed I will give you a gold star
[Huawei Ascend XT Questions & Answers] divineBliss:
What other thread :confused:
[Huawei Ascend XT Questions & Answers] faxanidu:
Alcatel ideal 4060A I got root and twrp working for that phone.
[Huawei Ascend XT Questions & Answers] paindaddi:
is this thread dead?

Hello any g9d news yet. Madvane20 will help if anyone wants to provide a phone or donate.
[Huawei Ascend XT Questions & Answers] crashburn833:
no "g9d" news no
[Huawei Ascend XT Questions & Answers] xt2:
Let's start a bounty, this is a great device for the price i got 2 on the last sale, i will put up 20$ for a working twrp
[Huawei Ascend XT Questions & Answers] faxanidu:
Working on it. Still guessing partitions
[Huawei Ascend XT Questions & Answers] kirkbare:
purchased the h1711 , dropped it first week , shattered .my old 1611 i dropped over 30times and not a scratch . cant find a replacement screen. why?
[Huawei Ascend XT Questions & Answers] Well Done Sheldon:
I'll put up $20 also for A Root Solution
[Huawei Ascend XT Questions & Answers] troyholt:
I just saw these posts while looking for a case myself. The H1711 is a great phone in my humble electrical engineering opinion. I'm not one to spend a lot of money on electronics or even want to stare at a TFT display when not at work, but it is nice for $89 bucks at Walmart. I just switched out the SIM card with my AT&T SIM (I had service with them already), and I was up and running. Cases are only available online unfortunately. I hope I don't drop it before I get mine in.
[Huawei Ascend XT Questions & Answers] faxanidu:
Strange mine gets dropped, abused, and taken apart and still works fine.
[Huawei Ascend XT Questions & Answers] wolfhelm:
So being that the Huawei Elate is just the Cricket version of the Ascend XT2, would it be a correct assumption that any progress made on the XT2 would work on the Elate?
[Huawei Ascend XT Questions & Answers] messi2050:
I compiled a working twrp for this device (upon friend request) he confirmed that he was able to boot into it, I will be watching this thread to see where this bounty goes.
[Huawei Ascend XT Questions & Answers] faxanidu:
I'll have one before then cause unlike most I don't care about money :) . That and I have no reason to believe you since I have help from 3 others and still a bit off.
[Huawei Ascend XT Questions & Answers] messi2050:
i have done it one month ago :p
[Huawei Ascend XT Questions & Answers] faxanidu:
And you did not feel inclined to share with the community?
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
At least prove it by sending pictures
[Huawei Ascend XT Questions & Answers] messi2050:
I don't have the device, you can check my development history :)
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
How much would be needed to send it my way?
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
The fact that you did not share it with the community at large, is reprehensible.

I bought one of these and sent to to a developer to help with the effort. You should do as much. Share the twrp, and share the code. After all it is GPL.
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
? smfh
[Huawei Ascend XT Questions & Answers] faxanidu:
Agreed
[Huawei Ascend XT Questions & Answers] madvane20:
he should have his frie4nd provide some screen shots and video proof of it working as well as the phone booted with root video and screen shots then u all will know. i dont own the phone or i would release it free if i made it. i think he needs to provide the proof. its not hard to have screen shots and video proof. when i rooted the zte warp 7 i provided video proof and screen shots. i also didnt earn any money at all for it but released it to help others. i had the phone myself and wanted it rooted.since i did root it i shared it without a bounty. well i hope all goes well for u all to get twrp. i just had to throw my 2 cents in there
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
I have a question for you. Once you get something into the phone that gets part way through the boot like you have, why can't you hook firehose, and read sectors

out of the emmc, and save them to an sd card? IT seems to me, that in the boot process, once it gets booted to the point that it tries to run init, that you could

specifically activate the emmc read function, and a write to an sd card (you should be able to mount it by that point, or implement a simple motorola hex dump out the ADB. Then just cyle through the eemc, reading it block by block at the driver level) and writing it to the sd card or out the usb/serial port).

Indeed, once code is actually loaded into ram by the boot loader and control is transferred over to it, then low level at the metal code can read out the flash (eemc) and once we have a binary copy of it, it should not be all that terrifically difficult to find blocks. There has to be some kind of directory structure.

Lets go back to the real low level stuff like I am used to.... A read sectors from EMMC and a write sector to fat formatted sdcard, loop, or even an interactive debug console. Heck, can you just embed and fire up GDB over the usb interface?
[Huawei Ascend XT Questions & Answers] Inventtit:
Anxious

I have been following this thread since November anxiously awaiting some movement on this phone.

I bought 8 of these on black Friday. I really have no idea the of technical aspects of what you guys are talking about but it's interesting to read (I have to look up everything). I decided to try paying to unlock the phone so I could use it on T-Mobile. I used username (blockchainunlocks) on eBay. I took about a week @$39 USD. It seems to have worked. My wife loves this phone. She is coming from an S8 and before that a G5 and before that an S5. The idea on these was to try out Huawei at a reasonable price and have an (extra) if one broke for 1/2 the price of insurance. Like most others, I would still really like to root or in my case learn to root this phone. Thanks to all!
[Huawei Ascend XT Questions & Answers] powerserge1:
Maybe try contacting yuweng (xda username). He helped us get twrp working on the Ascend XT and it didn't take him long. Worth a shot and sounds like some would be willing to pitch in to get this going. He knows what he is doing.
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
I bought 2, wish I had bought 3, lost one, and sent one to a dev to help with the trwping/rooting. I sure hope I can find the one I lost. IT is a nice phone, and I had a ton of christmas pictures and videos on it. But not activated as a phone. Interesting that you were able to get it unlocked.

I'd love to have it unlocked, so I could use it with verizon or sprint....

What I REALLY don't understand, is why once you have root, and flash a new rom, the phone remains locked to a carrier. IT would seem to me that flashing a new rom would unlock it, or getting root would enable you to clear the lock. IT has to be hiding *somewhere* in the phone, in *some* module. That unlock code triggers something, and once you have root, it should be possible to identify and remove that lock.
[Huawei Ascend XT Questions & Answers] yuweng:
scrungydoolittle pm me with just a link to this thread the other day, absolutely no details at all, a little free today, i have to read from page 1 to 24 to know the whole story ! Anyway, long story short, built the kernel, ported TWRP but i have absolutely no idea if it'll boot !

WARNING : For serious tester only who knows what they are doing, require unlock bootloader. Unzip but do not flash this recovery, use below command.

adb reboot bootloader
fastboot boot recovery.img

If it boots then backup the stock recovery.img back to this thread so that i can make a proper change that will suits for the XT2, Good Luck :fingers-crossed:
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
I will try later on tonight when I get off work. ?
[Huawei Ascend XT Questions & Answers] aslezak:
It works! Thanks :laugh::laugh: so much! I had to flash it though, trying to boot it did not work.

Also, my stock recovery partition was hosed so no sense backing that up.

adb reboot bootloader

fastboot flash recovery recovery.img

fastboot reboot

adb reboot recovery

---------- Post added at 09:07 AM ---------- Previous post was at 09:03 AM ----------

For good measure I tried, using your TWRP, adb sideload Magisk-v15.1.zip.

Unfortunately at the end I received this error:

Boot image patched by other programs

Please restore stock boot image

- Unmounting partitions

Updater process ended with ERROR: 1
[Huawei Ascend XT Questions & Answers] faxanidu:
I'm going to start dumping everything hope you right.

EDIT: ummm problem says I need to turn my frp lock off.
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Wait so it works when you flashed it, and now the TWRP is your main recovery?
[Huawei Ascend XT Questions & Answers] aslezak:
Yes, this TWRP is now my main recovery since I flashed it. However, the default recovery on Huawei is the eRecovery partition which is still stock on my device.

Hopefully someone will have this rooted in the next day or so. I'm not sure why the ADB sideload of Magisk said my boot partition had altered, as I never messed with that partition.

It would be worth trying Magisk for the Redmi Note 4 (?) to see if that works. I believe that's what the twrp build is based on.
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Okay cool. Btw, what do think would happen if I tried to flash a SuperSu zip after flashing twrp? Do you think the xt2 will be rooted? Or..
[Huawei Ascend XT Questions & Answers] divineBliss:
Sounds like it, but remember aslezak's stock recovery partition was corrupted anyway, so nothing for aslezak to lose by flashing the yuweng test TWRP.

Recall that yuweng asked people not to flash this test TWRP until they could backup and post the stock recovery first - then yuweng will use it to create an updated/modified fully functional version TWRP that could be flashed by everyone - if I understood correctly.

So using "fastboot boot recovery...." command, someone still needs to pull a stock recovery for yuweng to finish the TWRP.

I don't own a XT2, so I can't do it.
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Okay I see. Well someone might get to it before me, but tonight I'll boot the TWRP and backup the stock recovery and upload it here.
[Huawei Ascend XT Questions & Answers] divineBliss:
Have you been able to boot to stock recovery using eRecovery partition? Have you tried backing up any main partitions with your flashed TWRP (not sure if that would work or if backups would be valid or restorable) ?
[Huawei Ascend XT Questions & Answers] aslezak:
At least on the Y7 Prime, the recovery partition is the same as the eRecovery partition. So I'm not too worried about that.

I'll backup the erecovery and flash it to recovery for our first test.

I think others will need to backup the boot partition (boot.img) and provide here. Mine may say it's been altered because I tried to sideload Magisk once before (pre TWRP) using the update.zip method from the hidden *#*# menu.

Regardless, I'll post a dump of all major partitions tonight.
[Huawei Ascend XT Questions & Answers] faxanidu:
With twrp I can try more hardcore root methods. So someone needs to not flash twrp till I can find a stock root method. C which will be easy since I'll have full access to the phone now. Only problem I have now is with all my poking around, FRP lock came on so I can't flash the TWRP.

---------- Post added at 11:46 PM ---------- Previous post was at 11:40 PM ----------

Our Fastboot has a specific bug. We can't fastboot boot anything I'll find the cve for it.
[Huawei Ascend XT Questions & Answers] divineBliss:
Regarding FRP, a post from H1611 owner. Not sure if it helps:

https://xdaforums.com/huawei-ascend-xt/how-to/guide-how-to-remove-frp-via-fastboot-t3728699

I wonder if it would help or resolve this issue to do a factory reset from phone settings :confused: .

Rooting without TWRP or custom recovery sounds like a real challenge as phone companies have been closing loopholes over time.
[Huawei Ascend XT Questions & Answers] faxanidu:
From what I've also read have to delete Google account. Factory reset. Relock. Click OEM unlock in developer. Then re unlock.

EDIT: That worked perfectly if anyone gets that problem. have to use: fastboot oem relock.

Getting working magisk now and then a boot.img so someone can dump stock recovery.

EDIT2: magisk semi working... got some bugs to iron out stand by.
[Huawei Ascend XT Questions & Answers] divineBliss:
Did you have to do all of the steps or just oem relock and unlock (which basically wiped your data partition again).
[Huawei Ascend XT Questions & Answers] faxanidu:
i did all steps to besafe

EDIT: getting magisk to work is a *****

EDIT2: i can no longer boot into recovery just takes me strait to system.......

EDIT3: Fixed cause i made a dd of my boot.img thank god

Also Good news Everyone I got magisk working :)
[Huawei Ascend XT Questions & Answers] faxanidu:
WARNING!​

ALSO before anybody does ANYTHING boot into TWRP and write to system. make sure EXT_SD is mounted. then do this:

dd if=/dev/block/mmcblk0p35 of=/external_sd/boot.img
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
So... You have root now? It's safe to flash twrp recovery and flash magisk and we'll have root?
[Huawei Ascend XT Questions & Answers] aslezak:
Great news, thanks faxanidu.

How did you load Magisk? Did you use adb sideload? If so, could you please upload your boot.img :D

Note -- I backed up my partitions using TWRP (nandroid), well all partitions less the data partition. The backup fails on the tar of the data partition due to some funky looking filenames (encryption?).

I:addFile '/data/misc/adb' including root: 1
==> set selinux context: u:object_r:adb_keys_file:s0
found policy '/data/misc/adb' - '1DK' - 'cd03e13f59880609'
I:addFile '/data/misc/adb/,DX60tnhon3d6aKIW9WBUB' including root: 1
==> set selinux context: u:object_r:adb_keys_file:s0
I:Error adding file '/data/misc/adb/,DX60tnhon3d6aKIW9WBUB' to '/external_sd/TWRP/BACKUPS/74H7N17806000739/2018-01-06--21-13-56/data.f2fs.win000'
Error creating backup.

Anyway, I am in the TWRP terminal trying to do a dd backup on data (/dev/block/mmcblk0p62).

It does appear to be working, it's just the partition is quite large, so I piped dd to bzip2:

dd if=/dev/block/mmcblk0p62 | bzip2 -9f > /external_sd/data.img.bz2
[Huawei Ascend XT Questions & Answers] divineBliss:
aslezak,

Did you try flashing the Magisk zip from TWRP? That's how I would try to install it.

If your phone is not rooted, I don't think dd would work from adb :confused: