yashsingh1/xdaforums huggingface dataset:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] XblackdemonX:
I've never been on B20_boot. Everything started when I used Tenfar's tool to backup my boot and recovery. I used the command axon7root.exe -p 4 -b by error and it flashed boot.img when I thought it would actually backup it. After that I lost my WiFi immediately since I didn't have the original boot.img. After that I tried to flash TWRP to restore someone else's system image and then yours which worked but I still didn't have WiFi.

I tried to flash Unjustified Dev's TWRP but since my bootloader is still locked, it didn't boot. So I kept trying to mess around with the files you provided to try to fix this but the best I can do is boot into Android without WiFi. If I try any other recovery or boot.img the phone doesn't boot at all (again maybe because my bootloader is still locked?)

If I restore your system backup and use the stock boot and recovery it doesn't boot.

if I use your system image but I try to flash the no-verity-no-encrypt-2.1.zip file it won't boot because it modifies the boot.img

I tried to restore your system image, flash the original boot.img and then flash no-verity-no-encrypt-2.1.zip but it still won't boot.

Conclusion: If I use any other boot.img that yours it won't boot. If I continue with yours it boots but I have no WiFi. I am starting to think that if I unlock the bootloader maybe I could boot with another boot.img but i'm afraid that if this doesn't work then I won't be able to return the phone on warranty because the BL will be unlocked.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Gachmuret:
Hmm.. Do we have original B20 system, boot and recovery from anyone else then rczrider to compare... Could it be that there is something device (maybe IMEI) specific? Altough I doubt that...

And other thing, did anyone of you [MENTION=6699128]rczrider[/MENTION] or [MENTION=1001089]XblackdemonX[/MENTION] update from B18 or did you receive your devices already on B20?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] XblackdemonX:
I was already on B20. Also i'm pretty sure it's because of Tenfar's modified boot.img because my original issue was that when I used Tenfar's method to flash TWRP without unlocking the bootloader my WiFi stopped working and I tried to find a way to fix it. I was still on my original OS, not Rczrider's.

I think the WiFi driver or something related could be missing from the boot.img. The stock boot.img is 64MB while Tenfar's boot.img is 45MB
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
can you and Rcrider post the result of

adb shell uname -a

compare it tosee if you are the same boot.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] XblackdemonX:
If I use Rczrider's stock boot.img my phone doesn't boot. I see the ZTE logo for 1 second and the phone turns off.

My phone can only boot with your boot.img that I took HERE but it breaks my WiFi.

Tanfar's boot.img: Linux localhost 3.18.20-twrp-ailsa_ii-1.0 #1 SMP PREEMPT Mon Aug 15 03:53:21 EDT 2016 aarch64 GNU/Linux
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
thanks，this means the boot image from idlekernel.com is also not stock B20_boot boot.img it's complied from sources by the original uploader.:(
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
I get:

Linux localhost 3.18.20-perf-g41a3194-00806-g8c59883 #1 SMP PREEMPT Thu Jul 7 17:31:48 CST 2016 aarch64
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] DrakenFX:
I'm slightly different..

Linux localhost 3.18.20-perf-g41a3194-00806-g8c59883 #1 SMP PREEMPT Fri Aug 5 15:48:39 CST 2016 aarch64
root@ailsa_ii:/ #
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] peramikic:
B20 vs B20_Boot (same kernel but 2 different build dates)

Interesting about the idlekernel one, i thought in came from B20_Boot from [MENTION=1421381]jkuczera[/MENTION]

The boot being 43MB vs 64MB is because the Stock dump is padded to 64MB, it is much more closer to 43MB real data
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] owlbeard:
I am having a similar problem. I can't get past the ZTE logo if I use any boot.img but the rooted one. I just want to revert to stock so I can use my banking app. I feel like I've tried everything but am still stuck. Did you ever find a solution?

Edit: Here is my uname info:

Linux localhost 3.18.20-perf #1 SMP PREEMPT Sun Aug 14 18:35:21 CDT 2016 aarch64 GNU/Linux
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] XblackdemonX:
Actually I never tried another boot.img because I wanted to be rooted with TWRP. You used rczrider's stock recovery and boot images?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] owlbeard:
Yep. I tried his system, boot, and recovery. No luck. I was able to wipe via stock recovery then use twrp to restore my system, data, and boot from a backup. Unfortunately, if I revert back to a unrooted boot.img it still hangs at the ZTE screen.

