yashsingh1/xdaforums huggingface dataset:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] jayratt:
Not recognizing phone in MiFlash

I'm attempting to unlock the bootloader on my A2017U running 7.1.1 B19, brand new phone.

Phone works in ADB mode, OEM unlock activated, USB Debugging turned on. When I use option 1 it reboots to the OS and the dialogue suggests a locked bootloader.

When I try to use option 6 to unlock the bootloader, I get:

Checking ADB\EDL Connectivity...

ADB device connected!

Rebooting to EDL mode...

Checking EDL connectivity...

EDL device connected!

Searching for Qualcomm HS-USB QDLoader 9008 device...

Qualcomm HS-USB QDLoader 9008 device connected!

Press any key to continue . . .

Instructions and MiFlash load, but the phone doesn't show up in the list after refresh. I've manually put the phone into EDL mode (vol+, vol-, power -- hear the USB connected tone from Windows).

In Device Manager I can see Universal Serial Bus Devices -> QUSB_BULK. MiFlash version is 2016.08.30.0

When the phone is booted as normal, it appears in the list and ADB Devices shows the device properly. Using the stock USB cable.

I'm suspecting a driver issue of some sort, but no idea how to check/troubleshoot. Win10 x64 if that makes a difference. Plugged into a USB 2.0 port, tried two as well as a USB 3.0, same result.

Any suggestions appreciated. Thanks!

---------- Post added at 06:31 AM ---------- Previous post was at 05:45 AM ----------

UPDATE -- Went through the same steps on a different PC, and it worked... not sure why the first PC doesn't recognize the device in MiFlash and would still like to figure that out, but with the same phone, USB cable, etc and just a different PC I was able to unlock the bootloader.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] jrotaetxe:
Antivirus warning...

I use AVAST, but others also.

See Virustotal scan results:

https://www.virustotal.com/es/file/...6d048a1100f4b2a71110a78f/analysis/1496924377/

Regards
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
False positive. It's because of the compiler used.

If you need more information: https://superuser.com/questions/1117747/why-do-av-software-thinks-that-all-compiled-batch-files-are-viruses
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] jrotaetxe:
Thank you Bkores

Regards
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] xartle:
I saw it on Avira and Mcafee. I also read the thing below about the compiled batch file. Good to know. Thanks! Keep up the good work. :)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] TheAdrenasProject:
error

I'm trying to return to stock using the B29 stock rom in the Axon7 toolkit when I flash C:\Axon7Development\Axon7Toolkit\miflash\B29\A2017U_B29_TWRP_EDL into the Miflash I get the error cannot recieve hello packet any idea what's going on?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] xartle:
I had the same error. Rebooting the PC fixed it for me. I don't know what the specific thing that needed the restart was...
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] TheAdrenasProject:
I rebooted the PC still getting the same error.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] jdgesmlls:
I just got this device yesterday and I want to update it to N B25 and try it stock for a few days... I have read that there have been several major changes with N B25 (no fastboot etc.) and I want to get confirmation that I can just use the toolkit to restore to N B15/B19 and unlock the bootloader, install TWRP, root, custom ROM etc. if I don't dig stock...

I have been using the toolkit for various tests, looks solid. Great job [MENTION=7658623]bkores[/MENTION]
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Yep!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] EarthboundHero:
Building off this, once I downgrade, unlock bootloader and install TWRP, what would the process be to get back up to date?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
It's in the FAQ
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HunterBlade:
So I'm trying to get this to work and I managed to unlock the bootloader just fine, but now every time that I try to install TWRP or root, I keep getting an error saying "boot failed". Any suggestions?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] celoxocis:
Can I use the Axon-7 Toolkit on my current device:

A2017U

TWRP installed

Bootloader unlocked

Rooted stock B29 ROM

to revert to stock to the latest Nougat stock ROM with unlockable Bootloader?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Variant? Build?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HunterBlade:
A2017U and I'm on stock B29.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] wyrethewolf:
I just got home from work, everything is loaded on my laptop, I will try again tonight... and post my results at that time. Thank you again for your hard work. Hopefully this time I wont get locked into a loop of my phone only booting to Team Win Recovery.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
New version is up! This minor release fixes the syntax errors for the flash zip option.

Again, if you already have the toolkit, just launch and the update will automatically be downloaded.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] moccor:
Not to sound ungrateful but it sounds like you yourself didn't even try to fully test this before releasing this. Which is a problem because the slightest mistake can create a 350$ problem for a guinea pig. I know you mention it is your first time making such a thing with no knowledge of programming, so that's definitely awesome. But don't you think you should have tested it yourself, before releasing it and people getting stuck at stuff?

