yashsingh1/xdaforums huggingface dataset:
[Huawei Ascend XT Questions & Answers] dabadguycr:
I see that some users have been able to go back to stock root free and pass saftynet. Why havent I been able to go back to stock root free and update my phone?! Does it get stuck on booting up screen for more then 20mins before going to at&t logo?
[Huawei Ascend XT Questions & Answers] madvane20:
yea my backup should be stock and the twrp flashable zip is stock cust. flash recovery system and boot makes u stock but still wont update im gonna see if i cant make a twrp flash from the stock update. working on linage will get back to stock stuff after
[Huawei Ascend XT Questions & Answers] divineBliss:
Looking for a phone with a bone stock B140 and B150 Cust Partition

If anyone currently has a B140 or B150 bone stock Cust partition (where you never renamed or modified anything in it) that they would backup and share, please let me know.

Instruction to backup the Cust partion:

Open an command prompt window and type the follow commands

1. adb shell

2. su

3. dd if=/dev/block/mmcblk0p23 of=/external_sd/custPartitionB140.img

This will save the /cust partition in custParitionB140.img to your external SD top level folder. The file will 512MB size.

If your phone has B150, replace the above B140 with B150 please.

If you create the .img file, please put it somewhere where we can download it.

I'd especially like B140 at this time, but both are welcome and useful.

Thanks! :)
[Huawei Ascend XT Questions & Answers] clsA:
I'm looking forward to your Stock backup of B140 ... If you want I can put it on AFH for everyone
[Huawei Ascend XT Questions & Answers] divineBliss:
Unfortunately I'm experiencing the same problem as others have reported - the phone just sitting at the initial bootup screen saying it's booting, but never getting to the AT&T logo. I decided to terminate that after 10 minutes and restored the Boot partition to rooted to confirm that the phone would boot and it did, so I stopped there with my working rooted phone.

I'm stumped and will have to try other things :) . I'm out of ideas at the moment.

It did take 30 minutes for the phone to boot up to the login screen after I restored the my rooted Boot image. Glad that worked :) .

If I figure out how to get back to stock, I'll post a backup on AFH now that I have an account there too.
[Huawei Ascend XT Questions & Answers] shawnchalfant:
I've been out a while divineBliss, what's the issue stumping everyone. I switched to another device but am willing to experiment with my Huawei to help out. I know I can go back and read but I've been real busy with work. So please fill me in. I need something techie to relieve the stress.
[Huawei Ascend XT Questions & Answers] divineBliss:
shawnchalfant,

Well hello! :)

What's you new playtoy after the XT? I thought you sold it?

Basically, we are unable to take our stock TWRP backups and restore them to a working phone. When we restore from stock TWRP backup, the phone just sits at the first screen (phone is not secure, ......... phone is booting) and never gets to the second screen with the AT&T logo.

Boot and System partitions from stock TWRP back are being restored and some have also reformatted/wiped the Data partition, but the phone just sits at that first screen. One reason we want to do this is to OTA up to B150, then re-root, etc.

Any idea? :)
[Huawei Ascend XT Questions & Answers] shawnchalfant:
New device LG Stylo 2 Plus T-Mobile Edition. Unlocked, rooted and TWRP. Waiting on custom Rom like you guys. Let me get home, download what I need and get after it this evening.

---------- Post added at 01:01 PM ---------- Previous post was at 12:20 PM ----------

Ok did some brainstorming. Restore all stock partions as regular. Rember that the original data partition was a 0 byte file, well it still counts. It contains the partion table info. The data partion was originally encrypted before it was formatted. So when you restore stock data partion has to be the original 0 byte file so on first boot phone sees this and encryption is intact or else stock boot and system make no difference. This is a quick thought, I did a backup of the original 0 byte data partion for this very reason. Had this issue with prior devices. I will mess with this later this evening. Do a complete restore including data partion and relock the boot loader afterwards. Put it as close to stock as you can get, then use stock recovery to factory reset. This might be the issue. Need that 0 byte data partion, its vital to stock system.
[Huawei Ascend XT Questions & Answers] divineBliss:
Can you please try this when you get a chance and let us know? I was wondering if encryption had something to do with it, just as you said - but my data is like 6GB that I don't want to lose right now. Since your XT is not your primary device and you were looking to help, that would be great if you could verify your theory.

If you can figure out the command to lock the bootloader, that would be great too. jg1210 tried and was not able to get it to work : https://xdaforums.com/showpost.php?p=70956003&postcount=64

---------- Post added at 02:21 PM ---------- Previous post was at 02:13 PM ----------

@shawnchalfant,

