• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

DroidViews

  • Apps
  • Downloads
    • Android Apps
    • Themes
  • Guides
    • Root
  • ROMs
  • Reviews
  • Wallpapers
  • About Us
  • Contact Us

Unlock Bootloader, Install TWRP and Root ZTE Axon 7 (A2017G)

Duelist Raj | 21 Jan 2017 | Guides/ Root/ ZTE

ZTE Axon 7 is one of the best mid-range phones available out there. The phone houses a Snapdragon 820, QHD screen resolution, 20MP rear and 8 MP front camera with a decent 3250 mAh battery enough to last a full day. I mean what else one can get in a 400$ price bracket. This phone is seriously nuts. Moreover, the front firing stereo speakers on the Axon serves as an icing on the cake.

Nevertheless, those were some brief specs mentioned out there. However, the main purpose of writing this post was not to talk about specs. So, let us do the things for which we are here. In this post, I will be describing in detail how you can unlock the bootloader, install TWRP and root on the device itself. Thanks to Tennear, Unjustified Dev, DrakenFX, and Starvirus of XDA. Without them, this post would not have been possible.

Install TWRP Recovery on ZTE Axon 7

Prerequisites

  • Make sure your device is at least 60% charged
  • Temporarily disable your antivirus program (To allow axon7tool to work)
  • Backup important data to your PC (Basically from the Internal Storage)
  • Download minimal fastboot and ADB tools (Unzip the files into ADB folder so that you can easily access it later)
  • Download the axon7tool (Place the file in the ADB folder)
  • Finally, download the TWRP image file (Place the image file in the ADB folder)
  • Make a copy of the recovery.img file and rename it to recovery.bin (Do this in the ADB folder)
  • Make sure USB Debugging and OEM Unlock are enabled (Settings» Developer Options)

Warning- This will void your warranty. We at DroidViews won’t be responsible for any type of data loss or damage you incur to your device. Please do some research before flashing or unlocking the bootloader. However, we ensure you that if you follow the steps correctly then you will land in no problems.

Steps to Install TWRP Recovery

  1. Connect your Axon 7 to the PC.
  2. Hold Shift + Right Click» Open command window here (Do this in the ADB folder).
  3. Type,
    adb devices

    and hit enter (A device will be listed by its code name).

  4. Then, type,
    adb reboot edl

    and hit enter (Your device will reboot into EDL mode. If it appears off then don’t worry. That is the nature of EDL mode).

  5. On your PC, navigate to Control Panel» Device Manager and check whether the device is listed as QUSB_BULK or not (If not then check the troubleshooting section below).
  6. After that, type in the command prompt
    axon7tool -r gpt boot recovery 

    and hit enter (Your device will reboot).

  7. After the device has booted, type,
    adb reboot edl 

    and hit enter.

  8. Now, verify if you have 3 backup files gpt, recovery and boot in the ADB folder.
  9. Then, in the command prompt type
    axon7tool -w recovery 

    and hit enter.

  10. Wait for it to be executed and then your device should reboot.
  11. After the device reboots, power it off.
  12. Then, reboot into TWRP recovery (To do so hold both Power and Volume Up button until droid logo).
  13. After this, if the TWRP recovery asks for a password then, simply click on cancel.
  14. If asked to modify system settings then swipe to agree.

If you follow the steps correctly then you will have a working TWRP installed on your ZTE Axon 7.

Troubleshooting

  • If your PC doesn’t recognize your device as QUSB_BULK then download Zadig and replace the drivers with WinUSB ones.
  • If axon7tool.exe doesn’t recognize your device even after connecting the device as QUSB_BULK then try killing adb.exe via task manager before trying again.

Unlock the Bootloader on ZTE Axon 7

Prerequisites

  • Make sure your device is at least 60% charged
  • Download minimal fastboot and adb tools (Unzip the files into ADB folder so that you can easily access it later)
  • Download the ZTE-Axon7-About-Image.zip (aboot.img) file and put in the ADB folder
  • Finally, Download the TWRP_Unlock_Bootloader file (Unzip it but only copy the fastboot_unlock.img file to the ADB folder)

