yashsingh1/xdaforums huggingface dataset:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Scandiacus:
Is there any way to revert everything back to factory stock? I rooted my device following OP's steps and my bootloader remained locked.

Currently, my A2017G phone has TWRP installed with bootloader locked, I wish to set everything back to factory default.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] kw69747:
is there a way to root without adb? i fried my video card on my pcby not securing hard drive bracket and girlfriend moved the damn tower while running. i got this phone an hour ago and i Need Xposed!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] lachdanan:
Hi I just want to use substratum. I updated to the latest axon 7 update last week. DO I have to wait for these files to be released?

When I root the device, will all my data, text, chats stay as is?

Thanks in advance.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] marcus.linkenbach:
1. You can't use substratum with stock ROM.

2. Your device will be as new. So everything is gone after “unlock bootloader“
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] lachdanan:
thanks marcus I see. So I have to use something like lineage or CM? I thought once you have root access substratum can work on the device.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Choose an username...:
Substratum works if you have root and if the ROM is compatible with it. And the stock ROM is so midified that it's nowhere near compatible. If you want to use Substratum you'll need to use a custom ROM like RR, Nuclea, or one of those, but not LOS as it lacks the OMS framework (it's barebones)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] summerf:
I am stuck in DFU but I managed to save the stock recovery. Is there anything I can do from here?

For some reason, I can't sideload zip files over 2GB and sdcard flash says "sorry, you can't use sdcard".

Tried flashing a couple of BootStack zip files but got "footer is wrong" every time.

Any suggestions?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] doorgoo:
Warning virus

Just downloaded the software to flash my replacement Axon 7 before returning my broken one to stock, and my PC is now completely infected. Most likely will have to wipe the hard drive, it's THAT BAD. No anti rootkits work. DO NOT INSTALL.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] CASEY_K:
For anyone having trouble with links and viruses

This guide has all the tools/images uploaded to mega.

Probably won't get any viruses from here. Be sure to thank him!!

https://xdaforums.com/axon-7/development/axon-7-chinese-stock-roms-t3436817
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] AllenTrobaugh:
Need working kingroot
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Choose an username...:
what
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] dprimic:
Not for rootin Axon 7
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Boristheliar:
ive just bought a zte axon 2017G from china. I followed this instruction 'Step 2:Shut down your phone, hold volume down + volume up ,then plug your phone with USB cable. or you can use adb' and its bricked my phone. HELP!!!

Is there anyway i can get it to boot because right now its doing nothing. it was the only thing i did everything is as new.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] nonicktoday:
You should have a look at EDL tool. Just search for Axon7 EDL.

A good starting point could be here:

https://xdaforums.com/t/edl-a2017-a2017u-emergency-dl-mode-twrp-unlock-upgrade.3553514/
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] r3xx3r:
No, I had latest the B20 system on my phone before doing any of this. In Settings - About the Build number ended in B20
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
so the boot.img i got from idlekernel.com is a newer version？
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tdgillihan:
So, couldn't we just sideload the us b20 and then use your program?

Always thank those who are helpful...and just ignore those who aren't.

---------- Post added at 08:02 PM ---------- Previous post was at 08:00 PM ----------

Which boot img did you flash? The one for bl unlock?

Always thank those who are helpful...and just ignore those who aren't.

---------- Post added at 08:15 PM ---------- Previous post was at 08:02 PM ----------

Try fastboot oem unlock and see if you get the bl unlock prompt. Don't follow the prompt unless you want to unlock it. It will wipe your data.

Always thank those who are helpful...and just ignore those who aren't.

---------- Post added at 08:18 PM ---------- Previous post was at 08:15 PM ----------

I don't know if that was dumped before or after he unlocked his bootloader.

Always thank those who are helpful...and just ignore those who aren't.

---------- Post added at 08:25 PM ---------- Previous post was at 08:18 PM ----------

Is this the one you need [MENTION=540283]tenfar[/MENTION]?

https://idlekernel.com/flash-tools/firmware/ailsa_ii_A2017U//system.img

Always thank those who are helpful...and just ignore those who aren't.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] peramikic:
I am sure that the boot.img and system are from B20_Boot, which is different from B20 so ther would be a missmatch between system images on phone and boot.img in OP. Here is a block level copy of system, works in TWRP (system image) from B20_boot after BL unlock. It should match that boot.img

http://xdaforums.com/showpost.php?p=68248798&postcount=53

Download the file that swesh posted, uzip and put on the SD. Its a TWRP System Image so you cane restore with TWRP directly
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
i have uploaded the latest tools which can dump boot and recovery form device. and now we needed someone to dump the file and share it.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] peramikic:
So it will dump without altering any partition?
[MENTION=3044858]DrakenFX[/MENTION] do you have anyone lined up who has not yet modded the phone?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
yes,it just dump partitions.from phones.it will not change anything on your phone.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Jose-MXL:
[MENTION=3044858]DrakenFX[/MENTION] [MENTION=540283]tenfar[/MENTION] [MENTION=1340661]peramikic[/MENTION]

