yashsingh1/xdaforums huggingface dataset:
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
Unfortunately, it seems that this is no longer working on V1.2.0B02

You would have to downgrade to V1.2.0B01

*EDIT*

I guess I know why it is no longer working on V1.2.0B02

Here an extract from the updater-script:

[..]
apply_patch_check("EMMC:/dev/block/bootdevice/by-name/aboot:755496:0ff4ba5f5c81bc3a61e6a36992fd06dfea2f1c08:763772:5e2c84f772691ae91f258228910c3f6dbeb21950", "0ff4ba5f5c81bc3a61e6a36992fd06dfea2f1c08", "5e2c84f772691ae91f258228910c3f6dbeb21950") || abort("E3005: \"EMMC:/dev/block/bootdevice/by-name/aboot:755496:0ff4ba5f5c81bc3a61e6a36992fd06dfea2f1c08:763772:5e2c84f772691ae91f258228910c3f6dbeb21950\" has unexpected contents
[..]
ui_print("Patching emmc_appsboot.mbn image...");
apply_patch("EMMC:/dev/block/bootdevice/by-name/aboot:755496:0ff4ba5f5c81bc3a61e6a36992fd06dfea2f1c08:763772:5e2c84f772691ae91f258228910c3f6dbeb21950",
"-", 5e2c84f772691ae91f258228910c3f6dbeb21950, 763772,
0ff4ba5f5c81bc3a61e6a36992fd06dfea2f1c08,
package_extract_file("patch/emmc_appsboot.mbn.p")) ||
abort("E3008: Failed to apply patch to EMMC:/dev/block/bootdevice/by-name/aboot:755496:0ff4ba5f5c81bc3a61e6a36992fd06dfea2f1c08:763772:5e2c84f772691ae91f258228910c3f6dbeb21950");
[..]

aboot is an essential part to get fastboot to run.
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Read the OP correctly, I added a method to get TWRP on your phone. You won't get Fastboot though
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
One could maybe fix it by flashing a different aboot image (like the one used to unlock the bootloader on MM).
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Sorry that message was for the other guy

I have 0 knowledge on coding. No idea how you can fix this. If someone fixes whatever there is to fix I'll update the guide
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
Sure no problem. :)

I quickly made a "downgrade" flashable zip to downgrade aboot image to V1.2.0B01 if somebody is willing to test it: https://www.androidfilehost.com/?fid=673368273298947023

I am not accountable for the potential loss of data or the potential bricking of the device experienced by flashing this zip file!

*EDIT*

If it is not working use this zip file to restore aboot to V1.2.0B02: https://www.androidfilehost.com/?fid=457095661767153575
[ZTE Axon 7 Guides, News, & Discussion] Jeremy-X:
Am I supposed to flash it with MiFlash ?
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
No this should be flashed via TWRP.
[ZTE Axon 7 Guides, News, & Discussion] Jeremy-X:
Ok so I don't understand.

My phone is stock B02 so no fastboot, no TWRP.
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
There are ways around it but I think the easiest way for you to get fastboot up and running is by downgrading to V1.2.0B01.

Download this file and put it on your internal storage: https://www.androidfilehost.com/?fid=457095661767151720

Go to settings and hit Update. The app should see the file previously put to the internal storage as an upgrade (although it is actually a downgrade). It should be called something like "ZTE A2017GV1.2.0B01".

Be aware that this might wipe your /data partition (and with it the internal storage).

If you are willing to upgrade to V1.2.0B02 you could then try my previously posted zip file to downgrade aboot and try to get fastboot up and running again on B02.
[ZTE Axon 7 Guides, News, & Discussion] Jeremy-X:
Ok thank you very much.
[ZTE Axon 7 Guides, News, & Discussion] cfbruck:
Ok, just to be clear.

I have B02, so method in op did not work.

What I should do is use the zip to downgrade to B01 via update function and then use the original method of flashing fastboot with Mi flash?
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
Exactly. If your bootloader is already unlocked, you could try to flash my zip via TWRP and follow the op without downgrading the whole ROM.

If you plan to upgrade again to B02 and you still want to use fastboot, you can try and flash my zip file and follow the fastboot part in the OP once again.
[ZTE Axon 7 Guides, News, & Discussion] Jeremy-X:
Now I have fastboot, but my bootloader is still locked.

---------- Post added at 09:32 PM ---------- Previous post was at 09:24 PM ----------

Ok bootloader unlocked

---------- Post added at 09:51 PM ---------- Previous post was at 09:32 PM ----------

