[GUIDE] [A2017G] Install TWRP, Unlock BL, Flash Custom ROM

hboa

Member
Oct 16, 2014
27
5
0
Try "adb devices" if your device is listed.
You can also do those steps from twrp
I've tried that and first time it finds a device. After trying to run "adb push aboot.img /sdcard/", I get this when running "adb devices": "List of devices attached" and nothing more:confused:
I've tried booting to TWRP and installing with TWRP open, but this gives me the same result.
I'm a bit lost in what to do in TWRP. Should i load ADB Sideload?
When in TWRP, the device is listed as ZTE A2017U. Is this correct?

UPDATE: I've resolved the problem. Found out it's not enough to just Install the model specific modem. You also have to install the Universal bootloader (https://www.androidfilehost.com/?w=files&flid=148464). The guide doesn't mention that, and it probably isn't necessary to achieve unlocked bootloader.
 
Last edited:

Controllerboy

Senior Member
Jan 28, 2012
123
131
0
Ghent
1 more Problem. I try to unlock my Bootloader but now i cant go into Twrp (Key verification fail)
My Kay isn't Wrong. I do type my right Key.
You can just click "cancel" and you can use TWRP just fine. Choose "format data" if it persists. Remember to have the other files needed on your MicroSD since this will delete all data on your internal memory.
 

gamer864443

Member
Feb 3, 2015
26
2
23
I try to install Lineage OS with Bootstack and everything eals. but i cant Reboot the System. Everytime i had the same Problem if i try to reboot thers 3 blinks of the LED and nothing more.
What i do wrong??? i have a a2017g Phone. Also i try RR Rom but nothing.
 
Last edited:

gregou

Senior Member
Dec 20, 2006
633
159
0
Nantes
Hi,

I successfully installed Lineage OS on my Axon 7 (A2017G), but wish to go back to stock android Marshmallow.

Anyone know how to proceed ? Because i read somewhere on XDA that we can't downgrade for this model as the official Nougat update by ZTE isn't release yet.

Any ideas ?
 

ileikpi

Member
Oct 29, 2015
28
11
23
I try to install Lineage OS with Bootstack and everything eals. but i cant Reboot the System. Everytime i had the same Problem if i try to reboot thers 3 blinks of the LED and nothing more.
What i do wrong??? i have a a2017g Phone. Also i try RR Rom but nothing.
Try going into TWRP, wipe, advanced wipe, select data, tap repair or change file system, choose change file system, then select ext4 and swipe to change. "Data" should be set to f2fs by default. You need to reformat it to ext4 as lineage and RR doesn't support f2fs at the moment.
 
Last edited:

erarou

Member
Oct 13, 2011
10
5
0
  • Like
Reactions: ChickNrippR

thebookman

Member
Jun 17, 2014
16
4
0
Tuban, Bali
Install TWRP, Unlock BL , Flash Custom ROM Querstions

First, let me say thanks for the detailed guide, before finding it I was quite confused by the mass of information on this topic.

I have carefully followed each of the preliminary steps in the Guide.
When I get to "14) Type "adb reboot edl" and hit enter. Your device will reboot to EDL mode. It appears to be off, but it is in fact in EDL mode."
in the CMD window the following appears:-
Android Debug Bridge version 1.0.36
Revision 84e3321d5db3-android
Then follows list of options, eg. -r, -d, -e -s<specific device>, etc

When I do "15) Go to Device Manager on your pc and verify your Axon 7 is listed as "QUSB_BULK" I find that "Android Handset ADB Interface" has disappeared and no reference to "QUSB_BULK" can be found.
When I then jump to "NOTE: if you have problems connecting to your phone as QUSB_BULK, download Zadig and replace your drivers with WinUSB ones. If axon7tool doesn't recignise your device even when connected as QUSB_BULK, try killing adb.exe via task manager before retrying."
Zadig fails to install the WinUSB drivers.

If I return to CMD window and type "axon7tool", the following message appears:-
"axon7tool is not recognised as an internal or external command, operable program or batch file."

I am working on Axon 7 2017G (Australian Version) updated to B10, Android security patch level, 1 December 2016. Stock Android v 6.0.1

So my questions are:-
1. When connecting phone to PC it automatically connects as "Install Driver". Is this the right connection?
2. I cannot get the phone to appear in Device Manager as "QUSB_BULK" and Zadik fails to install the WinUSB drivers. How to fix?
3. At step 16 in the guide, should I type "axon7tool.exe -r gpt boot recovery" instead of "axon7tool -r gpt boot recovery" ?
I've spent the best part of a day trying to sort this out, so I hope a member can assist. Thanks.
 

vizzze

Senior Member
Jan 16, 2011
94
19
28
Same here, Error 7 while trying to flash the ROM. I had an unlocked Cyanogenmod 13 before. I tried it with the tenfar TWRP and the newest one, both give the same Error. Any ideas?
passing from CM13 you should first flash the experimental version of Lineage
 

Shotgun4

Senior Member
Jan 22, 2012
150
6
0
Axon7Tool Error

I get a axon7tool is not a valid win32 application error. In command promt it then states access is denied.... Any one have any ideas on this ??
 

Attachments

Shotgun4

Senior Member
Jan 22, 2012
150
6
0
Now after the flash of TWRP and the command port says successful, when i unplug my device power down and attempt to boot into recovery, i get a black screen. which tells me the recovery img did not flash properly.. any ideas ??
 

johnlahm21

New member
Mar 3, 2011
3
0
0
Updater process ended with ERROR: 7

Hey everyone :)
First let me thank you for this great guide. successfully unlocked bootloader.
Just tried to install LineageOS, however, i get the error described above.
axon7.verify_trustzone("TZ.BF.4.0.1-00315") == "1"
Reading a little bit it seems that my bootstack is the cause for this.
The install of the Nougat bootstack from the first post worked just fine, but I cant install linageos afterwards.

