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 http://d-h.st/LqR5 (modified from @rczrider‘s backup real stock b20 boot.img)
a2017u B27 http://d-h.st/kRgq
a2017 B08: http://d-h.st/bT6r
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
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
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)
before you do any thing do a dump use my latest program:
axon7backup.exe -p 4 -d
for flash boot.img to boot partition:
axon7root.exe -p 4 -b
axon7root.exe -p 4 -r
axon7root.exe -p 4 -b -r
axon7root.exe -p 4
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/d...uperuser&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 @r3xx3r test,we can know that the metod works on a2017u ,
Thanks @Cricius test and report it also work on a2017g.
Thanks @rczrider and @KyJelly69 to share their b20 stock backup. but for b20_boot and b18 we still need those stock files.
Thanks @mmamedov post a detailed step by step at post #157