Now I'm stuck on Your device software can't be checked for corruption ...
[ZTE Axon 7 Guides, News, & Discussion] cfbruck:
This might be a stupid question,

But, my bootloader is unlocked, and I have the stock recovery. I'm on B02 so I couldn't flash fastboot, but since I have the stock recovery, couldn't I just flash twrp as a zip in that recovery? Do I really need fastboot?

---------- Post added at 06:56 AM ---------- Previous post was at 05:56 AM ----------

And... (sorry for noobish questions)

If I want fastboot, but already have stock recovery and unlocked bootloader, I could flash this in stock recovery instead of twrp (i.e. it doesn't have to be flashed in twrp, stock rec works just as well)?

(What I'm trying to get is twrp)
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
What did you do exactly? Downgrade to B01, follow the unlock procedure and now you're stuck at this particular screen?

Did you try and long press Vol+ to get into the menu where you can select bootloader, recovery, etc?

You will not be able to flash TWRP via the STOCK recovery.

However, there is a way with the other axon7tool. The main difference is that you have to change the USB driver. Your device has to be recognized as QUSB_BULK in order to use the other axon7tool: https://xdaforums.com/axon-7/development/axon7tool-flash-backup-boot-recovery-t3514254

Download the xon7tool

Search and download the signed TWRP (you can also try and flash the one from TWRP, no sure that this will be working but it could since your bootloader is already unlocked)

Download the zadig according to post #3: https://xdaforums.com/showpost.php?p=69963536&postcount=3

Boot into EDL and replace the driver with zadig

Reboot your device by long pressing the power button

Boot into EDL again

Place the downloaded TWRP in the same folder as the axon7tool and rename it to recovery.bin

Flash the recovery with the following command: axon7tool -w recovery

Enjoy
[ZTE Axon 7 Guides, News, & Discussion] Jeremy-X:
Well I took the LineageOS way finally :), thanks for the help.

I still have a question about modem / baseband, how can I flash the latest from 1.2.0B02 ?
[ZTE Axon 7 Guides, News, & Discussion] cfbruck:
fixed
[ZTE Axon 7 Guides, News, & Discussion] Dust2Dust:
Now I need some help. After unlocking and flashing TWRP I ended up at rebooting to boot screen. Next thing I did was the stupidest ever. I thought I had a working TWRP in an old folder, so I flashed it. Turned out to be a Marshmallow stock recovery that I used previously to restore to stock before 7.0 turned up. Only things left now are an old stock recovery that I can boot in, booting to sytem ends up in the boot logo.

Any great ideas??

Update: Flashed the 7.0 update from ztemobile.de through old recovery from SD. IT FIXED the issue and I am able to update all the way back to B2 pfffffffff I allready had my old lumia 735 back in order.

Darn, update to B02 is not working, I am stuck on B01 with unlocked bootloader and stock recovery. Trying to flash something from SD card is not allowed. Would it be possible to just use the lock bootloader option from axon7toolkit or will that brick my device ??? I did flash the unlock file with Miflash so fastboot is working. No backup this time :(
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
In case you want to downgrade again, downgrade to MM V1.0.0B10 (which you also find on ztemobile.de) and Enable OEM Unlock in developer settings BEFORE you upgrade to Nougat.

This will solve the issue with not being able to flash the Update V1.2.0B02 in the recovery from SD card.

To be more precise with B10, copy it onto you sd card, go to Settings -> Updates and it should pop up. Just run the downgrade from there.

Be aware that doing a factory reset on Nougat will change "Enable OEM Unlock" to disabled with no option to enable it again if it is grayed out. This means you will end up with the same issue you described now.
[ZTE Axon 7 Guides, News, & Discussion] Dust2Dust:
Indeed grayed out. Will go the downgrade way and let you know, thanks!
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
That's what I've thought.

For some weird reason ZTE did think it was a good idea to disable the trigger if your bootloader is already unlocked but they forgot that this will disable the option to flash zip files directly through the recovery.

Let me know how it goes. :)
[ZTE Axon 7 Guides, News, & Discussion] Dust2Dust:
Bootloader still unlocked but back on B02!! great thanks man!

Now back to twrp again and not forget about SU :)
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Has anyone here tried the axon7tool way on the post? I added a link on the OP to a post in page ~3