I just recalled that were were not able to make a backup of the encrypted data partition because it was encrypted and TWRP could not mount it until we all reformatted Data as part of rooted. So if I'm not mistaken, we don't have an encrypted TWRP Data partition backup before root :( .
[Huawei Ascend XT Questions & Answers] shawnchalfant:
It was possible to make a backup of the data partion. It's 1K in size and is encrypted. I need to get a copy of cust partition for B140 as I stripped mine down and never made a good backup.

Anyone have a link to a clean B140? Look at the pic. Data partion backed up when I first booted in TWRP for the first time. Complete stock B140.
[Huawei Ascend XT Questions & Answers] divineBliss:
There's backups in https://xdaforums.com/android/development/stock-backup-t3545720

I don't recall if there's stock cust B140, but B130 I think is there. The B130 cust is worth a try on your phone.

After Data partition was formatted so TWRP could mount i, my understanding is 1k Data backup was unformatted.
[Huawei Ascend XT Questions & Answers] jarrettsuydam:
I'm willing to try just even if it means getting root access. I'd love to download this phone and get more space out of it.
[Huawei Ascend XT Questions & Answers] divineBliss:
What is the risk of trying? Making a brick or no risk? Are you going to try it on your XT first, or no? ;)
[Huawei Ascend XT Questions & Answers] enigma2446:
You can boot any recovery using Fastboot commands and it won't erase the stock recovery. Just have to find one that is compatible. No luck this far, I've tried the honor 5x twrp and all I get is a black screen. Fastboot booting is the safest Without bricking.

"Mvno Master"
[Huawei Ascend XT Questions & Answers] divineBliss:
The Huawei Ascend Mate 2 has the same resolution as XT, but different processor, so its TWRP is probably not worth trying if I understand correctly, is it?
[Huawei Ascend XT Questions & Answers] enigma2446:
Try it. Download and place the mate 2 twrp in the folder where you have adb and Fastboot and reboot the device into Bootloader and run the the command.

Fastboot boot "whatever the twrp is called"

E.G. Fastboot boot twrp.img

The ascend mate 2 has a variance on pixel density. It has a 241 ppi and the xt has 245ppi

"Mvno Master"
[Huawei Ascend XT Questions & Answers] divineBliss:
Mate 2 TWRP if anyone wants to try:

https://dl.twrp.me/mt2l03/

Mine is still in the box.
[Huawei Ascend XT Questions & Answers] enigma2446:
No go... Says dtp not found

"Mvno Master"
[Huawei Ascend XT Questions & Answers] 903tex:
You can't flash like that! You going have to unpack the recovery with the stock recovery on the xt. And then repack it
[Huawei Ascend XT Questions & Answers] enigma2446:
Wasn't trying to flash it, was trying to see if it would boot.

"Mvno Master"
[Huawei Ascend XT Questions & Answers] smithbobbyjoe:
is it common for phone manufactures to withhold the source codes completely counter to the clear language in the open source license? Is there a timeframe in which they have to release it after receiving a request? and what is a typical timeframe between phone release and source code release; if there is such a thing as typical? It seems to me the source code should be released soon now; but what do I know?
[Huawei Ascend XT Questions & Answers] 903tex:
And it won't boot because the phone don't have the same kernel or edt imgs

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

It's up to Huawei when only thing we can do is show interest and bug the crap out of them for it sooner! Actually about a month or two after the phone is released(ones that's not google, or manf. That supports deving)
[Huawei Ascend XT Questions & Answers] divineBliss:
Did anyone happen to try fastboot with a Huawei Honor 5X custom recovery as suggested in the other thread?:

http://xdaforums.com/showpost.php?p=70075400&postcount=60

Honor 5X TWRP (.7z has a recovery.img inside it :) ):

http://xdaforums.com/devdb/project/dl/?id=19454

OPs of these two Huawei Ascend XT threads should consider merging them into a single thread :) .
[Huawei Ascend XT Questions & Answers] enigma2446:
I tried it and it rebooted to a black screen so that's progress. I also tried the mate 2 and it didn't take and said dtp not found in Fastboot.

"Mvno Master"
[Huawei Ascend XT Questions & Answers] RN_ReFlux:
I've tried booting into 3.0.0-1, 3.0.1, and 3.0.2 without any success. Reboots to a black screen.
[Huawei Ascend XT Questions & Answers] enigma2446:
Also tried the 7z and still says dtp not found

"Mvno Master"
[Huawei Ascend XT Questions & Answers] divineBliss:
Mmm, that's also a Honor 5X TWRP, but you got a black screen with the other Honor 5X custom recovery you tried. I wonder why the difference? You did use the .img inside the .7z, right?