its a 2017G on B10
Any help is much appreciated.

Thanks in advance.
Johnny

EDIT:
Is it possible that I have to use the universal bootloader from here??

EDIT2:
Okay, after installing the above mentionmed bootloader and then continued with A2017G Modem and GApps, i was able to successfully install LOS14.1.
Unfortunately one thing is strange:
When booting up i get the ""Your device software can't be checked for corruption. Please lock the bootloader." " message.
I Guess this is normal due to the unlocked bootloader, however, i thought with installing custom rom and bootloader this message would not be present?

EDIT3:
Actually, i am not quite satisfied with lineage ^^"
If I want to go back to stock, and keep (or reinstall root)
What should I do?
I can only find OTA and zip files for B09 ^^"
kind regards
 
Last edited:

iNaruX

Senior Member
Jun 29, 2012
188
120
0
Hey everyone :)

EDIT3:
Actually, i am not quite satisfied with lineage ^^"
If I want to go back to stock, and keep (or reinstall root)
What should I do?
I can only find OTA and zip files for B09 ^^"
kind regards
easy. set twrp system to read only (checkbox in mount)
do a full wipe data cache system. format data.
flash bootstack and system from here

https://forum.xda-developers.com/showpost.php?p=68873485&postcount=3

im currently running a2017u nougat b15 on my a2017g using this method :)
 

Choose an username...

Senior Member
Oct 16, 2016
2,677
923
0
Additions to the post

@Controllerboy I've just rooted my phone and (no offense to you or anyone) from all the small bits of info that i found lacking over every post, it feels like I just installed iOS on a Nokia 1100...

So, could you add these things to the main post? Every problem I had on the way had already been asked to every OP on the other posts, so it would be more helpful if you just condensed all the steps in your post. BTW i have (had, more like it) an A2017G with B10:

- If your phone doesn't pop up as QUSB__BULK over EDL mode, then it's probably likely that you had installed the driver that came with the phone (there was an option to install a driver that seemingly did only dev features whenever you connected the USB wire). The device will pop up below Ports (COM & LPT) on the Device Manager (win10 ofc) as Qualcomm something-something USB device. You only have to uninstall the driver if this happens (Programs and Features - ZTE driver). I was dumbfounded when this happened to me :p After this, Zadig was needed in my case, because the icon had a yellow sign

-axon7tool fails with a what() and STD-exception and whatnot - if you installed the Zadig driver, do this:
>go to Device Manager, right click QUSB__BULK and Uninstall
>adb reboot edl
>install Zadig winUSB driver
>reboot phone via power button (~10 secs)
>adb reboot edl
>axon7tool -r gpt boot recovery
That should do the trick.

-after unlocking BL, installing TWRP and all, when you want to install LOS14.1, LOS refuses to install with error axon7.verify_trustzone - to fix this you have to install the UNIVERSAL BOOTLOADER BEFORE THE N MODEM. I didn't find any mention of the A2017X_B15_UniversalBootloader file in this post. So:
After you get access to TWRP you have to:
>Install univ. BL (A2017X_B15_... .zip)
>Install A2017G_N_modem.zip
>Install LOS14.1 zip
>Install optionally Gapps
>Flash TWRP img