I used it and it did its job. I think I'll update the OP for now, since the idea was not to use this guide to unlock the bootloader (i don't know if that U package unlocks the BL on our Gs)
[ZTE Axon 7 Guides, News, & Discussion] Dust2Dust:
Too bad, I am still on the 5 second no verification screen. Fastboot disabled but on V1.2 B02. Would using the axon7tool allow me to flash TWRP and eventually root with either axon7 toolkit or twrp ?
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
Yes, you can use this axon7tool to flash twrp: https://xdaforums.com/axon-7/development/axon7tool-flash-backup-boot-recovery-t3514254 (just make sure your device is recognized as QUSB_BULK while in EDL mode). Maybe you will need the signed TWRP by tenfar.

Afterwards upgrade TWRP and follow this guide again to get fastboot up and running. Just flash my aboot downgrade before you use MiFlash to actually get fastboot to work: https://xdaforums.com/showpost.php?p=71847111&postcount=39 (it was confirmed working by [MENTION=1827371]wineds[/MENTION])

*EDIT*

You will probably need the other axon7tool as well since you will need to disable dm-verity if you root your device.

An alternative way would be to use this file for the MiFlash part: https://mega.nz/#!xsJhRLiK!oCV9moQdWNquMmAha_oYSgyGLYU4s6XY5X7_5PdJ4Cs
[ZTE Axon 7 Guides, News, & Discussion] Dust2Dust:
Thanks!

aboot downgrade without downgrading entire OS to B01? or shoudl I downgrade entirely??
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
If you want to stay on B02 STOCK this is the way to go. You don't have to downgrade the whole ROM.

I hope you realize that OTAs won't be possible after this because of the altered system-partition (by rooting the ROM) and the non-matching emmc_appsboot-partition (also known as aboot which could be solved by flashing the other zip file of mine [upgrading aboot to B02 again]).
[ZTE Axon 7 Guides, News, & Discussion] Dust2Dust:
I have low expectations about another (f)ota from ZTE for now, V02 is stable and doing what I expect it to do. That's why I waited with rooting. The EDL unlock A2017G caused the main issues for me because it all of a sudden asked for a password to start Android, after that I have seen all stages of brick on this device.

Should I upgrade aboot again once done rooting or stay on downgraded? and I suppose rooting directely after installing TWRP is required in order to for the OS to boot (I missed this step in my first attempt
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
Did you try and enter "default_password" when asked?

No as soon as you root you have to have fastboot up and running and disable dm-verity with the axon7tool: https://xdaforums.com/axon-7/development/tool-axon7toolkit-t3573108

The thing is that the boot.img is checking if the system partition was altered. If yes the device won't boot at all.
[ZTE Axon 7 Guides, News, & Discussion] wineds:
aboot needs to stay downgraded to b01 if you want fastboot to work.
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
Sorry missed that part. No, as [MENTION=1827371]wineds[/MENTION] already said, aboot needs to stay at B01 if you want to keep fastboot.
[ZTE Axon 7 Guides, News, & Discussion] Dust2Dust:
A quick summary of the steps:

1. Flash TWRP (twrp_rec_tenfar.zip) with axon7tool and QUSB_BULK drivers

2. Upgrade TWRP to twrp-3.1.0-0-ailsa_ii.img (again with axon7tool or TWRP ?)

3. Flash aboot downgrade using TWRP

4. Get fastboot to work using miflash and EDL unlock for A2017U (or G?)

5. Root (latest supersu SR3-SuperSU-v2.79-SR3-20170114223742.zip) using twrp. do not reboot

6. Disable dm-verity using TWRP and latest disabler https://build.nethunter.com/android-tools/no-verity-opt-encrypt/ Version 5.1 I suppose

Should I avoid any reboots except from the one between step 5 and 6 ?

Any other errors in my summary?
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
EDL Unlock for G is only neccessary if you did not downgrade aboot before, so in your summary EDL unlock for A2017U is enough.

As long as you don't run into any issues reboots are just fine.

*EDIT*

I'd flash TWRP 3.1.0-0 inside tenfar TWRP.
[ZTE Axon 7 Guides, News, & Discussion] Dust2Dust:
Perfect and thanks a lot!!

Will give it a go somewhere this week in an evening, need to go for now since we have a second day of Eastern in the Netherlands and family is calling out for me :)
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
Same here in Switzerland. :D

Just one quick reminder for MiFlash. You need to remove the driver (QUSB_BULK) to be able to use MiFlash.
[ZTE Axon 7 Guides, News, & Discussion] Dust2Dust:
Got it all, root again!! thanks a lot my friend!!

Family yet to come :)