Steps to Unlock Bootloader

  1. Navigate to the ADB folder and hold Shift + Right Click» Open command window here.
  2. In the command window, type one command and hit enter. Do this for all of the commands listed. Type,
    adb push aboot.img /sdcard/ 
    adb push fastboot_unlock.img /sdcard/
    adb shell dd if=/dev/block/bootdevice/by-name/fbop of=/sdcard/fbop_lock.img
    adb shell dd if=/dev/block/bootdevice/by-name/aboot of=/sdcard/aboot_lock.img
    adb pull /sdcard/fbop_lock.img
    adb pull /sdcard/aboot_lock.img
    adb shell dd if=/sdcard/fastboot_unlock.img of=/dev/block/bootdevice/by-name/fbop
    adb shell dd if=/sdcard/aboot.img of=/dev/block/bootdevice/by-name/aboot
  3. Then, type,
     adb reboot bootloader 

    and hit enter (The device will boot into bootloader).

  4. Finally, type,
    fastboot oem unlock

    and hit enter.

  5. Follow the instructions on the device in order to confirm unlocking of the bootloader (Use Volume Buttons to navigate and Power Button to select).
  6. Boot into TWRP recovery (To do so hold both Power and Volume Up button until you see the droid logo).
  7. At the end, Navigate to Wipe» Format Data and type in Yes to confirm data formatting.

Note- If you a permission denied issue then try doing these steps while in TWRP recovery.

Root ZTE Axon 7 (A2017G)

Prerequisites

  • Download the SuperSU 2.79.zip file (Transfer the zip file to the device’s Internal Storage).

Steps to Root

  1. Reboot your device into TWRP recovery mode (To do so hold both Power and Volume Up button until droid logo).
  2. Click on Install.TWRP 3.0
  3. Then, navigate to the directory where you placed the SuperSU.zip file.
  4. Click on it and swipe right to flash it.
  5. After completed, reboot your device to the system.

Download Root Checker from the Play Store to verify root access.