Because if I was worried about my own phone getting damaged, I would double and triple check everything... not giving it to others, find a mistake and release a update to fix a potential permanent damaging bug
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
No offense taken. And I actually did test almost everything but the toolkit itself is well over 1000 lines so it would be impossible for me to catch every little mistake. But if its that important to you and everyone else I'll change the status to Testing and then change it back to stable once all the little bugs are fixed.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] lafester:
I think moccor just volunteered to triple check every line.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
That would take DAYS lol
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] eaponte23:
Just wanna take the time to thank you, I recently lost my laptop and this has actually helped me get back to flashing =)

PS: tried to download the EDL and the link seems to be down
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
for MiFlash? It's working for me
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] eaponte23:
Downloading file: www.mega-debrit.com_A2017U_B15-NEW_FULL_EDL.zip

Download: Failed

Hashcheck:

Retry, import, or cancel?(r/i/c)

Cancel will cancel download of ALL dependencies :
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
I updated the file dependency masterlist with a new link. Relaunch the toolkit and tell me if it downloads.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] eaponte23:
That worked thanks again.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] moccor:
If I knew how to do this stuff? Sure, I wouldn't mind helping, since I am the owner of a Axon 7 hence commenting here.

Example, this mentions nothing about the possibility of bugs in the first post, it sounds almost flawless. If you were flashing this before work or before doing something important and one of the unfortunate errors came up, you'd basically be screwed until the dev responded/released a fix (or without a phone for 8hrs... which could be like Hell in some work environments lol). Like I said I'm not trying to sound ungrateful, because these programs are awesome for simplicity and convenience, which is exactly what you created, provided everything works the way it should. With that said, I do plan to use it in time and I don't mind donating a bit for the convenience and time it will save me from going to different threads and gathering files, since I am still on Marshmallow
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
There is no such thing as bug-free software. There will always be bugs in ANY software, even if it is not explicitly stated.

But like I said, if it turns out there are too many bugs then of course I will change the status to Testing, so don't worry. I am very committed to this toolkit as I at first created it for myself and then decided to share it with everyone.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] moccor:
I get what you're saying, but I meant like, no bugs that would cause hardware to be damaged. Even the top dev's could make mistakes with adverse effects on a community members hardware. I think most dev's find testers that are willing and aware ahead of time of permanent adverse effects so their software looks better coming out. Cuz realistically, if I didn't find this literally the day after it was released, but instead found it with a bunch of pages of acknowledged fixes/bugs and people saying it worked, I wouldn't even doubt the code.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Well the worst thing that can happen is your phone gets hard-bricked and then you can use the restore to stock EDL option in the toolkit which is one of the things I have tested and it 100% works :)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Luhccas-X10:
Does the backup apps+data needs root?

Because i'm on stock B29 (no root), USB debugging on and all drivers installed (Windows 7 64bit) and the pop-up screen for allow backup doesn't appear after choose the option.

By the way, thank you so much for this!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
No [MENTION=2605312]Luhccas-X10[/MENTION] it does not require root. Did you unlock your device when it said "Unlock your device to confirm the backup operation" and get this screen?

Also did you accept the "Allow USB debugging" prompt on your phone? I just realized I forgot to add this but I'll put it in the FAQ post.

I just made a backup using the toolkit so it definitely works.

If you're talking about the delay before the actual backup starts, that's normal. It's intentional since the toolkit is preparing for the backup.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Luhccas-X10:
Yes, i did... How much time on average?

I waited more than five minutes and nothing... Is there some option in device to change?

USB debug - Ok

Trusted PC (ADB) - Ok

Allow unknown fonts - Ok
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Wait a second, by any chance are you talking about the fact that your device is on the "Allow backup to this computer?" screen during the backup? That's normal. If the backup started you should've seen a toast notification that says "Backup starting"
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Luhccas-X10:
The "Allow backup to this computer" doesn't appear for me... That's the problem :(
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] schneehasen:
I'm having the same "Boot Failed" error after unlocking the bootloader. Verified unlocked in Dev Options. I'm A2017U on B19.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Sorry for my late reply but you *should* be able to use the toolkit to restore to B19 and then just upgrade to B25 via ota but I'm not sure.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Does TWRP still boot regardless of the error message?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] schneehasen:
TWRP does boot via vol up + power.