There where a few bits that I was not expecting, but it is working now. I will write a TUT soon
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
Glad it worked! Enjoy the rest of your easter monday. :)
[ZTE Axon 7 Guides, News, & Discussion] Dust2Dust:
U2!!
[ZTE Axon 7 Guides, News, & Discussion] Dust2Dust:
When clearing cache and Dalvik in TWRP I get unable to mount storage :(

This is a bug in TWRP. If you choose Extrenal SD in th Install option it will remind this. If at some point in time you choose to wipe something it will create the error. Once chosen internal SD, issue with wiping is solved.
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
I'm going to update this tutorial with the axon7tool method. I think I'll add all those other things too, just stay tuned
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
All done. Is the updated procedure in the OP how it is supposed to be? Does the ZIP have to be flashed before MiFlash's thing?

I can't test right now, wouldn't be asking if I could try. Also, would this work on MM, with those zips? I migt add a disclaimer as well, cause it probably won't
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
The guide looks messed up from the xda app? What in the heavens is happening with this app...

Two of the guide's parts are missing and mashed up with the previous parts... Can someone confirm if it is really broken on mobile??
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
It doesn't really matter. However, to get fastboot running it has to be flashed.

It suggest flashing it before MiFlash.

For MM I would probably use the B10 aboot. It might work but somebody would have to test it.
[ZTE Axon 7 Guides, News, & Discussion] WesTD:
Thank you so much. I've flashed TWRP to my Axon 7 A2017U B25 (latest stock firmware)
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
:good:
[ZTE Axon 7 Guides, News, & Discussion] thefiqs:
hell yeah! finally, after several guides I'm happy finally could find this guide! should be pinned or smth

thank you guys all the work and effort you put in!

unfortunately will be my last post here, I just install RR and sell the phone, cu around
[ZTE Axon 7 Guides, News, & Discussion] dnlilas:
Hello,

There is a point I did not understand well.

Question: "get Fastboot" to work : Does it mean "unlock bootloader"?

If yes, then this guide does show how to unlock the bootloader (and so the OP should be changed to mention it).

If no, then what are the advantages of getting fastboot to work ?
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Don't you guys know how to read?
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Okay enough with that :p , fastboot is very useful if you need to flash stuff or lock your bootloader. Can get you out of a major shïtstorm.

Fastboot =/= bootloader unlock! You unlock the bootloader with Fastboot, but that is just one operation that you can do.
[ZTE Axon 7 Guides, News, & Discussion] dnlilas:
[MENTION=7799420]Choose an username...[/MENTION]

Thank you for your explanation.

Since now we can directly goes from stock Marshmallow A2017GV1.0.0B10 to stock Nougat A2017GV1.2.0B04

using update.zip provided by ZTE ( https://xdaforums.com/showpost.php?p=72193661&postcount=121),

if your guide could aslo include the way to unlock the bootloader it would be very useful.

We have already such guide ( https://xdaforums.com/axon-7/how-to/guide-install-twrp-unlock-bl-flash-t3517379 ),

but it addresses only stock Marshmallow owners. We need similar guide like yours for stock Nougat owners.

From what I understand, once fastboot worked in stock Nougat, we can use it to unlock bootloader, flash TWRP, and make root

easily in a row by typing:

adb reboot bootloader (to enter fastboot mode)

then:

fastboot devices (optional, just to check connection)

fastboot flash recovery twrp_rec_tenfar.img

Inside TWRP: upgrade to latest TWRP, reboot in TWRP, then flash supersu2.79

reenter fastboot mode: adb reboot bootloader

fastboot oem unlock (to unlock bootloader, then follow phone indication)

Are the above steps correct?
[ZTE Axon 7 Guides, News, & Discussion] SilentEYE:
I have a problem after flashing stock B04 rom. I don't know how to solve this.

I flashed the B04 Bootstack, then the B04 Rom, afterwards dm-verify and supersu on TWRP 3.1

After that, I got the TWRP message that there is no OS installed. I skipped that warning and now I cant boot only into Stock android recovery, into the (device unlocked) stock screen or into EDL (Vol buttons + power)

MiFlash does not work on QBulk or DFU mode.

By trying the axon7tool commands in DFU I got the device not connected error.

On Windows Device Manager the device is shown as Qbulk or DFU mode, depending on Zadig.
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
I bricked my device after rebooting without a system installed. not sure why it breaks so much when you do that.

i guess you tried MiFlash with Qualcomm HS-USB QDLoader 9008 drivers huh?

If you can boot into the stock recovery then you can flash an official zip. maybe you can flash B10 or B11
[ZTE Axon 7 Guides, News, & Discussion] SilentEYE:
Thank you for your reply.

I solved this problem after 6 hours.

Here is my solution, for other users.

https://xdaforums.com/showthread.php?p=72217175

The only thing I still don't understand is :

Why does the stock rom stuck in a boot loop if you delete every Google app.( with file explorer or twrp)

You can hear the click of the front camera lens continuously on boot screen.

I think I managed this once by installing a permissive kernel. After boot success a enforcing custom kernel is working fine.
[ZTE Axon 7 Guides, News, & Discussion] sk0o:
/delete
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
You're only confusing people by posting this...

I'll add that you need to have file extension shown before attempting this

And that error is maybe because there is no recovery.bin there, or because you renamed it from

TWRP-x.x.x-x

to

recovery.bin

If that is the case then you should activate show file extensions, then change the name from

TWRP-x.x.x-x.img

to

recovery.bin

Windows should warn you that the file can get unusable, that's BS in this case so disregard.

Do you recall Windows ever warning you about that?
[ZTE Axon 7 Guides, News, & Discussion] sk0o:
I'm sorry, everything is working fine now and I have twrp installed. Sorry for the confusion.
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
But what was it then???
[ZTE Axon 7 Guides, News, & Discussion] sk0o:
Dunno, switched from my desktop to my laptop and redownload all the files fresh again. After that it worked instantly. Thanks for all your hard work.
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Okay thanks :good: I'll change the guide to use [MENTION=6330152]djkuz[/MENTION] 's MiFlash TWRP file though. It will be much better since I use MiFlash on the same guide
[ZTE Axon 7 Guides, News, & Discussion] alidavarzani:
Hi Dear zte company First of all my axon build number was A2017 b07,then i upgraded it to global version through out this(ztedevice.com/support/detail?id=CF924E214F0D466A9712B8F09523F0CF]) Link. Everything was ok by this version and it worked well.then i just enhance my phone to nougat version through out this(ztemobile.de/support/downloads/?product_id=2100#)link.unfortunately[/url] after this upgrading the sim doesn't work .it can be detected by axon however the sim s antenna is empty. Through out these problems i decided to downgrade it to the global version as zte suggestion but the sim s antenna is empty in this version too.it should be mentioned that before these actions there was no problem with this version.(my carrier service is mtn irancell and ir-tci ).i will really appreciate you if you answer me as soon as possible. With best of regards, Thanks.

i have sent it to zte but they did not respond. i wanted to flash my phone in case that may be fixed , but after i disconnected cable BEFORE THE COUNTDOWN ENDS and after the holding the power button for like an eternity until the phone reboots, it can not boot to TWRP or neither stock one. right now i downgraded to marshmallow A2017G B10 .cause i have the same problem as you(not detecting QUSB BULK but detecting qualcomm) i fallowed this thread.i knew that this thread will work for nougat but cause i already did all the steps by this thread ' [GUIDE] [A2017G] Install TWRP, Unlock BL, Flash Custom ROM ' but it could not work i decided to try this one.

please help me!! pleeeeease i will appreciate you.

---------- Post added at 12:28 PM ---------- Previous post was at 12:06 PM ----------

i forgot one thing , when i did this 'Finally, on the CMD window, run axon7tool -w recovery. If it fails try holding the three buttons, opening cmd again and trying this step again. ' (i failed and did holding the three buttons) , then i wrote axon7tool -w recovery in cmd but it responded 'device not detected' and then i turn the phone on and i typed ' adb reboot edl' and then again i run' axon7tool -w recovery' and it did! before countdown i unplugged cable but in recovery mode nothing monitored' neither stock bootloader nor twrp.

pls read it for explaining problem without details.

after i run 'axon7tool -w recovery' my phone restarted and when i hold volume up and power nothing have appeared to screen. it means nor TWRP or stock recovery mode exists. when i wanted to reset factory nothing will be done because of lack of recovery mode.

please help me. i should notice that my bootloader is locked and also i should mention that i already updated my phone to nougat and then i downgraded to marshmallow again(a2017g b10)
[ZTE Axon 7 Guides, News, & Discussion] derfinsterling:
Thanks for the guide - but I didn't get it to run.

It was very helpful in getting "back" to the QUSB_BULK driver stage, but anytime I try to execute the axon7tool, I just get "Failed to connect". I seem to be in EDL mode, but can't execute anything. When booting up, I can see it listed in adb devices and I can boot to the stock recovery. But beyond that... no luck.

Any advice?
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
How did you get to EDL mode? Via 'adb reboot edl'?

Cam you boot to system? Are you using an USB port on the front of the PC? (Disregard if you're using a laptop)

And did you try axon7toolkit? It should be able to help you, at least if you could boot to system. You can flash an official zip through the stock recovery and try with it. this guide is pretty old