yashsingh1/xdaforums huggingface dataset:
[Huawei Ascend XT Questions & Answers] yuweng:
Since you are interested, don't look so far ahead, XT2 has a N kernel, AFAIK, you should be able to cook N custom ROMs but it won't be easy. i'm no DEV but i have cook more than 60 N Custom ROMs, N has just ended, Official Oreo is not even here yet thats why i have all the time hanging out at this thread :laugh:

The easiest is still to port over compatible custom ROMs instead of having to bring-up the whole device tree, kernel source & vendor tree Eg. for my device here
[Huawei Ascend XT Questions & Answers] faxanidu:
Hmm good point maybe some customs first
[Huawei Ascend XT Questions & Answers] messi2050:
I upstreamed lg msm8937 kernel and booted oreo on my lg stylo2 plus, when i first booted it almost everything was broken while i already have stable nougat tree so yes staying with same stock android release saves much time.
[Huawei Ascend XT Questions & Answers] aslezak:
Don't get an Elate. This phone works on Cricket and you'll get the $50 port in credit assuming you have a phone number to port in.

Cricket changed their policy on unlocking so you need 6 months service before they'd unlock it now. If that doesn't bother you, then the Elate is fine. It's cheaper now anyway vs the XT2.

---------- Post added at 06:18 PM ---------- Previous post was at 06:10 PM ----------

Correction: Magisk does work but you need to flash the modified boot.img instead of the Magisk zip (per my Root! post). Some people don't like Magisk for various reasons.. but it suits my needs :good:
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
Is magisk 100% fully working?
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
I'd prefer a system root i.e. a direct change to the qualcomm fstab that mounts the file system as rw rather than ro. IDGARA about googles "safety net":eek:.

I'd remove every shred of google if I could, and for certain the first thing that goes for me, is to wipe as much of google out and install gapps nano. i.e. the smallest google footprint that lets the phone work. And I don't care about downloading stuff from the "play store". I'll find the .apk and download it, and transfer it via adb or direct copy to an sd card. It is a shame that Google Play does not let you download an app, without installing it... and gps will go away as well. *then* it becomes a phone I might use as a phone.

I have a ton of cheap phones of various types. Some LG's that I found could not be rooted. An alcatel that can't be rooted. When I found that Huawei allows bootloader unlock, then it became my goto phone. :) I have 3 Y538 running sleeptimer, monitoring my sleep patterns, at least 5 of the Y538's are running Cigburn's digital age rom. One I use for freedom pop, and 5 others that are spares/utility phones. Being an embedded firmware engineer, I use the cell phones as tool boxes... Bluetooth traffic sniffer, frequency generator, spectrum analyzer, fraction calculator, unit converter, satellite installtion, and on 1 phone basic GPS with the phone antenna disabled, etc. And I use freedom pop free plan for texting, and have never come close to using the 500 free texts, and only once have I exhausted the data plan (500-900 mb) The H1711's were purchased on black Friday, so I could provide a better phone for the GF, but she got a Stylo 2 with a cracked screen before I was able to unbrick my phone... I wound up buying a Stylo that had a bad imei, off ebay for 45.00 and swapped her screen out. So now, the H1711 will probably be used as a better tool box. Certainly love the screen size.

So as far as unlocking goes, Cricket uses ATT. The only substantial difference to the pre-paid plans is in the number of gigs you get for some plans. Cricket is 2 gigs at 35.00 5 gigs at 45, and unlimited at 55 at the moment. ATT 1gb at 35.00 6 gigs at 45.00 and unlimited at 65.00. I'm not a heavy data user. So having to have one for 6 months before unlocking, is the same as ATT's 6 months of. Anyrate, I have an H1711 that will come back from enigma242 when I ask him to send it.
[Huawei Ascend XT Questions & Answers] Harrison85:
Did anyone with the elate (cricket) do a back up? Mine corrupeted, so did the process again, now Its booted and it looks complete different firmware wise, cannot get lte have different menu options which has confused me. I did the root method here.
[Huawei Ascend XT Questions & Answers] yuweng:
Even though our official device maintainer has already updated it, i did tried to learn how to upstream for my device following this guide from 3.10.49 to 107 & half way around 70 i gave up, too many conflicts, its just too complicated for me :laugh:

Found the below as i was browsing DU G+ :good:

[YOUTUBE]yWvU8_0O66A[/YOUTUBE]
[Huawei Ascend XT Questions & Answers] aslezak:
GCAM port (Google Camera from Pixel phones)

