yashsingh1/xdaforums huggingface dataset:
[ZTE Axon 7 Mini Guides, News, & Discussion] jreed1096:
I've just tried to flash the boot and system zips with TWRP. The boot stack file works, but when I tried to flash the system files (Both the one in OP and nopatch), the terminal says "Cannot read <file name>". Any recommendations?
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
Thanks, I will look at these on Monday. In the meantime, you can use this procedure:

1. Unzip the nopatch zip. You will find boot.img and system.img files.

2. Boot phone into TWRP. Make sure you have data decrypted.

3. Push files to phone (use /data/media because they are too big for /tmp):

adb push boot.img /data/media/boot.img

adb push system.img /data/media/system.img​

4. Write the data:

adb shell dd if=/data/media/boot.img of=/dev/block/bootdevice/by-name/boot

adb shell dd if=/data/media/system.img of=/dev/block/bootdevice/by-name/system​

5. If you are coming from non-stock, wipe data.

6. Reboot and done!
[ZTE Axon 7 Mini Guides, News, & Discussion] jreed1096:
This didn't work for me. I followed each step, but it got stuck on the ZTE logo on reboot.
[ZTE Axon 7 Mini Guides, News, & Discussion] ferlagod:
It happened to me the same and I do not recognize the PC
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
FYI... I went back to stock to investigate the QR code reading issue. The original US stocksystem zip did not work. I deleted it and replaced it with the nopatch zip. This is verified to work.
[ZTE Axon 7 Mini Guides, News, & Discussion] birrez:
Can u prepare a no patch.zip also for ue model??
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
Not really. The system patch files came from an OTA zip. I don't have a way to construct the system image, since I do not have an EU device.

I suppose I could install the EU version on my device and then capture the image... maybe later when I get more time.
[ZTE Axon 7 Mini Guides, News, & Discussion] Alvin4500:
So basically, you replaced the zip for stocksystem so now going back to stock sould work now?:confused:

---------- Post added at 11:23 PM ---------- Previous post was at 11:18 PM ----------

And also where is the no patch zip there is a link for the no patch zip but the link is broken because all i see is a 404
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
Yes going back to stock works, at least on the US model.

I deleted the nopatch zip, use the link in the OP, it works.
[ZTE Axon 7 Mini Guides, News, & Discussion] Alvin4500:
so i just follow the twrp method right? Just checkin':p

If so, I will try this method today and i will report back on it.
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
Yes just as in the OP. Obviously you don't need to flash the boot stack. But it won't hurt either.
[ZTE Axon 7 Mini Guides, News, & Discussion] Alvin4500:
Also do future otas work with this stock firmware?
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
The files are copies of the exact bits from stock, and will behave exactly as stock did, including otas.
[ZTE Axon 7 Mini Guides, News, & Discussion] Alvin4500:
It worked! Just that if i flash the bootstack, will that remove the annoying "your device is corrupted" message on boot?

---------- Post added at 07:44 PM ---------- Previous post was at 07:17 PM ----------

EDIT: The bootstack is the culprit that causes the phone to get stuck on the ZTE logo
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
So you are stuck on the zte logo now? Or can you get into recovery?

Which boot stack did you flash, US or EU?

What region is your phone?
[ZTE Axon 7 Mini Guides, News, & Discussion] Alvin4500:
So, for those of you who want to get back to stock, you can but DO NOT flash the bootstack otherwise if you flash the bootstack the phone will get stuck on the ZTE logo, also the device is corrupted message will not go away, but that is not a huge problem. So the bootstack needs to be fixed, everything else is fine. The bootstack is what will remove the corrupted message so tdm please fix it. Thanks! Also I can get to recovery so i will flash stock again but without the bootstack.

---------- Post added at 07:51 PM ---------- Previous post was at 07:50 PM ----------

WIthout the bootstack, the phone will boot up fine but with the bootstack, the phone will get stuck on the ZTE logo.

I am using the US version.

---------- Post added at 07:51 PM ---------- Previous post was at 07:51 PM ----------

WIthout the bootstack, the phone will boot up fine but with the bootstack, the phone will get stuck on the ZTE logo.

I am using the US version.

---------- Post added at 07:54 PM ---------- Previous post was at 07:51 PM ----------

Again, I can get to recovery with bootstack flashed but the phone will get stuck on the ZTE logo when normally booting.

I am using the US version

---------- Post added at 07:59 PM ---------- Previous post was at 07:54 PM ----------

So yeah, bootstack needs to be fixed, That's all. Once the bootstack is fixed, it will now be completely possible to go back to stock with a locked bootloader and no corrupted messages on boot so that people can get their warranty back.
[ZTE Axon 7 Mini Guides, News, & Discussion] Alvin4500:
With bootstack (stuck on logo) one with ZTE boot

Without bootstack (boots fine but still has corrupted message on boot) one with axon on screen
[ZTE Axon 7 Mini Guides, News, & Discussion] Detenator:
Is there an archive for stock images for the 6.0.1 version of Android? My mini came with that version and I have not found one that works. (Can't update it anymore because using the "official" unlocker patch went wrong and now I'm stuck with only DFU or fastboot modes.)
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
Why did you flash the unlock package on 6.0? The OP for the unlock clearly states that it is only for devices running 7.1.1 b14 firmware.

I've long since deleted my 6.0 backup files.

Realize that you are in a very precarious situation here. In order to avoid a brick, you will need to do this procedure exactly as described. And I'm assuming that you have a US model.

Download B2017G-US-v1.2.0-b14-bootstack.zip from my server. Unzip it. You will find all the firmware files at the root of the zip. Also find the edify script, META-INF/com/google/android/updater-script. Read it. See what it's doing. Note the files are not necessarily named exactly according to the partition names, eg. NON-HLOS.bin is flashed to the modem partition. You need to flash all of these files using fastboot, all in one session, sequentially:

fastboot flash ddr ddr.mbn

fastboot flash dsp adspso.bin

fastboot flash splash splash.img

... etc ...

fastboot flash cmnlib cmnlib.mbn

Now you should have 7.1.1 b14 firmware. Next download TWRP from my server and flash it:

fastboot flash recovery tulip-twrp-7.1-r1.img

Done. Now you should have EDL and TWRP back. From there you can install stock using the stocksystem zip or you can flash a custom ROM.

Good luck.
[ZTE Axon 7 Mini Guides, News, & Discussion] jose makalolot:
Can someone confirm if the stock US firmware will work on my phone?
[ZTE Axon 7 Mini Guides, News, & Discussion] stevegtrlmk:
Mine improved greatly on nougat light to mid user fb few phone calls etc getting 30hrs + between charges
[ZTE Axon 7 Mini Guides, News, & Discussion] NewbieGamingYT:
I Downloaded, Flashed in TWRP, and it didn't boot up, it just stayed at the ZTE Powered By Android Screen!!
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
Did you get it fixed?
[ZTE Axon 7 Mini Guides, News, & Discussion] Redwan Shishko:
Hello

Hello tdm, I have suffered the same problem and so I followed the instructions provided here (the fastboot flashing of the bootstack files) and this is what I get with the first file:

C:\adb>fastboot flash ddr ddr.mbn

target reported max download size of 1073741824 bytes

sending 'ddr' (32 KB)...

OKAY [ 0.004s]

writing 'ddr'...

FAILED (remote: unknown command)

finished. total time: 0.008s

What should I do ?
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
Can you enter EDL?
[ZTE Axon 7 Mini Guides, News, & Discussion] Redwan Shishko:
Yes, I am able to enter EDL mode. What's your advice?
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
Use tuliptool to flash TWRP. Then use TWRP to recover your device.
[ZTE Axon 7 Mini Guides, News, & Discussion] Redwan Shishko:
Hello

I have already flashed it, and did that successfully.

It seems that the device actually logs into recovery when i look for it via adb devices command (showing device name or number and Recovery as the mode in which it is in) but the phone itself shows nothing but the ZTE powered by Android Screen! I even have access to the device's internal memory showing two folders, of which the TWRP folder in it, but nothing is showing in the folder. It's like I have a partial access to the recovery section but with no communication interface via the phone screen. I can also log into fastboot and edl easily. Is there anything I can do to fix the problem? any flashable recovery images that would work with Android 6.0 (since it was the last version installed on the device..) ?
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
I have never seen such an issue, so I'm afraid that I cannot recommend a solution. Sorry. :/
[ZTE Axon 7 Mini Guides, News, & Discussion] nten2:
can try through sideload to flash lineage?
[ZTE Axon 7 Mini Guides, News, & Discussion] Redwan Shishko:
I can't log into the sideload mode from the phone itself since i don't have any access to the Recovery options.

But, I tried flashing ROMs via Fastboot (tried the AKOP and the Resurrection Remix to be specific) but they fail to run, with a message stating no androidinfo.txt or something like this.. I even tried flashing the official firmware zip files, it says that access is denied.

I'll make screen shots of these attempts and I'll post them here later today.

Is there a command that I can use from fastboot or adb to enter the sideload mode?
[ZTE Axon 7 Mini Guides, News, & Discussion] nten2:
I do not understand, can you enter edl?
[ZTE Axon 7 Mini Guides, News, & Discussion] Redwan Shishko:
Yes I can enter edl.. What should I do?
[ZTE Axon 7 Mini Guides, News, & Discussion] nten2:
you can try again through the tuliptool TWRP, and then move on, or flashing the lineage, or stock.
[ZTE Axon 7 Mini Guides, News, & Discussion] Redwan Shishko:
The thing is, even after flashing the TWRP recovery image, I can't seem to load it. No matter how many times I tried with button combination, It just stops at the ZTE powered by Android Screen and then after few minutes the screen turns black, but if I hit the power button once, the screen becomes white, and I can turn it back to black again by doing the same thing. It's as if I'm locking and locking the screen with power button like you'd normally do in a normally working phone.

Why isn't the TWRP working after a successful flash through tuliptool and how to overcome this problem? Bear in mind, I have access to fastboot, adb and edl so all suggestions are welcome :)
[ZTE Axon 7 Mini Guides, News, & Discussion] prosmart:
I found same problem, after twrp flashing screen went white. I couldn't flash stock recovery.

The solution is to install twrp, wait till screen becomes white (try press butttons to see white screen - now it is in recovery mode) and then enter adb on PC, restart in sideload mode (adb restart sideload) and flash original bootstack (adb sideload B2017G-US-v1.2.0-b14-bootstack.zip). Restart phone with VOL+ (to enter recovery) and twrp works!
[ZTE Axon 7 Mini Guides, News, & Discussion] farukkahveci:
please help me?

i have us zte axon 7 mini, i have been trying a lot of methods to recovery my device. at last i loaded twrp and i flashed eu image files (bootstack,stock systm and recovery) then rebooted devices . bu it started eith zte screen only and i have tried to enter edl mode using press both volme up and down with power button but device always start again and also i tried to enter recovery then i succeseded to enter but i couldnt flash anything ... adb sideload didnt work , sd card also didnt see anything... what can i do? i know how can i load twrp with tuliptool in edl mode but i couldnt enter edl mode.... how can i ente edl mode,is there any differences between eu rom and us mode for entering edl mode ( touch combinations) please help me....

---------- Post added at 12:51 PM ---------- Previous post was at 12:40 PM ----------

i have us zte axon 7 mini, i have been trying a lot of methods to recovery my device. at last i loaded twrp and i flashed eu image files (bootstack,stock systm and recovery) then rebooted devices . bu it started eith zte screen only and i have tried to enter edl mode using press both volme up and down with power button but device always start again and also i tried to enter recovery then i succeseded to enter but i couldnt flash anything ... adb sideload didnt work , sd card also didnt see anything... what can i do? i know how can i load twrp with tuliptool in edl mode but i couldnt enter edl mode.... how can i ente edl mode,is there any differences between eu rom and us mode for entering edl mode ( touch combinations) please help me....
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
Your device is bricked. The EU boot stack does not have an EDL key combo, and stock recovery will not sideload the ota files because they are too large (over 2gb). You will need to disassemble the device to recover it.

You are at least the second person to do this. I'm removing the stock recovery files so that nobody else can get stuck in this situation.
[ZTE Axon 7 Mini Guides, News, & Discussion] nten2:
do not delete, just at the end you need to flash the modified kernel, and everything will be fine.
[ZTE Axon 7 Mini Guides, News, & Discussion] Theared:
tdm, how to connect with fastboot in this situation? When I connect to computer via recovery and I check with adb I have "unauthorized" device. When I choose "Apply update from adb" I have "sideload" device. I dont see any else option.
[ZTE Axon 7 Mini Guides, News, & Discussion] rsk0416:
I know how to escape

1. Download Malaysian version

AXON 7 mini(B2017G) SD card software package(340580B1298ZTE B2017GV1.2.0B12)N version

http://www.ztedevice.com/support/detail?id=C356F0B365C14CB6838E2664A1BED299

2. Apply update from SD card with Stock Recovery (MiFavor)

3. Fash TWRP

4. Fash sock firmware

https://xdaforums.com/axon-7-mini/development/firmware-stock-firmware-t3696538
[ZTE Axon 7 Mini Guides, News, & Discussion] Theared:
Thank You for Your advise! Unlucky I have a problem with install update with "Apply update from SD card". When i'm doing it i have a message:

E:footer is wrong
E:signature verification failed
E;open file /cache/fota/error_code error errno = 2
Installation aborted.

Do You have some resolution for this? Thanks.
[ZTE Axon 7 Mini Guides, News, & Discussion] rsk0416:
stock recovery?

Unpacked downloaded file?

I'm sorry, I do not know.
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
Stock recovery will only flash official ZTE zip files.
[ZTE Axon 7 Mini Guides, News, & Discussion] Theared:
I try flash Malaysian zip from http://www.ztedevice.com/ like rsk0416 said. Isn't it a official ZTE zip files?
[ZTE Axon 7 Mini Guides, News, & Discussion] farukkahveci:
how can i find this solution method? can you help me?
[ZTE Axon 7 Mini Guides, News, & Discussion] nten2:
what version of the firmware are you interested in
[ZTE Axon 7 Mini Guides, News, & Discussion] farukkahveci:
hi. i have a solution but again find a differen problem..

to enter edl, i made an edl cable by learning youtube. then i flashed twrp with tuliptool. but i also tried to flash marshmallow update then twrp erased... i treid again flash twrp again but i experienced again white screen twrp... i tried to enter sideload for load bootstack but i cant.. i write "adb reboot sideload" but device restart recovery again. what can i do? how can flash twrp without problem . why devices cant enter sideload )

i also ask how can i find nopatch.zip (you sad that: I deleted the nopatch zip, use the link in the OP, it works.) i cant find OP mean? where is OP and download link ? sorry for my questions but i a m new here...

I respect and appreciate everything you've contributed to the community.

thanks your help...

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

it is suitable both for me marshmallow or nougat?..
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
Please share the youtube link and how you made the cable. This may help others.

The nopatch zip has been renamed to B2017G-US-v1.2.0-b14-stocksystem.zip because it works. The original stocksystem zip did not work. OP means "original post", eg. the first post in this thread.

The TWRP image is built for the 7.1.1 boot stack. If you cannot see the UI, perhaps you can use the adb shell to load the boot stack. Are you familiar with using the adb shell and the "dd" command?
[ZTE Axon 7 Mini Guides, News, & Discussion] farukkahveci:
i can not share because i am new here. it can be possible after 10 post.. you can find searching "how can i make edl cabel"... i have flashed lineage now and i can use my phone after two weeks... i will share my experiences tomorrow. i am very exhasuted and i need sleep..

but i need to open diag port..

how can i diag port in my device ? do you know adb command or dial numbers...?
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
Oh, the diag port.... that's a tricky one. I did not include any of the diag compositions in the USB rc file.

I'm currently on stock because I'm trying to fix the volume down issue. I can go back to Lineage/AOKP and test diag mode when I'm done.

I just used diag mode yesterday on stock to test something. It was a bit tricky. You need root access (which is not hard) and then you need to run something like:

adb shell setprop sys.usb.config mtp,diag,diag_mdm,adb

(ZTE disabled the normal "diag,adb" on stock but left many alternatives like the above).
[ZTE Axon 7 Mini Guides, News, & Discussion] farukkahveci:
i have root access but i have tried your command and i couldnt open diag port, please can you check which comman is right?

tulip:/ # setprop sys.usb.config mtp,diag

tulip:/ # setprop sys.usb.config mtp,diag_mdm

tulip:/ # setprop sys.usb.config mtp,diag,adb
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
You need to choose one of the available USB compositions that includes diag and adb. The list can be shown like this:

grep "^on property:sys.usb.config.*diag.*adb" /init.qcom.usb.rc

It's a rather long list and I don't know what many of those compositions mean, TBH. Just choose one like eg. "mtp,diag,diag_mdm,adb".
[ZTE Axon 7 Mini Guides, News, & Discussion] farukkahveci:
firstly i thank you very much for your help..

i fixed a lot of problems and have flashed lineage rom on my device and also i have root access via supersu .. it looks good but i need to oepn diag port open in order to write imei ..

i checked commands which you wrote above .... but i couldnt open diag port... i can not find any solutions on internet ...
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
Please read my response again: "I did not include any of the diag compositions in the USB rc file."

If you need diag, wait a couple days for me to make a new lineage build, or use stock.
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
[MENTION=8854581]farukkahveci[/MENTION] just re-loaded aokp on my device and verified that diag mode works. However, you will need to append the following to init.qcom.usb.rc:

# diag
on property:sys.usb.config=diag
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 05C6
write /sys/class/android_usb/android0/idProduct 900E
write /sys/class/android_usb/android0/f_diag/clients diag
write /sys/class/android_usb/android0/functions diag
write /sys/class/android_usb/android0/enable 1
setprop sys.usb.state ${sys.usb.config}

on property:sys.usb.config=diag,adb
stop adbd
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 05C6
write /sys/class/android_usb/android0/idProduct 901D
write /sys/class/android_usb/android0/f_diag/clients diag
write /sys/class/android_usb/android0/functions diag,adb
write /sys/class/android_usb/android0/enable 1
start adbd
setprop sys.usb.state ${sys.usb.config}

This is in the initrd, which means that you need to repack your boot image.

If you are not familiar with repacking boot images, wait for the next build. I will include it.
[ZTE Axon 7 Mini Guides, News, & Discussion] farukkahveci:
Ok. i am waiting patiently..... Thank you
[ZTE Axon 7 Mini Guides, News, & Discussion] farukkahveci:
i can flash aokp on my device.. if i did it could i open diag port on aokp rom?
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
Please read my post again. Your question is answered.
[ZTE Axon 7 Mini Guides, News, & Discussion] farukkahveci:
i am sorry. and apologize for asking more question but i m new here and not familiar with this commands ..

i understand that i have to wait you include open diag port commands in lineage .

thank you..
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
FYI... I found a guide to enter EDL mode with a simple little hack:

http://en.miui.com/thread-310325-1-1.html
[ZTE Axon 7 Mini Guides, News, & Discussion] jfh936:
Hi,

Hoping someone may be able to help.

I replaced aboot with the axon_mini_unlock.zip, so I have that GUI with a few options in EDL mode. But no matter what recovery and/or boot images I try to flash, I get stuck with the 5-second boot loop (the screen showing g.co/ABH and warning about the device being unlocked). If I hit the power button during that screen, it looks like it tries to boot regularly, but the ZTE logo is, very strangely, shifted over to the right about 10 or 20%. The device then reboots back to the g.co/ABH.

I can always get back to EDL, and use fastboot to flash different images, but nothing seems to have "stuck." I've tried boot images with dm-verity on and off.

I should also mention that I was never able to get tuliptool to work properly. I tried it on a few different machines, but always got "connection timed out" errors.

I'm at a complete loss at this point. Any help would be greatly appreciated.
[ZTE Axon 7 Mini Guides, News, & Discussion] MrWhite0429:
Do you have oem unlock set on the rom?

What version of the device do you have?

What version of android are you trying to flash over?

The actual unlock zip does nothing.

Use tulip tool to flash TWRP, then flash the no verity boot. Make sure you can load into recovery and rom. Then use TWRP to flash.
[ZTE Axon 7 Mini Guides, News, & Discussion] locuter:
Hello,

ich want to go to Stock from Linage. I need the B2017G-EU-v1.2.0-b12-stockrecovery.zip but it go es to 404 File Not found.

Can someone please reupload the Recovery?

Big Thx

Gesendet von meinem ZTE B2017G mit Tapatalk
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
I removed the stock recovery images because at least two people bricked their phones with it. They disassembled their phones to fix them. I've since found an easy trick to enter EDL so I may put them back. But don't worry, stock recovery is really only useful to flash OTAs. And I done expect this device to get any more official updates.
[ZTE Axon 7 Mini Guides, News, & Discussion] locuter:
Thanks, for the fast answer [emoji846]

I installed Bootstrack and System but it Stuck on Boot. I follow the Instructions Step by Step without recovery, it doesn't work. Now I reinstalled Linage Os. [emoji53]

Gesendet von meinem ZTE B2017G mit Tapatalk
[ZTE Axon 7 Mini Guides, News, & Discussion] tdm:
You probably need the noverity boot image.
[ZTE Axon 7 Mini Guides, News, & Discussion] birrez:
My product code is P852A12 ..which version is it?? EU or us??
[ZTE Axon 7 Mini Guides, News, & Discussion] MoeKyawThu991:
Dear tdm, No Recovery

Please give a new link for recovery. In EU Version, no recovery found. Please help me. Thank you!
[ZTE Axon 7 Mini Guides, News, & Discussion] birrez:
The links are removed because whit stock recovery the phone is bricked..

Anyway stock recovery is useful because any future upgrade from ZTE..