[googleplay url=”https://play.google.com/store/apps/details?id=com.joeykrim.rootcheck”/]

That is it, guys. This is sure a long post and I know some beginners will face issues with this. For them, remember the comments section is always below to ask for help. We will try to reply as quickly as possible.

Read Next Download ZTE Axon M Stock Wallpapers (19 FHD Wallpapers)

Tags: Rooting Guides TWRP Recovery Unlock Bootloader ZTE Axon 7

Related Posts

Edxposed fix

Installing EdXposed Trips SafetyNet? Here’s the Fix

root pixel 4

How to Root Pixel 4 and Unlock Bootloader

Realme C2 root and twrp

Unlock Bootloader, Install TWRP & Root Realme C2

Reader Interactions

Discussion

  1. Dec 16, 2018 at 7:58 PM
    ronit says:
    Reply

    hello

    my device after this step

    6. After that, type in the command prompt

    didnt reboot. and now the phone is not working. what can i do

    • Dec 16, 2018 at 4:24 AM
      Rakesh says:
      Reply

      Hi, did you try pressing and holding the power button for a long time?

  2. May 24, 2017 at 8:11 PM
    phil says:
    Reply

    Hello oys,

    Would you be so kind to hast this TWRP v3.0.2-2?
    I can’t find it anywhere.

    • May 24, 2017 at 10:32 AM
      oys says:
      Reply

      Sorry but I don’t have that version anymore, and it looks like they took down the link in the original thread. You might have to head over to the thread and ask them about this. There’s a toolkit that I have never tried before but may work in this thread https://forum.xda-developers.com/axon-7/development/tool-axon7toolkit-t3573108. But again, I’ve never tried that toolkit before so I really don’t know for sure if it’ll help.

  3. Apr 22, 2017 at 9:36 AM
    Robert Bucza-Buczyn says:
    Reply

    Anyone rooted A2017G with B06 or B08?

  4. Apr 22, 2017 at 9:34 AM
    Robert Bucza-Buczyn says:
    Reply

    Anyone know, how to root A2017G with B06 or B08?

  5. Apr 17, 2017 at 4:38 AM
    Duelist Raj says:
    Reply

    Great to hear that. The comments were awaiting moderation that is why you didn’t receive them. I know the whole process sucks. Looks like you flashed the stock firmware. Did you flash the SuperSU [zip] after flashing the stock firmware? What version are you running B08, B09 etc.? I would also suggest to crosscheck for SuperSU app, sometimes it is shown in the settings menu.

    • May 13, 2017 at 10:54 AM
      Coll Gaj says:
      Reply

      everything works now, unlocked bl, root and stock firmaware 7.0 TY

  6. Apr 12, 2017 at 12:58 PM
    Seth Steen says:
    Reply

    It looks like this thread is dying, but I will tell anyone on A2017G 7.1.1 This method will not work to unlock the bootloader, making all other points mute.
    You can’t have a A2017G with Android 7.1 (Daydream support) and root. You have to pick either root or 7.1, can’t have both.
    I hope this saves you time. I will follow progress and remove this post if that ever changes.

    • Apr 12, 2017 at 3:01 PM
      Duelist Raj says:
      Reply

      Yes, the thread is indeed dying. At the time of writing this post I tried the method on the device (Android 7.0). It was working then. I don’t have the device now so I’m unable to help other users out there.

      Anyways thanks for the heads up. If I get the device then I will check the whole process again and make necessary changes.

      • Apr 16, 2017 at 11:32 AM
        Coll Gaj says:
        Reply

        after I opened twrp and try to reboot I am stuck at the ZTE logo, nothing happens after that. I can only boot into twrp now

        • Apr 16, 2017 at 12:49 PM
          Duelist Raj says:
          Reply

          I would suggest that you should flash the stock factory image to revert back to stock. However, if you want a custom ROM on your device then there are a few good ones available at XDA which are worth checking out.

          • Apr 16, 2017 at 12:56 PM
            Coll Gaj says:

            does that work without an unlocked bootloader? So, im talking about the stock rom, and where can you find on and how to flash it??

          • Apr 16, 2017 at 1:05 PM
            Duelist Raj says:

            You have TWRP installed, right? This means you have unlocked bootloader. I think you haven’t tried format data yet.
            Follow these steps:

            1. Boot into TWRP recovery.
            2. Click on Wipe» Format Data.
            3. Type yes and swipe to confirm.

            After the above process is complete, try to boot into System again and wait. If the device boots then hooray you did it. In case you don’t have any luck then let me know I will forward you the link to stock recovery images.

          • Apr 16, 2017 at 1:12 PM
            Coll Gaj says:

            But I only installed twrp, I didnt do this yet “Steps to Unlock Bootloader

            Navigate to the ADB folder and hold Shift + Right Click» Open command window here.
            In the command window, type one command and hit enter. Do this for all of the commands listed. Type,….. etc.”

          • Apr 16, 2017 at 1:18 PM
            Duelist Raj says:

            So now what?? What do you want to do?

          • Apr 16, 2017 at 1:42 PM
            Coll Gaj says:

            Well, I just want my phone back working as usual (idc about my data now) OR a working phone with root (preferably a stock rom)

          • Apr 16, 2017 at 2:21 PM
            Duelist Raj says:

            Honestly, I don’t think so. I would say follow these steps:

            1. Boot into TWRP recovery.
            2. Click on Wipe» Format Data.
            3. Type yes and swipe to confirm.

            Wait for the process to complete then try to boot into the System. Did this do the trick??

          • Apr 16, 2017 at 2:44 PM
            Coll Gaj says:

            Okay, nvm, I just followed his steps and formatted the data and rebootet the phone after I unlocked the bootloader and now this message appears: “your device software cant be checked for corruption, please lock the bootloader. Visit this link on another device (link doesnt work, 404 error).

            If no key pressed: Your device will reboot in 5 seconds”
            But it doesn’t want to reboot, I even rebootet it again and this message appeared again, but it still didn’t boot.

          • Apr 16, 2017 at 1:48 PM
            Coll Gaj says:

            and on xda someone says this: There is an edit button in case you need to add something (just to let you know).
            You have to follow Step 1. The image there should be fine with A2017G since it will only add fastboot support. However, I am not responsible if anything goes wrong!

            I would do it like this (Section B in this thread’s OP, Steps 5,8,9,10,11):
            Boot into TWRP
            If there’s none open, open a new command window in that folder again (Shift + right-click and “open command window here”)
            Type “adb shell dd if=/dev/block/bootdevice/by-name/fbop of=/sdcard/fbop_lock.img” and hit enter
            Type “adb shell dd if=/dev/block/bootdevice/by-name/aboot of=/sdcard/aboot_lock.img” and hit enter
            Type “adb pull /sdcard/fbop_lock.img” and hit enter.
            Type “adb pull /sdcard/aboot_lock.img” and hit enter
            After that follow Step 1 in the other thread.
            As soon as you’re done, boot into TWRP.
            Then follow section B in this thread’s OP, Steps 14, 15 ,16, 17, 18.

            Note that this won’t resolve your issue with not being able to boot into the ROM.

            *EDIT*
            If you are in TWRP do this to boot into EDL:
            Open a new command line window
            Type: adb reboot edl
            Try again with MiFlash”

            Would this fix my problem?

  7. Apr 9, 2017 at 1:30 PM
    Seth Steen says:
    Reply

    I had the same error with the provided TWRP and then was successful with the TWRP mentioned in the comments. However that version won’t let my phone boot at all. Just an endless ZTE screen. How do I get it back?

    • Apr 16, 2017 at 11:33 AM
      Coll Gaj says:
      Reply

      how????

  8. Apr 1, 2017 at 9:09 AM
    Antonio Björklund says:
    Reply

    Hi! When i i’m using to command “axon7tool -r gpt boot recovery” it only says “Failed to connect” What is wrong? I’ve tried to redo everything multiple times and i’ve even tried it on another computor with the same issue?.

    • Apr 1, 2017 at 9:26 AM
      Duelist Raj says:
      Reply

      Check the prerequisites section and revise once again.

      • Apr 1, 2017 at 10:49 AM
        Antonio Björklund says:
        Reply

        How do i correctly rename to copy of the recovery from recovery.img to recovery.bin? I assume that it shouldn’t be recovery.bin.img?

        • Apr 1, 2017 at 12:32 PM
          Duelist Raj says:
          Reply

          https://uploads.disquscdn.com/images/03f3176f6581e8873ad7dfb7fb2f151529ed1f36a40c66be5b6e4d21811580c1.jpg Just to be clear the .img is an extension which symbolizes the file to be an image file. However, in the post it is asked to rename the file to recovery.bin and not convert. Take a look at this image.

          • Apr 1, 2017 at 1:27 PM
            Antonio Björklund says:

            Aha ok. In that case i did it the right way. What could be the cause of the failed to connect error in step 6 then?

          • Apr 1, 2017 at 1:51 PM
            Duelist Raj says:

            A. Install Zadig 2.2 drivers if you haven’t done before.
            B. connect phone to pc and confirm it says QUSB_BULK in device manager
            C. adb reboot edl
            D. when in edl mode open zadig 2.2 again and install driver

            Try the above. it should work now.

            In case the above method doesn’t work then try the steps mentioned below.
            1. Navigate to the ADB folder.
            2. Click on View» Options» Change folder and search options.
            3. Under the View tab uncheck ‘Hide extensions for known file types’.
            4. Then.rename the extension and change recovery.img to recovery.bin.
            5. Finally, try again while following the steps A, B, C, D mentioned above.

            Check the image. https://uploads.disquscdn.com/images/4a650729f47cb1b2add2eb546ede140d69f50dbf0d0f96f2a7af60e2e51be139.jpg

            Hope this solves the issue.

          • Apr 1, 2017 at 5:36 PM
            Antonio says:

            Thanks! This resolved my issue with the “QUSB_BULK” problem. I have a new problem though, i get the following error when i’m entering the command “axon7tool -w recovery” along with the axon7tool exe crashing:
            C:adb>axon7tool -w recovery
            Connecting to device…
            Sending programmer…
            Connecting to programmer…
            log: Supported Functions: program configure nop firmwarewrite patch setbootablestoragedrive ufs emmc power benchmark read getstorageinfo getsha256digest erase peek poke getnumdisksectors
            log: Supported Functions: program configure nop firmwarewrite patch setbootablestoragedrive ufs emmc power benchmark read getstorageinfo getsha256digest erase peek poke getnumdisksectors
            Writing recovery …
            F: failed to open recovery.bin
            terminate called after throwing an instance of ‘std::runtime_error’
            what(): error: No error

            What could be the cause of this?

          • Apr 1, 2017 at 6:13 PM
            Duelist Raj says:

            Try this TWRP instead: http://penlane.me/fileserver/uploads/twrp_rec_tenfar.zip

            Follow the same steps.

          • Apr 2, 2017 at 8:33 PM
            Antonio says:

            I got the same error with that file aswell. It’s the exact same issue as Garry Walker showed below.

          • Apr 16, 2017 at 11:08 AM
            Coll Gaj says:

            Were you able to fix this problem, i also get this “failed to open recovery.bin” problem 🙁

          • Apr 16, 2017 at 5:33 PM
            Antonio says:

            Yes i was.
            You have to open open the windows file explorer then locate the view button in the top, then press options to the right, then press view and uncheck “Hide file extensions for known file types”.

            After that you should be able to rename the recovery.img to recovery.bin.
            Note that the recovery.bin should not have the disk icon as the img files have.

  9. Mar 14, 2017 at 11:55 AM
    Garry Walker says:
    Reply

    hi, it doesent work for me: F: failed to open recovery.bin… tryed another twrp image but doesent work.What do i have to do to get it running?

    • Mar 14, 2017 at 12:07 PM
      Garry Walker says:
      Reply

      https://uploads.disquscdn.com/images/2802a1c681e6d54a8123f58d9e4be885918729b813798bdc011851c01f3ead75.png

      • Apr 16, 2017 at 11:08 AM
        Coll Gaj says:
        Reply

        Were you able to fix this problem, i also get this “failed to open recovery.bin” problem

        • Apr 16, 2017 at 11:19 AM
          8i - VR mobile VR games says:
          Reply

          I did not try, because a few days later I got 7.1 and didn’t needed to root my A2017G anymore. (Gary Walker)

  10. Mar 8, 2017 at 3:19 PM
    Sandro says:
    Reply

    thank you, finally I got it and now have root 😉

    • Mar 10, 2017 at 8:13 AM
      oys says:
      Reply

      Nice!

      • Apr 16, 2017 at 11:35 AM
        Coll Gaj says:
        Reply

        after I open twrp and try to reboot I get stuck at the zte lgog and can only boot into twrp again

  11. Mar 6, 2017 at 3:48 PM
    Sandro says:
    Reply

    really like the tutorial, could you describe also how to do a copy of the recovery.img. SU is not working for me…

    • Mar 6, 2017 at 4:54 PM
      Duelist Raj says:
      Reply

      Do you mean stock recovery??

      • Mar 7, 2017 at 7:27 PM
        Sandro says:
        Reply

        The step, that is mentioned in the prerequisites. Make Copy of the Recovery.Img

        • Mar 7, 2017 at 12:28 PM
          Duelist Raj says:
          Reply

          It means you need to make a copy of the TWRP image file you downloaded, paste it in the same ADB folder and rename the image file to recovery.bin

  12. Feb 9, 2017 at 10:21 PM
    Neil says:
    Reply

    Hi, at step 5, my decive is showing in Device Manager, but with a yellow exclamation mark next to the QUSB_BULK text. When I try the script at step 6 it simply wont run. Any tips?

    • Apr 1, 2017 at 3:09 PM
      Antonio Björklund says:
      Reply

      Hi! Did you resolve this issue as i cannot get the script to work.

  13. Feb 8, 2017 at 8:04 AM
    oys says:
    Reply

    I followed the guide for the TWRP installation exactly but when I tried to reboot into TWRP at step 12, all I get is a black screen and a red LED notification light. I am able to boot into android and use my phone no problem but I just can’t boot into recovery at all… Sorry, I’m still really new to this and any help would be greatly appreciated! My phone is the a2017g on B08.

    • Mar 7, 2017 at 9:18 PM
      Sandro says:
      Reply

      I have the same issue, where you able to fix this?

  14. Jan 29, 2017 at 3:41 AM
    Rakesh says:
    Reply

    Thanks for the info! Just updated the tutorial.

    • Jan 29, 2017 at 4:51 AM
      Video Hog says:
      Reply

      were you able to verify that you rooted the phone? I haven’t had any luck yet… Could it be because it is a different build version? Mines a A2017G b06.

  15. Jan 29, 2017 at 1:57 AM
    kw says:
    Reply

    I get this error when trying to unlock the bootloader:
    C:UserskwhitDownloadsminimal_adb_fastboot_1.4.1_portable>adb shell dd if=/dev/block/bootdevice/by-name/fbop of=/sdcard/fbop_lock.img
    dd: /dev/block/bootdevice/by-name/fbop: Permission denied

    Any ideas?

    img Files are on the device

    • Jan 29, 2017 at 3:45 AM
      Rakesh says:
      Reply

      Hi, try this: Install TWRP first, boot the device into TWRP using “adb reboot recovery” command and follow the unlocking bootloader steps.

      • Apr 16, 2017 at 11:49 AM
        Coll Gaj says:
        Reply

        but my device wont boot after that, only into twrp

Join The Discussion: Cancel reply

We never share our visitor/user details. For more info, Please read our privacy policy before submitting your comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Footer

  • Apps
  • Downloads
    • Android Apps
    • Themes
  • Guides
    • Root
  • ROMs
  • Reviews
  • Wallpapers
  • About Us
  • Contact Us

Privacy Policy | Terms & Conditions
© 2025 · DroidViews