Guys, before I say goodbye on this thread (returning my XT2 as I am on Sprint), I wanted to let you know that the 32 bit port of Google Camera (GCAM) works great on this phone!

GCAM 4.2 (32 bit) (Note that I tried the 4.4 32 bit port but HDR+ isn't working in that build)

Camera2 API is enabled by default on this device, no root required!

HDR+ takes amazing low-light photos. I can take a picture with something hardly visible, and it looks well lit after the HDR+ runs it's course!

Have fun!
[Huawei Ascend XT Questions & Answers] messi2050:
I fixed 230 conflicts :rolleyes: it needs a good c language knowledge to know what to keep and what to remove and ofcourse much time, lg stock rom is 32 bit so it took much work fixing code to work with 64 bit
[Huawei Ascend XT Questions & Answers] faxanidu:
If I made a lite room for this phone so you want /data encryption on or off? Poll?
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
Thanks for all your good work.

---------- Post added at 09:40 PM ---------- Previous post was at 09:36 PM ----------

Non encrypted, with xposed installed (so the PIE control works), and a super user other than supersu or magisk, with nano-gapps.

and a fully working twrp.

Personally, I use APEX launcher.

I want to be able to pull the data off the phone via adb without worrying about trying to decrypt it.
[Huawei Ascend XT Questions & Answers] SuperBrolySSJ:
I'd like it off, and if you can somehow make Magisk or SuperSU work. Those two things would be great, I'd be willing to donate if you can
[Huawei Ascend XT Questions & Answers] enigma2446:
Has anyone tried installing superuser on system instead of system less? To do this go to twrp and make sure data is mounted, then enter terminal in twrp and run these to force system root method.

CD /data

Echo SYSTEMLESS=false > .supersu

After that the supersu zip files(or others) will force system install.
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
So does that give you a non-systemless root? The problem I have found with supersu is that way more than half the time apps don't work with it. It has been changed to spawn an interactive shell, and things like rootcheck, and luckypatcher don't see it as rooted. Notifications pop up that the app has been granted super user access for an interactive shell.

I'd like to see a su that just automatically grants access without ever asking to allow it. That being said, as long as rootchecker and luckypatcher see root and work, and I can edit fstab.qcom and the init files etc, and have the edits STICK, then I will be supremely happy...
[Huawei Ascend XT Questions & Answers] enigma2446:
Not quite yet. I can uninstall most system apps for Debloat but can't edits in system to stick yet.
[Huawei Ascend XT Questions & Answers] faxanidu:
I can edit everything no problem. Even changed the boot animation. I got this down now.
[Huawei Ascend XT Questions & Answers] enigma2446:
That's awesome... Steps faward.........
[Huawei Ascend XT Questions & Answers] dany0808:
How can I dump the stock recovery? I mean to have a backup before I flash the TWRP
[Huawei Ascend XT Questions & Answers] enigma2446:
Delete
[Huawei Ascend XT Questions & Answers] faxanidu:
Why do you always get deleted
[Huawei Ascend XT Questions & Answers] divineBliss:
I bet enigma2446 themselves edited that post because they changed their mind about what they posted :) .

Once you post on XDA, you can't delete the post yourself, so next best thing is you edit it to say "delete" or something else.

---------- Post added at 08:43 PM ---------- Previous post was at 08:38 PM ----------

You should be able to "fastboot boot H1711-TWRP.img", then use adb as root to dd the stock recovery partition to external SD - but someone here with this phone could give you the exact commands. Or maybe backup recovery partition from booted H1711 TWRP works too :confused: .
[Huawei Ascend XT Questions & Answers] enigma2446:
Xda was giving issues while uploading something. Then I got side tracked. Sorry guys

Stock recovery:

https://drive.google.com/file/d/1nGaGmHwz6eGuaUHQa7_ACcetvcumdC2_/view?usp=drivesdk
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
super.

I take it you have a working twrp now?

---------- Post added at 03:24 AM ---------- Previous post was at 03:22 AM ----------

O.K. can you back the phone up, and make that available so it can be restored to a phone?

How close to a 100% working TWRP have you gotten?
[Huawei Ascend XT Questions & Answers] Jayson555:
I've had the H1611 almost a yr now and love it! Its really been a awesome phone diff will be the one I buy again. Somebody told me that Samsung had a lawsuit against them thinking that they had gotten their patens. It didn't stick and Samsung gave up anyhow supposedly they are made very close in parts. He said that the reason Samsung was truly upset is because of the note 7. Supposedly it was made by them very similar in lot ways only difference theirs didn't catch fire and ran faster and better. I don't know if all this really truthful or not just what I've heard from several people over past few months. I do know that I wouldn't trade or sell mine for any other after using mine past yr almost. I'm glad to see others with newer version saying positive about them. I am diff going this fri to buy another one with the 7.0 version. Hope that they have some with the 6 inch screen like this H1611 I'm using now. I see these phones doing well in the future seen some on line up ta 2,500 in price.
[Huawei Ascend XT Questions & Answers] crashburn833:
finally released unbricking or stock restoring guide