But when I try to reboot, it's stuck on boot screen showing "ZTE - powered by android".

Can boot to TWRP, bootloader and FTM, but it's not booting to system.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HunterBlade:
You're probably triggering the DM-Verity check that stock firmware has. Also, I'd recommend just using a PC to fastboot flash TWRP over again if you ended up with the "boot failed" error (just incase something ended up going wrong during the installation). Personally, I ended up just manually flashing TWRP and installing magisk through TWRP. Was hoping I would be able to do it quickly with the toolkit but it looks like there still might be some bugs (good thing I knew a bit about this before I started). Anyways, here's a thread to help you out (skip to step 7): https://xdaforums.com/axon-7/development/recovery-official-twrp-zte-axon-7-t3515715 . You can either choose to root stock or just use the DM-Verity bypass zip to boot into un-rooted stock (or custom FW if that's what you want).
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
I figured out that the "boot failed" bug is not with the toolkit, it's with the new unlock package as it now contains the B20 bootloader (aboot) which I forgot does not support the fastboot boot command. Guess I have to make a new unlock package now :(
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Here's an unlock package I just made with the B19 bootloader which I'm sure supports the 'fastboot boot' command (different from fastboot flash). If you guys would be kind enough to flash it in miflash and then test the flash twrp and root options in the toolkit I would really appreciate it.

https://drive.google.com/open?id=0B2VBJePGznYjQXA0Q2dVaTJacXM
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HunterBlade:
Sorry mate, but I already ended up just using fastboot to flash TWRP and rooted B29 from there. Updated all the way to B25 now, so I don't think I'll be able to do the recovery thing anymore. If your tool supports it, I could try rooting my B25 using your tool, because before when I tried it, I was getting an error on both the recovery and root options.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Could you try it on B25? This package should restore access to fastboot and then you would be able to try the root and recovery options again.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HunterBlade:
Yeah sure, will do. I'll let you know how it goes. Just out of curiosity, if I root using your tool, would I be able to just flash Magisk over it after? Or will I have to go through the whole unrooting process before I'm able to get Magisk on it?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
I'm not sure as I've never used magisk but you can try.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HunterBlade:
Alright, well I just tried it and seems like both the recovery and root are working fine now. I just went through SuperSU and uninstalled root after I finished testing, but for some reason the Play store still says I'm uncertified for some reason though (already cleared the playstore data and cache but it still says the same thing) ....any thoughts on what this might be?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] SugnaB:
I am having problems with this tool, i'm trying to unlock the boot loader but it keeps saying that i already have MiFlash tool installed, when i don't. Someone else had the problem and i did all that was said in this thread... http://en.miui.com/thread-116985-1-1.html

Deleted everything in the registry that had xiamoi in it, went to program files, program files (x86), control panel which is where it showed up but told me it was already installed. I search up xiaomi in the search on my drive and deleted everything related to it but it still gives me this error. I have restarted it a dozen of times and it still wont work.

[IMG="https://my.mixtape.moe/nowtdv.PNG"]https://my.mixtape.moe/nowtdv.PNG[/IMG]

[IMG="https://my.mixtape.moe/evkgtb.PNG"]https://my.mixtape.moe/evkgtb.PNG[/IMG]

If i run CCleaner it shows the set up screen for the installer but then closes. But it will stop doing that unless i run ccleaner again.

I removed everything with Xiaomi and Miflash from the registry and it still just does not work....
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] schneehasen:
Had to flash back to stock and relock the bootloader to get everything to work. But the new unlock package works, as does twrp and root in the toolkit.

