yashsingh1/xdaforums huggingface dataset:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
this can change the recovery to TWRP, and the boot image i provide already verity off ,so ,we can modify system partition as we want, which means xposed framework can be install to system partition. and this is not involve bootloader unlocked. so this will not void warranty .

but we still need someone to confirm if this works on us model or not.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tdgillihan:
I can't believe that nobody has tried this yet.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] TeutonJon78:
The Chinese users have a full flash image they can fall back on if they screw up -- US users don't have that yet.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tdgillihan:
Yeah, I know. I figured this would make people hesitant. There is a twrp backup image uploaded, but you'd probably have to unlock the bl and flash twrp to use it if you had a problem with your process. I'd do it if had one but mine hasn't shown up yet.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] mischa_martin:
Could you explain further how you get a unsigned (or signed by yourself) kernel booted on a bootloader locked device (which should prevent exactly that).

Because if you have done nothing but flashing the boot and recovery to the device without altering anything else on the device it could mean that it doesn't check its kernel and we could flash CM on locked bootloader using that method. :confused:

Regards,

mischa_martin
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
More folks (including myself!) should get their grays tomorrow, so there should be a bigger group of guinea pigs very soon :p

I'm willing to try it, but it depends on when the phone is delivered. I will probably be at work when it's delivered and I'm supposed to leave in the afternoon for a trip out of town. Not sure if I'll be able to do it before I leave (or if I'll do it while I'm gone). Monday for sure, but that's DAYS from now.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] aPexalpha:
Omg. Nice!

Are you married yet?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] ronj1986:
WHAT:confused:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rikin93:
Going to do this tonight on my EU version! hope for root!

---------- Post added at 03:54 PM ---------- Previous post was at 03:53 PM ----------

[MENTION=540283]tenfar[/MENTION] Will this erase my data if i do it using these steps for EU version
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
maybe if something goes wrong，backup your data before doing this。and you'd better use the-b option to flash boot only.so that if any thing wrong you can flash back to stock using stock recovery.

从我的 iPhone 发送，使用 Tapatalk
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] KyJelly69:
I'm confused. If he does -b only then how is he going to make a backup without twrp being installed?

should you do -r first then boot to recovery and make a backup? Then do -b
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tdgillihan:
I think you can backup just data without having to have twrp by just copying everything to the sd card or pc can't you? I'm more wondering what he's supposed to use in order to flash back to stock as we don't have anything yet in US. Have the EU sources been released?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
What if twrp can't boot?so the best way is flash boot partition first or to flash twrp to boot partition, see if rooted boot image booted or twrp booted or not.if it can't boot,boot into stock recovery flash official firmware. For backing up data,you can use pc or other tools,when use pc you can use adb backup or other gui tools.the most important data are photos taken with the phone . You can find other method to backup data if you really want to test this.and thanks for those whom take the first bite of crab

从我的 iPhone 发送，使用 Tapatalk
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
You are right about the backup method,and Read all the threads,there's a full firmware for a2017g which can be flash from stock recovery.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] r3xx3r:
Okay, slight problem here. After following your instructions I rebooted to Android and I get a message that says "To start Android, enter your password" I have never set a password and I don't know what this message is. I have not seen it before. I have been using my fingerprint and a pin to unlock my phone but neither seem to work. Any ideas on how to get passed this??

I have the US version with a locked bootloader.

I can get into TWRP just fine.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
Have you backup your data. What model you have? This shows it works on your model. And what you need to do is format data.the password required is because the devices's data is a encrypted file system. So maybe the boot is newly flashed so the private key is different. If you didn't backup your data,flash back to stock boot image,if you have backed up your data,boot into stock recovery do a factory reset.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] KyJelly69:
can we get a guide with what order to do the steps in if you are doing it for the first time including creating a stock backup please
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] MaxRink:
uhm, i ****ed up hard.

could any1 dump the B03 stock recovery.img and boot.img with the dumptool listed here?

http://xdaforums.com/axon...okced-t3441204

Just make sure that you enter the params -d correctly otherwise the tool wipes both -.- ( actually managed to type - d and now im sitting here without boot and recovery)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] aPexalpha:
I think I need this for the (CN) B09 version. My own dump doesn't work when I restore them. Weird.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] DrakenFX:
You can grab stock recovery from the full B02 update , there is a boot.img but not sure if that will help, (I'm using a2017u btw)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] regenwurm16:
Can a few others with the European version of the device confirm that it's not going into proper EDL mode with the key combo? As far as I can tell, myself and another user have exactly the same problem whereas a US user doesn't have this problem at all.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] peramikic:
I tried patching the B02 boot and recovery but the windows version of bspatch i could find was compiled quite a while ago and is giving the corrupt patch so no dice here.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] jim262:
This seems like a giant cluster. I see more people having and their devices getting messed up than people with cleanly rooted devices.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] peramikic:
Well it's a very large hack but at this point it's the only way to get root on non-US variants. And people who did this successfully have no reason to post here. The problem is you can't treat the phone like it has an unlocked BL with this method. In essence you still have a signed boot image and all, just patched to allow root and disabled dm-verity. Flashing something that patches kernel or ramdisk will instantly turn this into a soft-brick since it will destroy the signature. And flashing mismatched boot and system will cause it's own problems. Throw in TWRP bug and difference on G models in getting into EDL mode apparently and well.... yeah it's a cluster unless you read everything 3 times over
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] ultramag69:
Which is not the fault of the OP.

If you are going to do this make sure you've read and reread and have an understanding of what you're doing. It is your phone and no-one is making you do this.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] dragon-tmd:
Here is the backup of B03 stock boot and recovery.

http://www.file-upload.net/download-11934149/B03stockrecovery.zip.html

---------- Post added at 07:24 AM ---------- Previous post was at 07:23 AM ----------

Just some info for EU-Models:

Do NOT use the B02 boot.img for rooting, IF you are on B03. You'll loose WiFI AND fingerprint scanner.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] BritSwedeGuy:
I have the same problem on both my Windows 7 machines, I can only get into EDL mode via adb reboot edl, if I try to via the keys it always comes up ZTE Handset Diagnostic Interface (DFU)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] aPexalpha:
If someone could do this for me for the B09 model?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] imp3r10:
when you run this code

axon7root.exe -p 4 -r

does it flash the TWRP recovery?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] chpimentelpr:
Worked like a charm on my US device. thanks!

---------- Post added at 05:08 PM ---------- Previous post was at 05:07 PM ----------

yes it does... however is version 3.0.2, you need to update it later to 3.02-2.... not a big deal for now...
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] strifej:
XDA search seems pretty unreliable lately.

Anyways, just wanted to confirm, if I want to restore everything back to full stock (B20 locked bootloader), I can just use the axon7root.exe with the original boot/recovery imgs created from axon7backup.exe?

Will restoring the original boot/recovery format/delete my data?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
Yes.

No.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] strifej:
Great. I'm going to try restoring to stock everything, then re-do the process with the newest TWRP from tenfar in hopes it avoids the TWRP encrypted data issue. Maybe it happened because of the TWRP linked from the OP. I can't flash supersu/xposed at the moment because sdcard is locked in TWRP.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] BritSwedeGuy:
Has anyone with the a12017g on B02 managed to get into EDL mode via the power keys?

It seems the only way for us is via adb and that's no good for the final stage.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] manu7irl:
Can you please try to factory reset the a7 from the settings menu?

You need to revert to stock recovery with [MENTION=540283]tenfar[/MENTION] tool to proceed.

After that reflash to the new twrp again with [MENTION=540283]tenfar[/MENTION] tool then reboot into recovery after the first boot to see if it will resolve the encrypted data problem.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] djona12:
Yes, "vol up + vol down" while plugging it in is working for me.

A2017G on B02.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] regenwurm16:
Which OS do you use? Did you install the Qualcomm drivers prior to plugging the device in and as what was the device recognized? Did you have to force install the drivers to get recognized as the correct device or was it installed correctly from the beginning?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] djona12:
The device isn't recognize right now, i probablyt need some new drivers. I'm on W10 on a backup machine so it's quite the driver dump...

But the phone getting into edl isn't related to the drivers on your machine to the extend of my knowledge.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] peramikic:
Seems like there is some code in B02 aboot that triggers dload mode on keypress sequence that might be the DFU mode most likely. This seems to happen on the devices that are stuck in bootloop and can't power off properly.

[MENTION=4061250]regenwurm16[/MENTION] Can you try this, the moment the red led turns on to indicate boot, hold both vol buttons but not the power. This should put you in fastboot. From here you can up/down with volume to power off. Now when powered of, hold both vol keys for 5 seconds and then press power until led blinks. Let go of the buttons and plug into USB and see what it comes up with. For me it will go to EDL like this as well but it's the US model so YMMV. The fastboot trick should let you power down and hopefully that lets you trigger EDL
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] BritSwedeGuy:
I was also looking into this as a possible workaround...

http://xdaforums.com/android/software-hacking/guide-how-to-reboot-to-edl-fastboot-t3394292

---------- Post added at 08:53 AM ---------- Previous post was at 08:24 AM ----------

Pressing up & down as soon as the red LED lights puts me in ZTE Handset Diagnostic Interface mode (DFU), just the same as plugging the USB in while up & down are pressed does.