https://xdaforums.com/huawei-ascend-xt/help/huawei-ascend-xt2-stock-image-fix-brick-t3736925
[Huawei Ascend XT Questions & Answers] dany0808:
"fastboot boot H1711-TWRP.img" won't work.

Do anyone know how to dump stock recovery ?
[Huawei Ascend XT Questions & Answers] clsA:
The stock recovery is 5 posts up from yours
[Huawei Ascend XT Questions & Answers] divineBliss:
What magic method did you use to get the stock recovery for H1711 as "fastboot boot H1711-TWRP.img" apparently does not work. :confused:

I'm assuming you could not just dd the stock recovery partition without root which would have required flashing TWRP over the stock recovery.
[Huawei Ascend XT Questions & Answers] dany0808:
That is what I am asking for... Just curiosity :rolleyes:
[Huawei Ascend XT Questions & Answers] aslezak:
If we were smart about it *hint hint to someone who hasn't flashed TWRP yet hint hint* someone would have flashed TWRP to erecovery, booted to erecovery, & backed up recovery from TWRP. Based on the Y7 Prime 2017 update, erecovery & recovery partitions were identical so that's what we assumed here. I.e. the stock recovery backup is actually the erecovery partition backup...
[Huawei Ascend XT Questions & Answers] divineBliss:
If someone did flash TWRP to erecovery for the purposes of making a stock recovery backup, I guess they'll be relying on the fact that someone else has made an erecovery backup for them to restore their erecovery partition back to stock (because erecovery would have been flashed to TWRP in this scenario)?

Chicken or egg first situation if I followed correctly. ;) Someone with two H1711s would be a good candidate for capturing both - one with each phone :)

So do stock erecovery and recovery images both exist and been both posted here currently for H1711?
[Huawei Ascend XT Questions & Answers] aslezak:
Stock erecovery.img was in this post stock erecovery.img etc.