Cheers!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Thanks! As for the play store problem I'm pretty sure its a MiFavor problem as other people have reported this.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] jdgesmlls:
[MENTION=7658623]bkores[/MENTION] - I am still evaluating stock but when I do decide to unlock etc., can I just extract the FASTBOOT_UNLOCK_EDL.zip posted yesterday into C:\Axon7Development\Axon7Toolkit\miflash\FASTBOOT_UNLOCK_EDL\ to get the fixes in the actual toolkit? Or is it just better to flash FASTBOOT_UNLOCK_EDL.zip in MiFlash after bootloader unlock?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HunterBlade:
Ahh, alright. I just wiped my data partition and basically started over, and it works fine now. Guess it might have been the fact that I dirty flashed from B29 that had root. Anyways, I was wondering, would there be any problem if I left my bootloader like this (having a B19 bootloader for B25 firmware).
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
As long as future OTAs past B25 don't check the bootloader you should be fine, that is if you care about OTAs.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
You should be fine with just replacing the unlock package.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HunterBlade:
Alright, thanks, that's good to know. I ended up flashing DrakenFX's B25 stockimage over it again and it probably updated the boot image back to B25 (or at least now, when I go into TWRP and try to boot into bootloader, it just restarts and boots back into system). Not sure if this is what the regular B25 bootloader is supposed to do though. I'm trying to get it back to B25 just so there's less of a chance of any type of boot errors.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] SugnaB:
Okay i just flashed TWRP and now im stuck on the bootloader. I can press volume keys to go to the options menu but otherwise it stays on the screen that says "if no button is pressed the system will continue to boot". The red LED goes away and it should be booting but it won't. How do i fix.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] EarthboundHero:
Sounds like you might not have a ROM installed.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] SugnaB:
But i did. I flashed B19 right before i installed TWRP. I rebooted into fastboot from Android while it was plugged in, i did check the firmware and it was B19

The /data was corrupt. I had to reapir and fromat to EXT4, clear the cache and then the ROM loaded
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] joel-n1:
When I try to download the installer file AVAST is blocking it as it detects "FileRepMalware". Should I be worried about this or just disable AVAST and download?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] wolfpack:
Seems like I messed something up.......after a succesful unlock of the bootloader the phone won't leave edl-mode. No matter what combo i use of the buttons nothing happens other than a vibration every couple of seconds. Can this be fixed or have I completely bricked my device?

Installing twrp didn't work at first so i tried the new unlock package in post #388, that's when it happened.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
False positive. I have addressed this already.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Variant and build? And does the original unlock package still work?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] wolfpack:
2017G and MM B11

No, nothing works, all I get from any buttoncombo is a vibration every couple of seconds
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Try the restore stock option and tell me if it works.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] wolfpack:
Nope, no contact with the phone on either adb or edl.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Is your phone in DFU in device manager?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] wolfpack:
Yes, it says "ZTE handset diagnostics interface (DFU)"
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Then you should be able to use volume down and power to boot into FTM mode.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] wolfpack:
All that happens when I do that is the red led blinking and the phone vibrates every couple of seconds.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] mrrocketdog:
big :thumbup: [MENTION=7658623]bkores[/MENTION] for maintaing your thread so well.

dont have an axon7 yet , but i know where to go when i get one.:highbkores:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
[MENTION=566243]wolfpack[/MENTION] try this: https://xdaforums.com/showpost.php?p=70948893&postcount=28
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] wolfpack:
Didn't work unfortunately, starting to think it's beyond saving.......
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
Unfortunately I think so as it looks like you have one of those infamous A2017G phones with a slightly different partition table which causes bricks when anything is flashed to them. Looks like you'll have to do an RMA :(
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] wolfpack:
Yeah, i'll do that. Thanks alot for trying to help!

So it's basically unrootable?

Is there any way to check if a 2017G unit is unrootable?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Raffikie:
When I go through the process with the mi flash and to go back to the toolkit, my phone reboots and then it is asking me for a password and I did not put a password on my phone. Any help with that? Is there like a default password. I have tried varying passwords that I would have used then it gives me a warning that 8 more password fail and my phone will be wiped.

---------- Post added at 12:39 PM ---------- Previous post was at 12:32 PM ----------

When I go through the process with the mi flash and to go back to the toolkit, my phone reboots and then it is asking me for a password and I did not put a password on my phone. Any help with that? Is there like a default password. I have tried varying passwords that I would have used then it gives me a warning that 8 more password fail and my phone will be wiped.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] xpakage:
I copied this a while ago and do not remember where I got it from. But it works. There is also a zip file you can run from TWRP that does the same.

If for whatever reason you run again into this "wrong pin " or pattern after restoring a backup just to the following:

1. Boot to TWRP

2. Use the File Manager of TWRP

3. navigate to and delete.

* Data > System > Locksetting.db

Then just boot normal again and you're Good to go.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] still_living:
Device is unlocked (A2017G)

Tried flashing twrp/root using axon7toolkit(version 1.2.0)

Checking ADB/fastboot connectivity...

ADB device connected!

Rebooting to bootloader...

Checking fastboot connectivity...

Fastboot device connected...

Flashing twrp...

And within a second an error message pops up with a red cross 'Flash failed!'

Can anybody help with this?