This is also known as Download mode - https://sites.google.com/site/zteopenfirmware/download-mode
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] aPexalpha:
[Again]

Sorry to keep asking. But could someone post the stock boot.img and recovery.img for the B09 model? (Chinese?)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] don.peugot:
Hey tenfar, thanks for your great work. Do you have any news on a potential root for EU/HK versions on B03? (EU got an update recently). Also, is root persistent through system updates?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] KyJelly69:
How do you "pres both power buttons but not the power."?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] stl-soldier:
He meant press both Volume buttons, but not Power...
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] peramikic:
Yup, let me fix that

---------- Post added at 10:31 AM ---------- Previous post was at 10:24 AM ----------

I tried it, doesn't work even on B20, command is not recognized and the regular reboot doesn't actually reboot the device, seems locked BL will ignore all commands.

It's that dload mode key detection in B02 aboot...i wonder if there is another key sequence for fastboot and edl then
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] regenwurm16:
I tried to get into fastboot with your key combo but it did nothing. Just showing the ZTE logo for a sec, notice there's no boot image and then switch to download mode.

I actually downloaded the "ZTE handset diagnostic interface(dfu)" driver and device manager installed it just fine like it should when I pointed him to the directory where the driver files are(which it never did before). I also tried this NandDL for firefox flashing program and it recognized the device/interface, only problem is it needs two files, partition.mbn and partition_zte.mbn.

So if maybe one of you geniuses could create these files similar to the ones from the ZTE open firmware it may work this way for the EU devices.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] peramikic:
Hmmm, that programming file is for a MSM7x series SoC so i would be surprised if it worked at all even with above mbn files, which again would need to come from ZTE. I think this is their version of QDLoader but using that same DFU driver

Can you get into the FTM mode (Vol Down + Power) if yes, plug into usb and see if you get adb interface or something else
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] regenwurm16:
thanks for your ongoing help but sadly I'm not able to access any other mode than the download mode because (as far as I can tell) the phone blocks every other possible key combo (especially the ones involving the power button) but the download mode combo.

If I restart the phone and press any combination the phone just ignores it, flashes the red led, vibrates, shows the ZTE logo, then goes black with persistent red led and going into download mode.

I will just return it on Saturday. I ordered it on amazon aswell, it's been delivered on Tuesday and its even cheaper by 30€ due to the preordering cheapest price guarantee so I'm keeping the amazon one and hopefully ZTE let's us unlock the bootloader (or at least for Germany) and I can get fully happy with this phone.

Do you know when/if tenfar plans on signing the B03 boot.img from EU version?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] strifej:
Any magic steps in between or specific order? Getting root had various steps like boot, go to recovery, factory reset, flash recovery, etc.

Can I flash boot and recovery (one after each other) then just reboot after flashing both?

Thx
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] AllAboutAndroids:
Worked like a charm. Thanks OP and the rest of the gang making this possible :)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] billy_boolean:
Is it working for the 2017G B03 ?

Thanks
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Guido83:
I am in the same position now, did you manage to solve it somehow?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Lutschie:
Yeah, would also like to know that. Root is the only thing (except for bootloader, of course) I miss right now for the 2017G B03. Thanks for your support (;
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] troy5890:
This will wipe internal storage, cache, data, etc right? Really want to keep my data from internal and data when rooting
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Unjustified Dev:
Unlocking your bootloader will wipe your internal storage the data partition entirely. This guide is for gaining root without unlocking the bootloader.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] troy5890:
Great, thank you for informing me. But I would like to know if the method to getting root without unlocking the bootloader will erase all the data and internal storage?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Unjustified Dev:
It won't
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] troy5890:
That's the best news I've heard today, thank you kind sir!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] hardspartan360:
i'm on B03, the backup program works like a charm. TWRP is working. I didn't try the root thing because right now i only want to try the unlocking of the bootloader but i report back if i can.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Guido83:
Hey guys I hope someone can help me out.

I have followed the instruction in OP and everything was fine until booting to TWRP (a2017G). In recovery I just tried to update twrp version to 3.0.2-2 but now when I attempt to enter recovery mode, the screen remains black.

Booting the phone normally results in a passwort prompt, but I have never set a password.

Is there any way to fix the phone? Pressing vol+ and vol- while plug-in the usb makes the phone going to that UDF download mode but not to EDL mode.

EDIT:

Finally I have found the solution. For all users of a2017G its quite simple to solve that edl issue.

Just boot your phone to the FKM mode by pressing vol down and power. You will see a white logo and from there you are able to send ADB commands. just type "adb reboot edl" and you are in.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] strifej:
I posted this in the other root method (unlocked bootloader) by Draken, but if anyone wants to try it may work too.