I think there must be something lingering in my system somewhere. I tried flashing the B20_boot update via stock recovery and it fails due to unexpected system contents. I'm stumped.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
And you know what makes this suck even more? We wouldn't even have to be dealing this if ZTE just released the factory images already! What's the point of them trying to be developer friendly with the bootloader unlock if they dont release anything else?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] owlbeard:
This is true. Even a full ROM that flashes unconditionally would be helpful. An update OTA just doesn't cut it.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Barsky:
Big problem here. Decided I wanted to do a wipe of everything but system in twrp. Now, my phone storage show as being only 4gb when booted up. If I look at /data in twrp it shows proper size.

Any idea how to fix this?

I have tried restoring just data from a twrp backup. No help. Now I am trying restoring an entire backup.

Edit: Booting. Cell service or wifi. Anyone get that fixed?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Flapjack:
No wifi for me either. I never took a backup of the boot partition, so I'm hoping I'm not screwed....

**EDIT**

I flashed tenfar's original modified boot (the one that is now crossed out) just for giggles, and now my phone boots AND has wifi.

http://xdaforums.com/axon-7/development/wip-axon-7-root-bootloader-unlokced-t3441204
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] manu7irl:
[MENTION=6699128]rczrider[/MENTION] Can you post the dd commands you used to dump the system files?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Gachmuret:
Did you unlock your bootloader?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Flapjack:
Yup. Bootloader is unlocked.

The crappy thing is that after I tried to root it, everything stopped working again. I went through the exact same steps to restore it, but I can't get wifi working again.

Sigh....
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
adb shell dd if=/dev/block/bootdevice/by-name/modem of=/sdcard/modem.bin
adb shell dd if=/dev/block/bootdevice/by-name/bluetooth of=/sdcard/bluetooth.bin
adb shell dd if=/dev/block/bootdevice/by-name/fbop of=/sdcard/fbop.img
adb shell dd if=/dev/block/bootdevice/by-name/aboot of=/sdcard/aboot.img
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Can you get the system image as well?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] DrakenFX:
The commands above and below are for when you are in twrp, if your device is in home screen is little different

From TWRP

adb shell dd if=/dev/block/bootdevice/by-name/system of=/sdcard/system.img

From your Device Home screen

adb shell
su
dd if=/dev/block/bootdevice/by-name/system of=/sdcard/system.img

The system.img is a big file about 6gb so beware of your internal storage
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] whowatchlist:
Isn't there a resize partitions function in twrp, have you tried it?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tabletalker7:
You got a step by step on how you made this work?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] XblackdemonX:
How to restore the A2017U Axon 7 to stock B20 with TWRP and locked bootloader by XblackdemonX
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tabletalker7:
Every time I try that it boots up for a few seconds then shuts down. turn it back on, it powers up for a few seconds, then the phone says it is shutting down and sticks there forever
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] XblackdemonX:
Did you restore rczrider's TWRP System backup and wipe cache ?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tabletalker7:
I have tried it all and get nothing

update - now I can't boot up anything at all - the red led comes on when I try to power on the device but that is the only sign on life I get
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tupirujp:
????? ZTE please
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tabletalker7:
That is what I did - without the full factory images there is very very little we can do (other than brick it)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] manu7irl:
Are you still bricked?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tabletalker7:
Federal Express has it - it is on the way back to ZTE. They can fix it.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] xxBrun0xx:
Did you try doing this with a low battery? I know on my old droid razr, battery died in the middle of flashing, and can't charge phone if no system image, do had to pull apart and manually charge battery with a cut USB cable and leads electrical taped to the battery while I fastbooted back to stock. Everything that's breakable is fixable, just isn't always easy.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
There actually is a way to fix it but it's too late obviously since you already sent it in. The same exact thing happened to me. When your phone turns on like that with the led but black screen, it is in edl mode. So you could have fixed it by plugging it in to your computer and waiting for the Qualcomm QLoader Driver to install and then used tenfar's tool to flash boot and recovery.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tabletalker7:
I tried that with every pairing of boot.img and recovery.img available - no change in status. I didn't give up quickly - I knew that it would take them a week to get it, at least a week to get around to fixing it, and another week to send it back. Sending it to them was a last resort. An absolute LAST RESORT. Nothing worked.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Did you charge the phone for a couple of minutes before flashing? Of course there would be no change in status if your phone is completely dead.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tabletalker7:
I charged it overnight before trying again - it was dead. ZTE got it today. I will let you guys know what they let me know
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
The thing is I am on B20_Boot and rooted so the system image that I pull would be useless. So thats why I am asking [MENTION=6699128]rczrider[/MENTION] to pull his system image as he is still on the unmodified b20
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
Done. It's been uploaded to the same folder on Mega as noted the OP, with the filename "system.sde13.img" (it's 6GB). For reference, I installed [MENTION=540283]tenfar[/MENTION]'s TWRP, executed the code below via the terminal inside TWRP, after which I reverted to stock recovery.