---------- Post added at 11:52 PM ---------- Previous post was at 11:15 PM ----------

With NO root or a custom recovery, there's no way to pull the stock recovery from the XT, is there?

Will adb dd command work to dump stock recovery without root?

I think the answer is not without root:

http://xdaforums.com/showthread.php?t=2450045
[Huawei Ascend XT Questions & Answers] enigma2446:
Yes I used the img from the 7z

"Mvno Master"
[Huawei Ascend XT Questions & Answers] CADude:
You guys are doing god's work here. Keep it up. I wonder how many of these were sold on Black Friday.
[Huawei Ascend XT Questions & Answers] divineBliss:
Anyone try this Honor 5X TWRP in step 8?

http://xdaforums.com/honor-5x/development/root-kiw-l24-usa-kiwi-t3305190
[Huawei Ascend XT Questions & Answers] enigma2446:
Yep.. No go

"Mvno Master"
[Huawei Ascend XT Questions & Answers] shawnchalfant:
The file system for the data with encryption is there. In on first boot the encryption is established and file system is expanded. Like if you have a 16GB img file on a 32GB SD card. The file system is expanded to take advantage of the additional space. I'm going to download the cust now.

---------- Post added at 07:55 PM ---------- Previous post was at 07:23 PM ----------

Quick question, I'm somewhat puzzled. What are we trying to accomplish? Are we trying to go back to complete stock in order to update to B150? If so why not just modify B150 zip and flash via TWRP. This is highly possible. Does not take much to mod the ota.
[Huawei Ascend XT Questions & Answers] divineBliss:
Well, for one thing some of the update is done by patching existing files if I understand correctly, and if the files are not the expected version or missing, wouldn't the update fail, even if done through TWRP? And the other thing is why can't we roll back to stock with our backups - just as a matter of principal? So yeah, one big reason to be able to go back to stock is for OTA updates.
[Huawei Ascend XT Questions & Answers] CyberManiaK:
Hi guys awesome work with the XT, one quick question. If the XT is on b130 does the root process on page 1 still apply? TIA

Enviado desde mi iPad utilizando Tapatalk
[Huawei Ascend XT Questions & Answers] divineBliss:
Yes :) . You don't want to update to B150 first OTA?
[Huawei Ascend XT Questions & Answers] CyberManiaK:
Thanks.

I wish, but I don't have any AT&T active sim card available (only have the one that came with the phone), beside that I'm currently in Mexico with another carrier. Or you have any trick ?
[Huawei Ascend XT Questions & Answers] sonofdan:
I'm swapping one of my phones tomorrow with a family member. I should be able to backup stock b140 cust. Should I hold off on root of this phone to keep it stock for sake of potentially being able to backup the data partition if the issue gets figured out? I have two of these phones pretty much as backups for when my g4 decides to bootloop so I really have no need to root than playing around with the devices.
[Huawei Ascend XT Questions & Answers] shawnchalfant:
Relocking the boot loader is possible. Went to the Huawei site and found the same command to unlock also locks the phone the same, "fastboot oem unlock ########" ### being the number you used to unlock the device. But Huawei recommends to flash original stock via SD card. The big issue is we don't have original restore file. I'm going all in here in a few, Will report back during the night.
[Huawei Ascend XT Questions & Answers] divineBliss:
sonofdan,

Thanks! Yes, it would be great if you could keep it at B140 stock. I wish I had that phone in my hands to be able to figure out what's going on here :) .

I've had two G4s bootloop, so it's just a matter of time.

---------- Post added at 06:10 AM ---------- Previous post was at 06:09 AM ----------

That was tried in the link I posted and reported to not work.

You were going all in - any status on that? :)
[Huawei Ascend XT Questions & Answers] shawnchalfant:
Locking boot loader is possible "fastboot oem relock #########". I need a copy of cust partition B140, B130 will not work with B140 firmware.
[Huawei Ascend XT Questions & Answers] clsA:
Here's all i can find on dealing with the system.patch.dat files https://xdaforums.com/android/software-hacking/how-to-conver-lollipop-dat-files-to-t2978952. Seems the easy way is to have a Ubuntu x64 setup.

More on unpacking system.new.dat files >> https://xdaforums.com/android/help/extract-dat-marshmallow-lollipop-easily-t3334117

I had a backup of B130 with the 0 byte /Data partition but it would not boot .. it would not even get to the AT&T logo after nearly an hour

downloading and flashing [MENTION=7934375]madvane20[/MENTION] Stock.backup was the only thing I could find that would actually bootup unrooted

and returned to stock. (aside from the mysterious /supersu folder)