I'm getting my phone on Monday 08/22, what do you guys need, I'm up to pulling partitions and trying out things to get us a stock image
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tdgillihan:
So, I think the first wave (golds) were b18 and the second wave (grays) are b20.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] peramikic:
boot, recovery and TWRP system image would be the minimum, maybe even /system as well. More partitions we can dump the better, since BL unlock might perform some changes to other partitions, but with that tenfar can make a consistent root kit on B20(vanilla) base. The TWRP system image is block level and intended for return to OTA stock condition, it should keep the proper hash. Of course we saw that in B18 to B20 patch, whole bunch of partitions were patched so they might be need as well in some circumstance. The B20_Boot only hits boot,recovery, system and fastboot(although that one is available as full image in every package so far)

---------- Post added at 09:27 PM ---------- Previous post was at 09:27 PM ----------

Correct, looks like B20's were shipped on gray models, probably on 9/9 Gold models as well
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] r3xx3r:
I downloaded and unzipped both files to my phone and microsd card. It doesn't show up in TWRP under Restore or Install Image. I can't restore from this file. Do I need to rename it or something?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] peramikic:
The name of the file should be system_image.emmc.win , it's a TWRP system image backup, so TWRP should be able to see it. It should also be flashable by fastboot. You might want to try a different version of fastboot from here, it might work better

http://xdaforums.com/showthread.php?t=2317790

What is the version of TWRP that you have right now? Let's make sure it supports the system image backups, i think 2.8.7.0+ is required or even 3.0.2

[MENTION=540283]tenfar[/MENTION] can you assist on the TWRP version and feature, i noticed it was quite smaller image then the one built by [MENTION=4911249]Unjustified Dev[/MENTION]

I am kinda typing from memory here, but [MENTION=1403216]warofhero[/MENTION] did recover his system from this image so he might be able to tell you what he did exactly
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tdgillihan:
Here's the post where [MENTION=1403216]warofhero[/MENTION] described what he did:

http://xdaforums.com/showpost.php?p=68233963&postcount=34
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] TeutonJon78:
I think you need some sleep, friend. What are you referring by TWRP system image? And the unlocking OTA definitely only impacts boot, recovery, system, and fastboot. It leaves all the other partitions alone, since that's all the updater-script touches.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] peramikic:
TWRP can make a block level system image for hash consistency so that restored partition will pass OTA check. See here (also i have linked to it in my previous post, a user has already made one of B20_Boot)

http://www.androidpolice.com/2015/0...creating-ota-friendly-system-images-and-more/

And while the OTA has not touched the other partitions, we do not know that the process of unlocking the BL has not done so. So a future OTA would fail if such a partition fails it's hash check. For instance Lollipop aboot would hold state of unlocked and tampered bits, and as such would be hash inconsistent with locked/untampered one

I do need my beauty sleep though so i'll check back in the morning
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] deluxxx:
Any updates if it worked on A2017G model? Im a bit hesitant to test it on mine... :(
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rikin93:
Same, let me know if it works buddy.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] XblackdemonX:
I just tested it with axon7backup.exe -D and it just flashed the boot.img and recovery.img to my phone. Now I have no backup of anything... i'm screwed.

EDIT: Now i'm back into Android and my WiFi doesn't work anymore. It says my MAC address is: 02:00:00:00:00:00
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] r3xx3r:
Thank you for posting this. I followed the steps he took and TWRP still didnt see the system recovery image. So I made a backup of System, and realized the name of the file was wrong. The backup of System that TWRP made was named system.ext4.win. Unfortunately it still doesn't work. I am able to see the option to restore the system and it sees that the backup is just over 6GB, but it finishes it 2 seconds and doesn't actually restore any system. I have tried downloading and using a fresh copy of the system recovery image and it still doesn't work.

Also, I am not bootloader unlocked. I tried unlocked the bootloader following DrakenFX instructions as best I could but it doesn't seem to work for me in TWRP and since I didn't backup the stock recovery I can't get back to that to try it.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
US version? My phone arrives today and I was planning on doing a dump so we could have stock B20 recovery, boot, and system.

You're saying the tool (the last link in the OP) overwrote your boot and recovery? What did it overwrite it with? The tool is less than 1MB and it's doesn't have a boot.img or recovery.img :confused:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] XblackdemonX:
US version yes.

I wrote axon7backup.exe -d and it said Writing boot.img and recovery.img and my phone wouldn't boot anymore so I had to really flash the boot.img and recovery.img for the phone to boot.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
what's your command? axon7backup.exe -p 4 -d