dd if=/dev/block/sde13 of=/sdcard/system.sde13.img
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
OP has been updated with all of the stock B20 and B27 files, including DD system.img (6GB) and TWRP backups. I've put in a request to a mod to have the title changed to reflect the update.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] xxBrun0xx:
So for those of us on twrp, we can just restore to this backup and be done?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] allan1229:
Would it be OK to back up B20 in TWRP and restore ur back up of B27? Is that the only way to get to B27 from B20 if rooted and unlocked.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] herzzreh:
Reversing of/if will let me restore system, correct?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
The content of each, yes, I believe so. To restore would look like:

dd if=/sdcard/system.img of=/dev/block/sde13
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] herzzreh:
Thanks! Trying to get back to stock system without wiping data so OTA doesn't fail. Should I format sde13 first?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
I don't think it's necessary, but I want to make it very clear that I am *not* an expert with this. There are others (paging [MENTION=3044858]DrakenFX[/MENTION]) who know significantly more than I do, and I would consider waiting for one of them to weigh in before doing anything. If you do it, I think the command would be something like:

dd if=/dev/zero of=/dev/block/sde13
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] herzzreh:
Well, crapp...

shell@ailsa_ii:/storage/E384-CB20 $ dd if=/storage/E384-CB20/system.img of=/dev/block/sde13
d if=/storage/E384-CB20/system.img of=/dev/block/sde13 <
dd: /dev/block/sde13: Permission denied
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] swehes:
Do I need to lock the bootloader before applying this?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
Almost definitely. It seems that there's potential for bricking if you do this on B20_Boot. I'm updating the OP to reflect the recommendation to go back to B20 before attempting anything.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] swehes:
OK. Tell me if I am correct then:

Lock bootloader

go back to 20 using your image

use 27 to update

use tenfars recovery and boot?

Or what is needed to be done?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] runderekrun:
Who bricked? I am on B27 with unlocked bootloader no problem.

I went from B20_Boot > B20 (with your system image) > Flashed stock recovery > and took the OTA. That got me to B27 with an unlocked bootloader. I don't think that much different then just restoring your system image for B27. Correct me if I am wrong.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] MrWilsonxD:
How did you all go from b20_boot stock recovery to b20_boot twrp? I was looking at this thread but I only see people reporting bricks/bootloops here.. D:

http://xdaforums.com/axon-7/development/a2017u-twrp-3-0-2-0-touch-recovery-zte-t3439603

And... Interestingly enough.. When I do fastboot devices oem-info, it shows I have a locked status o..O But I am most definitely on B20_boot.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Ogre6473:
I just learned the hard way last week. There's one more step you have to take. Go I to the developers menu and make sure you allowed oem unlocking. Then go into fastboot using "adb reboot fastboot" . Once in fastboot, type "fastboot oem unlock".

Note: YOU WILL LOSE EVERYTHING AND GO BACK TO FACTORY SETTINGS SO BACKUP!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] MrWilsonxD:
This is a good point..

The main thread is here. http://xdaforums.com/axon-7/how-to/guides-info-info-a2017u-bootloader-t3440254/page1

And the page about bl unlock I used is here

http://xdaforums.com/axon-7/how-to/bootloader-unlock-t3437778/page1

I would look into the root without bl unlock as xposed works with it.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
I'm currently uploading the stock B20 zip that ZTE provided for bootloader-unlocked users. It will be in the same Mega folder as the other B20 files linked in the OP.

ETA is about 45 minutes from now.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Flapjack:
Awesome! Does it matter how you unlocked (official or hack)?

Is there any indication they might release the B29 restore package? I'm getting notifications to update to that now.... even though I'm unlocked with TWRP.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rayman2k1:
did you repack the udpate.zip? i'm getting this

EDIT: scratch that. i'm an idiot. windows was "blocking" the file...

EDIT2: good goddamn. unblocked and still same error.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] DrakenFX:
if you want to apply the B20, you really don't need to renamed,

* MAKE SURE you have OEM Unlocking enable under developer options.

* Download the Zip file and move it to your SDCard

* IF you have Stock recovery just boot to recovery and APPLY using SDCard

* search for the file and you're good to go.

----------------------------------------------------------------------------------------------

if you have TWRP :

* Download the Zip file and move it to your SDCard or internal storage

* Flash the zip file like any other flashable zip.

----------------------------------------------------------------------------------------------

NOTE : Save whatever you have on your internal storage cuz this file will erase that.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rayman2k1:
i'm officially giving up. i have spend over 20 hours in the past two days trying to fix this damn thing.