If you want to flash TWRP to erecovery & backup the recovery partition using dd (it's only 80mb), the community would appreciate it. Then you can reflash with the stock erecovery.img after that if you want. Probably not necessary, but you'll find out once we have both recovery & erecovery if they are identical!
[Huawei Ascend XT Questions & Answers] divineBliss:
In this post of yours

https://xdaforums.com/showpost.php?p=75118285&postcount=296

you wrote that stock recovery and erecovery are the same. That post has the stock erecovery image.

I'm assuming that if you flashed that erecovery image to the recovery partition and flashed to recovery, then you can confirm, based on what happens, if the erecovery image is the same as stock recovery. I'm guessing they aren't the same, so if you agree, you might want to edit that post.

I'm just trying to learn here. I have a H1611 and have gotten used to 6" phablets, so passed up the 5.5" H1711 for now and don't have plans to get one at the moment.
[Huawei Ascend XT Questions & Answers] aslezak:
I did flash erecovery back to recovery, and it works (when I "adb reboot recovery" for example). So yes I still believe they are exactly the same, but it would be nice if someone did what I said (flash TWRP to erecovery, then dd backup recovery) to confirm.

I put the phone completely back to stock to sell it.
[Huawei Ascend XT Questions & Answers] dany0808:
I believe when you do a factory reset by TWRP it deletes some stock files that were located at /data. I mean it deletes theme files (problem), ringtones, apps (firefox for example)

Did someone make a backup of /data/ with stock stuff? I am trying to get back to full stock.

---------- Post added at 01:38 AM ---------- Previous post was at 01:33 AM ----------

I did flash erecovery to recovery too....

The thing is you can not flash to erecovery from fastboot. Can't "fastboot flash erecovery twrp.img"

I believe by fastboot you can flash only recovery, system, userdata and cache
[Huawei Ascend XT Questions & Answers] crashburn833:
um look at my new thread I created buddy ill even link you HERE unfortunately at the moment this is the only method of course you could just download the apps that are missing. full stock will have to wait for working twrp i think.:silly:
[Huawei Ascend XT Questions & Answers] divineBliss:
A factory reset will delete apps, themes, ring tones, etc you installed, but the factory installed apps, themes, etc should still be there unless they got debloated out of partitions like /system, /cust and then you did a factory reset.
[Huawei Ascend XT Questions & Answers] dany0808:
I didn't debloat anything... /cust/ and /system/ should be factory stock, do you know how to fix the stock stuff missing ? I have read on other threads that could happen after a Huawei bootloader unlock

---------- Post added at 06:22 PM ---------- Previous post was at 06:18 PM ----------

I dumped a stock /system and a empty /userdata and /cache . I am trying to get the .img files to be able to flash by "fastboot flash"
[Huawei Ascend XT Questions & Answers] aslezak:
dany0808 is right, this got wiped by doing the factory reset from our (not yet complete) TWRP.

Does anyone still have the default wallpaper on their device, i.e. the one from the retail box?

Someone can still back up data (userdata) without a fully working TWRP.

Ideally this person would:

- Put SD card in phone
- Flash [URL="http://www.mediafire.com/file/gybldrcgw8h6x2w/twrp_first%5B1%5D.img"]TWRP[/URL] to recovery from fastboot if you haven't already
- Erase/reset to factory either using the menu option in Settings, or from eRecovery
- Boot into TWRP right after the erase (it's ok if it booted, just don't progress setup beyond the language screen)
From TWRP, Advanced / Terminal:
dd if=/dev/block/bootdevice/by-name/userdata | bzip2 -9f > /external_sd/userdata.img.bz2

Once that's done, post the userdata.img.bz2 for the community.

Thank you!

I noticed that this particular wallpaper was on the Ascend XT as well, so it's available as a theme from Google Play .. but that's not what we want.
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
Never heard back from you on the guy who was going to pick it up. Is it still available?
[Huawei Ascend XT Questions & Answers] aslezak:
I still have it because I panicked when dany0808 said not only wallpaper but ringtones etc. were missing, so I didn't sell it to the guy.

I reopened the box, re-unlocked the bootloader, and am trying to build TWRP. I'll let you know how it goes...
[Huawei Ascend XT Questions & Answers] divineBliss:
On my H1611, factory installed .hwt theme files are located in /system/themes .......... check the same folder on your H1711 . If you don't have them, get someone with a working H1711 to check their folder for you, and maybe they'll upload the files in that folder. I unlocked my H1611 bootloader and don't recall facing any disappearing themes, etc issues.

If you go to app drawer - Themes app, do you get any choices to select from the factory themes like I do on H1611?

---------- Post added at 12:34 AM ---------- Previous post was at 12:26 AM ----------

From what I can tell after looking at some old H1611 files I have, it does appear that on the H1611, the stock erecovery.img and recovery.img partition dumps are identical as they have the same md5sum checksum and if I fastboot boot either image, I see the same menu. So this confirms what you reported for you H1711 about erecovery and recovery being the same images :) . Fortunately fastboot boot does work on the H1611.

My H1611 TWRP is flashed in the recovery partition.
[Huawei Ascend XT Questions & Answers] dany0808:
Like aslezak said the problem was generated by doing the factory reset from the actual TWRP not by unlocking the bootloader.

Ok, I cheked. The folder /system/themes do not exists, I am pretty sure that /system do not have any moddifications.

---------- Post added at 11:50 PM ---------- Previous post was at 11:48 PM ----------

I believe the stock missing files that we need were located at: /data/hw_init/

---------- Post added 21st January 2018 at 12:00 AM ---------- Previous post was 20th January 2018 at 11:50 PM ----------

If you can't pick any theme, I made a fix, this fix will install a Huawei Mate 10 theme (not the same that ours XT2) and will allow you to pick any theme you copy to /sdcard/HWtheme folder.

It's a TWRP flashable zip.

Flashable Fix theme v1
[Huawei Ascend XT Questions & Answers] divineBliss:
My understanding of the /data partition is that it gets regenerated after a factory reset from items in other partitions like /cust and /system which remain untouched by the factory reset.

https://xdaforums.com/general/general/android-partitions-explained-t3657183

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

Someone with a working H1711 without the missing themes issue can search /system and /cust for

*. hwt (theme files). I suspect they will find the files in one of those partitions. Must have root access to do the search.
[Huawei Ascend XT Questions & Answers] dany0808:
I checked my /system and /cust partitions by ES root explorer, it seems to has all the stock content, but no hw_init folder or .hwt files