Change 4 to your port.and can you upload the log shows in the command window?

Indeed axon7backup is base on axon7root.exe it reads the parameters to determine which functions will proceed.as the picture I uploaded,when using right parameters it will backup files
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] XblackdemonX:
For some reason now it worked ...

C:\Temp>axon7backup -p 4 -d

Copyright [MENTION=540283]tenfar[/MENTION] tenfar@gmail.com

Version 1.10

Sengding the horse

Waiting the horse to alive

Connected to device, start backup

backuped boot = C:\Temp\stock_boot_backup.img

backuped recovery = C:\Temp\stock_recovery_backup.img

backup complete!

Hold Power key to reboot

Program close countdown:10 9 8 7 6 5 4 3 2 1

I think that if you put -d without the -p 4 it will flash boot.img/recovery.img
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
Yes! So read the thread carefully.and following the steps. port number4 is the default number in my program,if your port is not 4 the program will said device not found. trajectory,it seems your port number is 4.....anyway thanks for trying to help.

You will need to flash the twrp backup to make wifi working,or wait for someone to share stock b20 boot
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
So to be clear: if I run the command below when my Axon 7 arrives today, it won't overwrite anything, it will ONLY back it up? No changes will be made to the phone?

axon7backup -p 4 -d

Where "4" is the COM port (which I'll check before running the command).
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] KyJelly69:
here is stock recovery

https://www.dropbox.com/s/h929mct86lrkum0/stock_recovery_backup.img?dl=0

Any way to make your app do a full system backup?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
yes.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
it's a little complicated,too many partitions.so I will not make that program. Just backup using twrp will work as you need.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
That's B20 for the US version?

So...do we need anything else? Boot?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] KyJelly69:
does your new app work for all phone regions? I only see one new one.

I want to root today. I have not unlocked my bootloader. Does this work for b20 and b20bl or just one?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
Need b20 stock boot.img so that i can make a root. It seems the b 20 i upload is b20bl.and since it's Friday night now in China ,I am not able to access my computer before Monday. So I can't make a rooted boot img until I have access my computer.

So can you confirm that backup function works?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] KyJelly69:
Yes. B20 US locked bootloader

---------- Post added at 10:03 AM ---------- Previous post was at 10:02 AM ----------

You may want to edit the OP to state it's for b20boot only.

your app successfully backed up my stock boot and recovery. thank you
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
can you upload boot.img ？ there is a confirm form [MENTION=7633834]Cricius[/MENTION] working for a2017g too
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] KyJelly69:
stock boot image:

https://www.dropbox.com/s/7bj0py7r7zywyd1/stock_boot_backup.img?dl=0

I thought we already had everything except stock recovery.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tdgillihan:
Did you see this [MENTION=3564235]r3xx3r[/MENTION]?

here is stock recovery<br />

https://www.dropbox.com/s/h929mct86lrkum0/stock_recovery_backup.img?dl=0<br />

Any way to make your app do a full system backup?

Always thank those who are helpful...and just ignore those who aren't.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] r3xx3r:
I did see that thank you. I am actually getting a refund for my phone and I am going to buy the Oneplus 3 instead
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tdgillihan:
Oh man, sorry to hear that. You worked so hard to get it going! I really admired your patience and fortitude. That's a great phone too though and it'll be a lot easier for you play with. Have fun and best of luck to you.

Always thank those who are helpful...and just ignore those who aren't.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] TeutonJon78:
That's part of my point -- by looking at the updater-scripts in the BL unlock OTA, you CAN tell exactly what it touches -- only fastboot, boot, recovery, and system. Everything else is left untouched.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] peramikic:
The OTA does not unlock the BL, it only make it unlockable. running fastboot OEM unlock is what actually marks it unlocked and it the process might alter other partitions, so we do not know what is altered by unlocking until we can compare the dumps between the two. which is what i wrote in my previous post as well, not sure why we are having this back and forth. In any case it SOP to dump everything you can from STOCK rom, we can sort out what is necessary later. It will definitely be easier to go back to stock then instead of having the MOTO style unlock tied to IMEI which we won't be able to circumvent ;) Didn't want to raise this but i ahve to ask, but for the love of god, why would you want that

---------- Post added at 10:45 AM ---------- Previous post was at 10:22 AM ----------

On the stock side, we really have nothing for B20, it was all B20_boot...until now, thanks for the dumps. Any chance you could dump the /system as well. the /boot will need to mach /system in case anyone want's to revert back to B20 from B20_Boot.

---------- Post added at 10:51 AM ---------- Previous post was at 10:45 AM ----------

[MENTION=540283]tenfar[/MENTION],