i have used tenfar's tool to flash boot and recovery images. i have used the b29 zips. i have used the update.zip from ZTE, i have gone between stock and two different versions of TWRP, i have restored TWRP backups that i had made of b20 and b29, i have flashed ZTE_A2017U_StockB20U_by_DrakenFX.zip and other boot/system/recovery zips. I have not been able to get things to go back to normal.

the best I could do was to get b29 working without call audio (which is what started the whole absolutely infuriating and extremely anxiety-inducing 48 hours) but that is no good. the status is that b20 roms (many different ones from all over the threads) do not have any radios working (no IMEI, no MAC for bt or wifi), and the b29 doesn't have call audio (although my latest attempts to go back to that also didn't have radios working, but that could just be me flashing the restore or clean rom on the wrong boot.img)

i'm going back to using my OPO and will, if there is no news in the next week re:full stack of images that unbrick this ****ing thing, file for an RMA.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
I suspect you're missing a crucial step in whatever process you're using. I've soft-bricked my phone (stuck on ZTE boot logo, never goes anywhere) over a dozen times trying to do certain things, but it's been easy enough to get into bootloader and recovery, at which point it's virtually impossible to get permanently stuck.

I think I asked you in another thread: have you started from scratch or are you trying to do this all while restoring data? Have you unlocked your bootloader? All of the stock files for B20 and B27 are available in the first post. I can't imagine how you aren't able to restore to a working state with everything that's available. What error or problems are you having when you:

1.) put TWRP backup of B20 (found in the first post) on your microSD card*

2.) flash [MENTION=540283]tenfar[/MENTION]'s boot and recovery (assuming you're still locked, otherwise just flash recovery)**

3.) boot into TWRP (allow system modification) and wipe: data, internal storage, system, dalvik, cache

4.) restore TWRP backup of B20

5.) reboot

*you may need to boot into TWRP and do a quick/small backup to generate the TWRP folder with your device ID on your microSD card so that it will be recognized in TWRP for the B20 restore

**if you want to unlock the bootloader - which is preferable since it avoids TWRP data encryption issues - follow the instructions here: http://xdaforums.com/axon-7/how-to/guide-how-to-unlock-bootloader-stay-t3461165

The instructions above are solely if you're using the files in this thread. There's also the other thread in which you can restore using [MENTION=3044858]DrakenFX[/MENTION]'s prepared files, though admittedly that method did not seem to work well for me until I unlocked the bootloader. If you're unlocked already, you can do this: http://xdaforums.com/axon-7/development/rom-guide-updates-to-stock-files-via-t3469484
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rayman2k1:
[MENTION=6699128]rczrider[/MENTION] I have tried it with backups and with the ~2GB images that I assume are boot and system partitions (like the update.zip that zte released)

I've had a lot of trouble downloading the stock TWRP backups because MEGA Lewis giving me different errors. The last one was that I had maxed the daily quota.

Thank you for the message. I will probably try a bit more today and update the thread. Too be sure,I have come back to this state from a state where EVERYTHING got messed (no bootloader, no recovery) and I had to tenfar my way back.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
If you're anything like me, you try a combination of different things - to the point that it doesn't even really follow any procedure anymore - just to get back to a point where you feel like you know where you are. It's messy and confusing and frustrating.

Try to download the TWRP backup again and see if it'll let you in. If not, let me know and I'll try to upload it somewhere else.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rayman2k1:
okay so i maxed out MEGA at work.

is there a flashable b20 stock boot/system zip around anywhere. i'm talking about the same type of thing that is in this post and hovers around 2GB.

i thought the update.zip that zte released was this, but it just doesn't wanna work when flashed on top of the b20 tenfar low-level flash.

detail: i used tenfar's axon7backup (new version) to flash the boot.img of the b20 folder (the non-boot one. the one that is not crossed out. although, i did try the crossed out one too, to no avail). then, i used the stock recovery to flash (official zte) update.zip. i found that when i flashed the recovery as well as the boot and then rebooted into twrp, i couldn't flash update.zip because the assert failed.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
The ZTE zip won't work if you have either of tenfar's files (boot or recovery) installed. You need to be stock. I'm not entirely sure you have to be bootloader unlocked to flash it, but I believe you do (someone feel free to correct me if I'm wrong).

You can then name the file "update.zip" and place it at the root of your internal storage or put it on your microSD card, boot into stock recovery and select whatever option it is that mentions "update from SD card" (or similar).
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] xpakage:
This will be hard to do but take a day off. There is something you are missing, and missing it every time. You are glossing over one step that you are not seeing/comprehending. Return to stock by downloading everything again (in case something did not download correctly) and proceed from stock. It sounds like your bootloader and system files are not matched, ie B20 bootloader and B29 system.

Take a break, then try it again. It is like looking for keys/phone when in a hurry. You look right at it, but the brain does not see it :cyclops: