[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
[MOD EDIT:]In the absence of the OP I have been asked to make it very clear that the included TWRP build flashes fine on Chinese and US models but bricks Euro models (The "G" model)

CAUTION: this might be outdated,since this method is using a qualcomm bootloader logical bug.that is fixed in 2016/12 .so the latest firmware dont have this vulnerability.

By attempting any of the processes listed this thread you accept full responsibility for your actions. I will not be held responsible if your device stops working, catches on fire, or turns into a hipster and claims to have been modified before it was cool.

Backup all your important data before you do any steps below:

Step 1: Download the zip file and extract to your local disk. a2017 for Chinese model,and a2017u for US model,a2017g for HK & EU model

a2017u :B20_blunlockedhttp://d-h.st/KaaQ

a2017u B20 http://d-h.st/LqR5 (modified from [MENTION=6699128]rczrider[/MENTION]‘s backup real stock b20 boot.img)

a2017u B27 http://d-h.st/kRgq

a2017 B06:http://d-h.st/ztXw

a2017 B07:http://d-h.st/VVlf

a2017 B08: http://d-h.st/bT6r

a2017 B09:http://d-h.st/sBjo

a2017 B10:http://d-h.st/cBOE(wifi not working) http://d-h.st/aceq (from official update.zip)

a2017g B02 :removed by mod due to above note

a2017g B03:removed by mod due to above note

TWRP recovery 3.0.2-2 : http://d-h.st/dgWW

latest tools:http://d-h.st/Ienb with dump function

Step 2:Shut down your phone, hold volume down + volume up ,then plug your phone with USB cable. or you can use adb

adb reboot edl

Step 3:install the Qualcomm's driver .

Download Qualcomm driver to your local disk ,extract and install it

Qualcomm 9008 driver :http://d-h.st/35tx

in the install process choose WWAN ,the first option.

Step 4 : open your PC's device manager and find out the com port number which your phone is .as the Pic shows ,in my case,the port number is 4

View attachment 3844965

Step 5: right click in Explorer with SHIFT key press, open a Command Window.

in the command window, run the program

Usage: axon7root.exe -p COM4 -b -r
Options:
-p Port number eg:COM8 or 8
-b write boot.img only
-r write recovery.img only
-d dump boot.img and recovery.img from phone(not impl yet)

the 4 is my com port number in my system. change it to your's

View attachment 3844954

before you do any thing do a dump use my latest program:

axon7backup.exe -p 4 -d

two backup will read from your phone to local disk.

View attachment 3847083

for flash boot.img to boot partition:

axon7root.exe -p 4 -b

for flash recovery.img to recovery partition:

axon7root.exe -p 4 -r

for flash both boot.img and recovery.img :

axon7root.exe -p 4 -b -r

or just without -b and -r options:

axon7root.exe -p 4

after the program exit,

if you have flashed a TWRP recovery.

press volume up+ power to boot into recovery

FORMAT the data partition

if you only flash the boot.img :

boot into stock recovery do a factory reset

when your boot into your system. you will need to install a superuser manager.

you should install https://play.google.com/store/apps/details?id=me.phh.superuser&hl=en

Thank Pierre-Hugues Husson for his superboot for the hint on root this without an unlocked bootloader

by the test .so we can confirm that all model have same hardware.

I don't have a2017u and a2017g ,so i took the boot.img and twrp recovery image form idlekernel.com .thanks the owner.

and since i don't have a2017u adn a2017g ,i didn't test this on these two models use at your own risk.

but i test it on a2017 Chinese version. it works very well.

also i tested that flash the a2017u and a2017g's boot.img and recovery.img to my a2017,both worked.

from [MENTION=3564235]r3xx3r[/MENTION] test,we can know that the metod works on a2017u ,

Thanks [MENTION=7633834]Cricius[/MENTION] test and report it also work on a2017g.

Thanks [MENTION=6699128]rczrider[/MENTION] and [MENTION=2530247]KyJelly69[/MENTION] to share their b20 stock backup. but for b20_boot and b18 we still need those stock files.

Thanks [MENTION=5193676]mmamedov[/MENTION] post a detailed step by step at post #157

http://xdaforums.com/showpost.php?p=68302434&postcount=157