I think the problem is the version of twrp we are using is incomplete. On the Honor 8 for example the OTA update.zip files can be flashed without errors. The version of TWRP we have Fails to flash even simple commands like block_image_update() which is necessary to flash the updates that Huawei is using.

I'm guessing until we get a new version of TWRP we are going to be stuck
[Huawei Ascend XT Questions & Answers] madvane20:
i dont know where that folder is comming from i just extracted my system image to delete the folders and files but they do not exist in the image
[Huawei Ascend XT Questions & Answers] clsA:
Is TWRP creating it ?

it's always their in the TWRP file manager
[Huawei Ascend XT Questions & Answers] sonofdan:
Here is one of my phones cust partition for B140, never played around with it. https://drive.google.com/open?id=0B6MoWeNYqTtOZTdMeG1GYUN3LWs
[Huawei Ascend XT Questions & Answers] clsA:
That's Great thanks for sharing... Now we need the Stock System.img to match it
[Huawei Ascend XT Questions & Answers] divineBliss:
[MENTION=7934375]madvane20[/MENTION],

How did you create this stock backup of B130 which clsA wrote does indeed restore to b130 and boots up? Anything special you recall doing?

---------- Post added at 11:42 AM ---------- Previous post was at 11:41 AM ----------

@sonofdan ,

I did hit the thanks button :) . If you can do a TWRP backup and post those files, that would be terrific :) .

Assuming your bootloader is unlocked, from post 1, follow the first part of the instructions to "fastboot boot TWRP.img" so you won't actually flash the TWRP, but rather run it from RAM to make whatever backup you can :) .
[Huawei Ascend XT Questions & Answers] madvane20:
it was my original stock backup before root after doing fastboot boot twrp i can tear down the boot image look into it see if somehow i got wrong boot file but other than that i dunno.

have my vm installed now im gonna start over on linage think maybe the version that was shared was corrupt
[Huawei Ascend XT Questions & Answers] divineBliss:
[MENTION=7934375]madvane20[/MENTION], Thanks! Do you or
[MENTION=1099755]cla[/MENTION]A or anyone else know the answer from actually doing it:

if you leave your non-stock Data partition in place, and just restore the madvane20 Stock B130 Boot and System partitions from TWRP (and Cust using dd), will the phone still boot up (with the non-stock Data partition in place)?

I have B140, so I can't really try this.
[Huawei Ascend XT Questions & Answers] madvane20:
upload ur twrp backup for b140 i will see if i cant do anything with it need system boot and the recovery well in others words complete backup im gonna take a shot at remix since linage is a pain in the butt
[Huawei Ascend XT Questions & Answers] jg1210:
Can you tell me what you did to the phone before locking the bootloader to make it lock? Was it just as simple as entering that code? Maybe, mines didn't lock because I had to request a new unlock code from Huawei, since I didn't save the original. This is going to bother me now, knowing it's possible and my attempts would fail. Where did I go wrong lol?
[Huawei Ascend XT Questions & Answers] shawnchalfant:
Anyone have a backup of cust B140 partition?

---------- Post added at 12:16 PM ---------- Previous post was at 12:09 PM ----------

I restored my stock b140, then flashed stock recovery. Did a factory wipe then locked the boot loader. I restored my cust with B130 before I did any thing else. Phone will not boot. I'm thinking it has to do with checksums not matching during boot up. I need a stock cust B140 to get original stock to be correct. That's my brick wall at the point. Need stock cust B140, Anyone. Please. Just need the img file. I will manually flash it via fastboot.
[Huawei Ascend XT Questions & Answers] madvane20:
can u share ur b140 backup with me. uploading a new b130 stock backup after i deleted the folder supersu or what ever folder it was showing in twrp
[Huawei Ascend XT Questions & Answers] clsA:
B140 /cust was just posted today - https://xdaforums.com/showthread.php?p=70984740
[Huawei Ascend XT Questions & Answers] madvane20:
that just says cust not full backup
[Huawei Ascend XT Questions & Answers] clsA:
yeah that's what [MENTION=1128668]shawnchalfant[/MENTION] requested

Also I not sure fastboot will flash it

you have to dd it from adb shell in TWRP
[Huawei Ascend XT Questions & Answers] madvane20:
yea i need the boot backup the recovery backup and data and system for the b140 not just cust
[Huawei Ascend XT Questions & Answers] clsA:
Me too :)

I'm still on b130 remember