May I ask, how do you think I got erased some folders/files from /cust or /system ?
[Huawei Ascend XT Questions & Answers] divineBliss:
At this point I'm just guessing that the H1711 theme files would be located in /system somewhere like the H1611. If someone with a working H1711 can confirm that, it would be great - otherwise maybe my theory is wrong about H1711 stock theme file location :confused: .
[Huawei Ascend XT Questions & Answers] dany0808:
I found out that EMUI 5.0+ stock firmwares are based on two flashable files

1) Update.Zip -> contents stock .img into the known update.app file

2) update_data_full.zip -> contents ( [1] A small update.app + [2] /data/hw_init/ folder )

So... I think that confirms what I tought, we erased hw_init folder from /data when did a factory reset by TWRP :(

Attached Honor 6X 7.0 EMUI 5.1 stock firmware package
[Huawei Ascend XT Questions & Answers] clsA:
The themes should be located in data\media\0\HWThemes\ and yes TWRP format data will erase this partition

in fact just unlocking the bootloader would erase anything on internal storage

but anyone can copy those for you without root
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
pm'd you.
[Huawei Ascend XT Questions & Answers] dany0808:
Yes, at data\media\0\HWThemes\ should be located the DOWNLOADED themes. But the factory STOCK theme should be located at \data\hw_init\system\themes\
[Huawei Ascend XT Questions & Answers] aslezak:
Can anyone help with this request? We need the /data/hw_init folder. You might be able to back this up using the included file manager without root. It is symlinked somewhere (you could see in this cust.log) but since mine was wiped, I am not sure where...

from /log/cust.log:

/data/hw_init/cust/preinstalled/public/app is not exist, no need symlink it.
[Huawei Ascend XT Questions & Answers] enigma2446:
[/QUOTE]

Zipped hw_init folder:

https://drive.google.com/file/d/1RxdYxYZru0T_lYzz_Afqo7fM3hP_r4_W/view?usp=drivesdk
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
Zipped hw_init folder:

https://drive.google.com/file/d/1RxdYxYZru0T_lYzz_Afqo7fM3hP_r4_W/view?usp=drivesdk[/QUOTE]

Thanks.

---------- Post added at 11:00 PM ---------- Previous post was at 10:38 PM ----------

Thanks.[/QUOTE]

Thanks. I can't believe there is so much crap in that folder. 3 copies of every picture

product\oem\H1711\screenlock\magazine\drawable looks like it has two copies of each picture, and version\region\comm\oversea\screenlock\magazine\drawable has another copy.

Surely two of each of these could go away?

and what is interesting is that there is generally one very large file and one smaller one with the same name. Wonder why that is?

And there are 2 ISO files! region_comm\oversea\cdrom and special_cust\H1711\att\us\cdrom totalling 10megs.

Seems like this should be a ripe area to save some space.

It looks like the entire region_comm folder could be deleted without problems, saving 24,749Kbytes. amost 24 megs.
[Huawei Ascend XT Questions & Answers] dany0808:
Confirmed it works!

Thankyou very much!!

Correction:

The folder \data\hw_init\system\themes\ can be created and will work,

but our default theme folder are:

data\hw_init\version\special_cust\H1711\att\us\themes\

data\hw_init\version\region_comm\oversea\themes\
[Huawei Ascend XT Questions & Answers] dany0808:
Here is a Flashable zip (by TWRP) based on hw_init folder that enigma2446 shared to us , download Flashable_hw_init.zip
[Huawei Ascend XT Questions & Answers] aslezak:
Great thanks! That works great with the empty userdata partition backup empty userdata.img

Here is the updated userdata partition backup with the tw_init files included userdata.img.bz2

Oddly, the partition image is much larger with the files added ... almost 1gb even though we added only 250mb? I'll look into that. But for now, it's there. It will get you a working data partition (userdata) if you accidentally wipe it.

(I fixed the size issue; applied zip from TWRP, booted/completed setup. factory reset, TWRP, dd backup of userdata)
[Huawei Ascend XT Questions & Answers] scrungydoolittle:
So which TWRP did you use, and is it completely working?
[Huawei Ascend XT Questions & Answers] aslezak:
I'm using yuweng's v3 twrp-xt2. No it's not completely working, there are issues with decoding encrypted files in /data.

This is likely to never be fixed, unless someone takes the time to find out which binary blobs in the Huawei boot.img (or erecovery.img) are used for /data decryption.

I personally can't even build a bootable TWRP. I've reached out to [MENTION=4478781]yuweng[/MENTION] for guidance. [MENTION=3586289]faxanidu[/MENTION] likely has made progress here..
[Huawei Ascend XT Questions & Answers] crashburn833:
I updated my guide with the new userdata zip provided above