If you have the TWRP encrypted problem but don't want to reflash everything, you can try doing a factory wipe, then format data, then format internal. During the phone setup, don't setup fingerprint or pin or anything. Leave it swipe only. Wait a few min after getting to launcher, then reboot into twrp and see if it works.

Obviously, you lose all your data! but you don't have to go through the hassle of reading/understanding the other method and you get similar results.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] regenwurm16:
Hi @tenfar

here's the link to the B03 update for A2017G version of the phone http://www.ztedevice.com/support/detail?id=9824F5AD299B49D8A2EE4227CFB0DB8A in case you still need it for the boot image.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] manu7irl:
http://d-h.st/dgWW

Flash this recovery with the [MENTION=540283]tenfar[/MENTION] tool, it will bootup into twrp.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] awsomjgp:
What is wrong? What do I need to do?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] troy5890:
Says it's an heurtic virus on Norton. Should I continue?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Abiram26:
Both Windows Defender and Google Chrome report axon7backup.zip and axon7root.zip as virusses... :|
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] kouller:
Hi i got a A2017g & i tried to restore my boot & recovery img (backup done with axon7backup.exe) using this command : "axon7root.exe -p 9 -b -r"

After rebooting, my devices just flash ZTE logo for 1 secs & goes to black screen and the power led stay red

I tried every combinaison of volume buttons (Up, Down, Up+Down) while booting but i can't get in bootloader nor in FKM mode . . .)

My windows recognize my device as "Handset Diagnostic Interface(DFU) (COM10)"

When i try to launch "axon7root.exe -p 10 -b -r" i got error 9 Horse is dead

Of course, adb is not working in this state so i can't do "adb reboot edl"

Any idea how to unbrick this ?

thks :)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Lutschie:
i had the same problem.

boot your phone to the FKM mode by pressing vol down and power. You will see a white logo. from there you can run adb and go to edl mode.

try to flash the boot.img from the B03 system dump or any other B03 stock boot.img. It did the trick for me

if you have TWRP you can also flash boot.img through it :good:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] kouller:
Thks for your answer but i can't access FKM mode :(

When i press vol down + Power, i see ZTE logo flash for 1 secs & black screen . . . no white logo !

This morning the red led was shutdown & i tried to plug USB cable while pressing down button & i still get ZTE logo for 1 secs + Black screen . . . .

I tried to plug it in another computer & i see QUSB_BULK in other peripheric.

Any other clue ?

Regards,
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] XblackdemonX:
Does this method to root without unlocking bootloader still works on B27?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] corpdecker:
And a similar question, what would happen if already rooted like this and an OTA update was attempted to B27 ?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] XblackdemonX:
I just tried and it doesn't work. If you have TWRP installed, it will boot to TWRP and stay there. If you flash stock recovery before the update, it will start to install and it will fail. The phone will reboot to Android after.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] corpdecker:
Thanks for the info. I checked out the updater script in the update file and it appears a lot of the steps could be done with some reckless abandon to force the update, mostly binary diff patches

4343240 12 -rw-r--r-- 1 decker users 11588 Mar 8 2011 ./META-INF/com/google/android/updater-script

There are a couple lines involving the boot and recovery images, I imagine anything we flash via TWRP would strip those out:

apply_patch_check("EMMC:/dev/block/bootdevice/by-name/boot:45946154:b5154bbd9bf32de3d1e2a287df025a4....

apply_patch_check("EMMC:/dev/block/bootdevice/by-name/recovery:44545326:5ce0d08c1e4efdaf65879574d746....

I'd attempt to modify this stuff but I'm not entirely sure what I'm doing, so I'm opting to see what someone else does and learn from that instead of bricking my phone ten ways to the twelfth of never :silly:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
I went ahead and updated my locked / unrooted B20 to B27 and pulled the same files from B27 that I pulled from B20. Not sure if they're all necessary, but if [MENTION=540283]tenfar[/MENTION] needs them, they're here: https://mega.nz/#F!6YsTVZqC!7THrXFGOhIH_1eCgCnxqbA

I've updated my thread (http://xdaforums.com/axon-7/development/untouched-b20-boot-recovery-files-t3443818) and asked a mod to change the title to reflect the updated content.

Note: there's 10GB of files to be updated (most of which is the DD system.img and TWRP backup of system), so it's going to be another couple of hours before that's done. I've put a note in the OP of the thread to that effect and I'll remove it once they're all done. B27 stock recovery and boot are up there now, though, in case they're needed.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] XblackdemonX:
You are the man!!! Thanks a lot!