You can pull the stock recovery and boot.img from the update.app in the b130_b140.zip
[Huawei Ascend XT Questions & Answers] madvane20:
im uploading a stock file after i deleted that supersu folder in twrp i made the backup will u try it see if it is full stock with that folder gone. cause i hate restoring cust to have to redebloat it when i wanna restore my backup
[Huawei Ascend XT Questions & Answers] clsA:
TWRP file manager would not remove the /supersu folder here
[Huawei Ascend XT Questions & Answers] madvane20:
i was able to remove it in twrp but i booted twrp with fastboot instead of recovery partition i added the new backup i made in my stock post
[Huawei Ascend XT Questions & Answers] divineBliss:
I'm wondering if it comes back after you reboot the phone :confused:
[Huawei Ascend XT Questions & Answers] madvane20:
well do it this way format system partition then restore my backup try that
[Huawei Ascend XT Questions & Answers] divineBliss:
I can't try anything right now ....... asking if you tried it :) .
[Huawei Ascend XT Questions & Answers] madvane20:
i havent tried it cause i dont wanna restore stock cust lol i have formatted my system partition before and restored a backup so it wont break the phone to format system also im working on remix atm linage gave me a headache
[Huawei Ascend XT Questions & Answers] divineBliss:
I know it won't break anything. Actually when you restore system, it formats it first anyway :) .
[Huawei Ascend XT Questions & Answers] madvane20:
yea but i was saying if when booting to twrp shows that folder to wipe it ahead of time then restore all partitions stock recovery as well
[Huawei Ascend XT Questions & Answers] divineBliss:
I see! :) I'll try that next time I try to restore back to stock. I will post my B140 stock TWRP (which I have not successfully gotten to boot) like you request .......... not sure when - might be tomorrow night before I can do it.
[Huawei Ascend XT Questions & Answers] madvane20:
ok when u do i will download it and tear it apart see if i can find why its broke
[Huawei Ascend XT Questions & Answers] shawnchalfant:
Thanks guys for B140, hopefully I can get stock B140 to boot and take B150. I'll chime in later.
[Huawei Ascend XT Questions & Answers] dabadguycr:
Has anyone figured out how to remove the SuperUser folder in TWRP?

I've got a theory.

SuperUser is its own partition that isn't mounted. I have this issue with cust. I tried to delete apps, it would act as I deleted them but on reboot they reappeared. Then I notice I didn't set cust to mounted and it worked.

---------- Post added at 01:36 PM ---------- Previous post was at 01:34 PM ----------

I have b140 but my stock backup won't work. If you want a working rooted backup I can upload it [MENTION=7934375]madvane20[/MENTION]
[Huawei Ascend XT Questions & Answers] madvane20:
upload both if u can
[Huawei Ascend XT Questions & Answers] dabadguycr:
You only need system and boot files right?
[Huawei Ascend XT Questions & Answers] madvane20:
system boot and recovery for both
[Huawei Ascend XT Questions & Answers] dabadguycr:
Alright compressing them now into two different rars.

One will be rooted working.

The other will have TWRP Flash Unrooted and stock before flashing TWRP.

Whats the best fastest free place to upload Google Drive?
[Huawei Ascend XT Questions & Answers] madvane20:
i use google drive theres also one drive by microsoft and probly others google is fine
[Huawei Ascend XT Questions & Answers] dabadguycr:
I didn't know I could share Rar with one drive. I may use that or one of my 10 Google accounts.

It's going to take a while to upload. I have 100Mbps down but only 3Mbps up
[Huawei Ascend XT Questions & Answers] divineBliss:
[SHARED] My B140 Stock TWRP (Boot, System, and Recovery)

My B140 Stock TWRP (Boot, System, and Recovery).

https://www.androidfilehost.com/?fid=745425885120707372

Note again, that if I restore the Boot and System, I have not been able to get it to boot.

There is a non-stock B140 Cust img shared by sonofdan here:

https://xdaforums.com/showpost.php?p=70984740&postcount=1194

02/21/2017 UPDATE: NOTE that the above shared Cust image is not stock B140, as it appears to have been debloated and its is

missing some folders/files:

/cust/preinstalled/public/app:

AmazonKindle

ATTFamilyMap

ATTLocker

ATTSmartLimits

ATTSmartWIFI

ATTVisualVoiceMail

DirectTV

MyATT

Uber

YPMobile

which I consider bloat, but I believe some use ATT Visual Voice Mail, and maybe some others??

Here is my B140 stock cust image:

https://www.androidfilehost.com/?fid=457095661767139208

Okay, who can crack the mystery first :) .

---------- Post added at 03:28 PM ---------- Previous post was at 03:26 PM ----------

Okay, tear it apart :) ... just shared in previous post :) .
[Huawei Ascend XT Questions & Answers] madvane20:
got it to boot but wifi seems broke