What is the version of TWRP you use in the recovery.img? is it 3.x or earlier. For some reason [MENTION=3564235]r3xx3r[/MENTION] could not use the system image from the 3.0.x recovery by another user
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] KyJelly69:
I have already started using it for daily use I dont want to default it. I will if I must but not until Monday.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] XblackdemonX:
It is TWRP 3.0.2.0-B10
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] jogy2:
I have flashed both (Recovery and boot) to my A2017G and its worked,

but the TWRP ask me for a Password . Is this normal ?

And Supersu say i must do a update of the su binary. Is it possible ? I try it by hand, but the root explorer dont work.

All apps that need su dont work :(

Edit: su binary is in /sbin/

Edit 2: Now it works. The problem was we cant use: "a superuser manager"

we must use this one :D

https://play.google.com/store/apps/d...uperuser&hl=en"

I have changed the su binary with the newest 2.76 by hand. It work Great
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Gachmuret:
If you didn't alter anything in your system partition trough root access it doesn't matter, all the personal stuff is in data partition, not in system one... only system is needed here ;)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] naix89:
Just FYI, I tried to root my phone using the tool but my wifi stopped working. I am on US version.

I flashed back the original boot img and everything is okay now.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
With an unlocked bootloader?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] djona12:
Did you try to install TWRP with this tool then flash root the usual way usual with TWRP ?

I don't have the phone yet, (will be uropean version) but so far, that's what i intend to do when i get it.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
[MENTION=540283]tenfar[/MENTION]: I am currently on B20 with a locked bootloader. The file you have in the OP is for unlocked (B20_Boot) only, right? So I shouldn't use it to flash TWRP and pull the system image?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] naix89:
No on B20 Because original post said B20

TWRP installed fine using the tool and I am still on TWRP. Tool only installs the framework for root( plus recovery and boot based on option), you need to install the SU from play store (posted in the 1st post). Normal superSU by chainfire doesn't work.

I think that's correct, he modified his post. I tried to use it on B20. I don't think new tool can pull the system image only recovery and boot.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Az Biker:
*** Thread Cleaned ***

Let's observe the XDA Rules, stay on topic, and leave the name calling and taunting for the middle school playgrounds. This is a courtesy warning, and it will be the only one. Your cooperation is appreciated.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
I think the OP said it would be a lot of work to get his tool to pull the system, but TWRP can do it. I'll wait for them to chime in, maybe provide a B20 (locked) version again. Then I'll do the system pull by installing his TWRP using his tool.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] naix89:
Hmm not sure you can do that ....TWRP wasn't able to read because of encryption.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] djona12:
I meant only use the tool to change the recovery, nothing else. And then install Supers binary (version 2.65 is reported working). This way, you don't have to mess with boot.img and probably won't loose wifi.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] naix89:
Yes that works
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] dennis96411:
So for the time being, this can't be used to root an Axon with locked bootloader? Guess I'll just dump boot and recovery for the time being.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
you can use the tool ,flash twrp only,then boot into recovery,in the first screen select keep system read only. Then format data,Then backup system as image,then pull it using adb or mtp mode,then flash back to stock recovery.your system will not intact.only impact is you will lose your data,since your device is new.it should be ok.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
I don't think usually way will work,since there were selinux enabled in stock boot,and the sepolicy must be patched so that su can get root.

But maybe Chianfire 's superuser can provide boot-less root.it seems on latest android release,boot-less root is not working anymore? Correct me if I am wrong.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] aPexalpha:
Chinese, b07.

Root works like a charm. Finally!

Deleted one too many ZTE apps though. Deleted the MI assistant but it seems the app is just a front because the system still prevents some apps to auto startup, but I need greenify to manage that stuff.

Trying to restore it with titanium back up doesn't work. Maybe need to go back to factory again.

Also: Ada way can't edit the host file??? I found it in /etc/hosts but Ada way, with root permission says it cannot change it. Weird. Anyone else tried it?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] tenfar:
yes,it seems there is some service that will mount the system to ro mode even you have root. I dont know if it is because of kernel modules or system services. I found that it will call /system/bin/touch to remount system to ro. Will look into it when i have time.by the moment,if you want to change something in system,you can boot into TWRP recovery to do it
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Gachmuret:
Did you already check this thread: maybe it has a solution for you: http://xdaforums.com/axon-7/help/titanium-backup-adaway-t3440117/page1

Check page 3
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] benlenspace:
hello, can i install a2017u rom in my zte axon 7 a2017 chinese rom?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] rczrider:
Thanks for creating this tool, [MENTION=540283]tenfar[/MENTION]!

I was able to do a full dump (boot, recovery, system) for locked B20 (US) and I'm in the process of uploading those now.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] XblackdemonX:
Please PM me when I can download your files. I would greatly appreciate it!