I think that's all. Thank you for the really nice guide. I'm in no way criticizing your work or the devs' work here, but I want to help people who might have the same errors than me in the future. ;)
 

joaste

Senior Member
Sep 11, 2011
878
250
83
@Controllerboy I've just rooted my phone and (no offense to you or anyone) from all the small bits of info that i found lacking over every post, it feels like I just installed iOS on a Nokia 1100...

So, could you add these things to the main post? Every problem I had on the way had already been asked to every OP on the other posts, so it would be more helpful if you just condensed all the steps in your post. BTW i have (had, more like it) an A2017G with B10:

- If your phone doesn't pop up as QUSB__BULK over EDL mode, then it's probably likely that you had installed the driver that came with the phone (there was an option to install a driver that seemingly did only dev features whenever you connected the USB wire). The device will pop up below Ports (COM & LPT) on the Device Manager (win10 ofc) as Qualcomm something-something USB device. You only have to uninstall the driver if this happens (Programs and Features - ZTE driver). I was dumbfounded when this happened to me :p After this, Zadig was needed in my case, because the icon had a yellow sign

-axon7tool fails with a what() and STD-exception and whatnot - if you installed the Zadig driver, do this:
>go to Device Manager, right click QUSB__BULK and Uninstall
>adb reboot edl
>install Zadig winUSB driver
>reboot phone via power button (~10 secs)
>adb reboot edl
>axon7tool -r gpt boot recovery
That should do the trick.

-after unlocking BL, installing TWRP and all, when you want to install LOS14.1, LOS refuses to install with error axon7.verify_trustzone - to fix this you have to install the UNIVERSAL BOOTLOADER BEFORE THE N MODEM. I didn't find any mention of the A2017X_B15_UniversalBootloader file in this post. So:
After you get access to TWRP you have to:
>Install univ. BL (A2017X_B15_... .zip)
>Install A2017G_N_modem.zip
>Install LOS14.1 zip
>Install optionally Gapps
>Flash TWRP img

I think that's all. Thank you for the really nice guide. I'm in no way criticizing your work or the devs' work here, but I want to help people who might have the same errors than me in the future. ;)
Thanks for these extra clarifications. They helped to get TWRP on my new A2017G.

As already mentioned, there is a lot of information scattered around on xda for the Axon 7, and much of it relates to the A2017U, not the G. It is quite difficult to get a clear picture so sorry for these perhaps basic and "already asked" questions.

I currently have twrp_rec_tenfar.img installed (after following the OP). I was about to flash the most recent recovery then read that this would fail since I have not unlocked my BL.

I just want to be able to root my A2017G (to get e.g. Adaway, viper, etc...). I would prefer not to unlock the bootloader for now.

1) Is this possible?

2) If not possible, is it correct that once BL unlocked, it is permanent (i.e it cannot be re-locked, at least on A2017G)?

Thanks for any help!

EDIT 1: by the way, if I want to restore the stock recovery, how do I go about that (I have the three backups made following the OP)?
 
Last edited:

joaste

Senior Member
Sep 11, 2011
878
250
83
Thanks for these extra clarifications. They helped to get TWRP on my new A2017G.

As already mentioned, there is a lot of information scattered around on xda for the Axon 7, and much of it relates to the A2017U, not the G. It is quite difficult to get a clear picture so sorry for these perhaps basic and "already asked" questions.

I currently have twrp_rec_tenfar.img installed (after following the OP). I was about to flash the most recent recovery then read that this would fail since I have not unlocked my BL.

I just want to be able to root my A2017G (to get e.g. Adaway, viper, etc...). I would prefer not to unlock the bootloader for now.

1) Is this possible?

2) If not possible, is it correct that once BL unlocked, it is permanent (i.e it cannot be re-locked, at least on A2017G)?

Thanks for any help!

EDIT 1: by the way, if I want to restore the stock recovery, how do I go about that (I have the three backups made following the OP)?
Anyone?

And concerning restoring the stock recovery (my bootloader is still locked!), am I correct in assuming that I can use the "axon7tool -w recovery" command through adb, replacing "recovery" with the name of the recovery backup file made following this command: "axon7tool -r gpt boot recovery"? Or do I have to also flash the 2 other backup files made (i.e. gpt and boot)?

Any help would be appreciated!