yashsingh1/xdaforums huggingface dataset:
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] sixcherries:
Restore IMEI and Baseband

Hi demenicis,

I also followed the steps to upgrade to 7.1.1 at https://xdaforums.com/axon-7-mini/how-to/updating-uk-version-zte-axon-7-mini-to-t3717933 to which landed me with a useless phone. Same problems as you - no IMEI's and messed up baseband. Over a month I've been trying everything to recover IMEI's and a working network/baseband. I managed to restore the phone to working order yesterday - (apart from a no sound issue which I still cant figure out).

I recommend you save the attached QCN file and modify it with your phones IMEI's then flash to the phone.

It took me a long time to find this QCN but it was all I needed in the end.

- I used HxD Hexeditor v1.7.7.0 to open the QCN file.

- Then go to "Search" - "Find" and type "088a" and make sure Datatype is set to "Hex-values" and click "ok". 088a is the start of IMEI for this phone in hex format

- It should find 2 results which are the 2 IMEI's.

- Use "IMEI Converter" to get the hex value for your IMEI and replace the value you found with yours. Highlight 10 bytes "08 8A 06 39 05 23 70 30 42" for the IMEI length, then right click "Paste write" your IMEI hex value, not insert.

- Then do the same for the second IMEI.

*** Note: The first result from the search (088a value closest to the beginning of the file) is actually the second IMEI and the next one is IMEI-1.

- Then "save-as" a new .qcn file name and flash it to your phone.

- I used Uni-Android to flash to the phone with phone in USB-DIAG mode and "Qualcomm" tab

- Or you can use QPST which is Google searchable to download, and also USB-Diag mode.

**you need to be rooted and USB debugging to enable Diagnostic mode using commands:

adb shell

su

setprop sys.usb.config diag,adb

Diag mode give different com port in device manager

I havent been able to root with 6.0.1 either so ROM should be 7.1.1 too

Hope this helps
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] demenicis:
EDIT: !!!! I'VE GOT A FREAKING WORKING PHONE !!!!!!!!!!!!!!!!!!!!

I CANNOT BELIEVE MY EYES AND YOU ARE A FANTASTIC GENIOUS.

That is all I can say mate. thank you.

What "NO SOUND" issue you have? can you describe it? my phone is ok so far on the 7.1.1 B09.

I have tested, and will still test other ROMs, so I could keep my eye on the issue for you.

a few notes:

-I had to download the HxD 1.7.7.0 like you said, but you posted another one which didn't work. the search didn't work

-I could not use uni-android because it was asking me to pay.

-QPST 2.7 build 460 is the one that worked for me, I tried another version end it kept giving me an error during opening (switch/retry endless)

- For the rest, I did exactly what you said. but my phone is single SIM, so I wrote my IMEI twice.

-On the sticker at the back of my phone I have another number MEID, which I simply ignored, I think it is for the USA CDMA (which is dead in the rest of the world anyway) so it doesn't bother me...……

I read so much crap on the web, and there is an entire unsolved discussion on the axon 7 forum where everyone thinks they have to send their phones back to zte (I was thinking about doing the same). But now with that amazing American president who is trying to f.....ck zte in the a..s...s...…. Im not sure ZTE is doing very well, and the website is being pretty useless to me, I couldn't access any support page to trying to download the UK stock ROM, but now I don't need it anyway.

Massive thanks, we need more guys like you around the world mate. THANK YOU.

_______________________________

ohhh mate, I cannot believe there is light at the end of the tunnel. your are a champ just for trying to help.

I'll definitely try this tonight and will report back.

because I had managed to sort of restore the IMEI, I was now trying to search generically how to add anything other than USA band on network options........

I'll have to flash the stock ROM again and do what you said.

I recon you don't know if this process would work on rooted lineage would you? the ROM is fantastic so far.

cheers
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] sixcherries:
That's great to hear you got it sorted. I was stoked when got that network back too :laugh:

When I initially updated to 7.1.1, before I lost IMEI, the sound just stopped working completely. Speakers, headphone jack, mic, Bluetooth audio - the lot. So I tried to flash back to Aust 6.0.1. Unfortunately this was just as ZTE support got blocked so finding a ROM was a right pain. I reflashed the same ones again to 7.1.1 and that's when IMEI was lost. Bought Uni-Android which has file support and somehow the audio started working with one of the roms I flashed but still no IMEI. By the time I got IMEI working the sound was gone again.

Dolby Atmos crashes when I try to open. Record sound app crashes. Bluetooth audio crashes the phone completely so I have to restart. The only conclusion I can come to is hardware problem.

I reckon I've tried every ROM for this phone that's available. Lineage, RR, AOKP, and stock. Tried Viper4FX audio.

I don't think I have any options left. I'll soldier on though... until I repair this phone to a usable state... or completely brick the damn thing trying. Haha
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] demenicis:
Hummm, that is strange for the sound hardware to stop working all of a sudden.

You probably tried this already but:

- I'd backup the data, wipe data, cache and dalvik, and reboot. nothing sorted?

-do the same, but now reflash the rom before reboot. nothing sorted.

-wipe everything in including system, flash the complete rom again.

My android 7.1.1 B09 only boots if I flash the "tulip-eu-7.1.1-b09-boot-noverity.img" before rebooting the rom for the first time, I think you must already have a boot.img compatible to you ROM anyway or you would be in a bootloop anyway.

What exactly is your ROM?

I know loads of files in system/etc are related to sound. I have 6 "audio_xxxxx.xml files that maybe worth it double checking are not corrupt.

the installation of Viper4FX audio or any replacement for dolby can mess things up.

however the above files should be restored if you flash a new ROM, so I don't really know what else to suggest. mayb you can try the same ROM as mine, the B09 EU?

At least you know what to do if you loose the IMEI again:).

I hope you have this sorted, this is a really nice looking phone with very decent hardware......good luck
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] countercharge:
Does anyone have a copy of tulip TWRP tulip-twrp-7.1-r1.img? The file is 404 here: http://code.nwwn.com/files/android/axon7mini/tulip-twrp-7.1-r1.img
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] tdm:
I rearranged my server today. Files have moved to files.nwwn.com, and code.nwwn.com is repurposed to be a gitea server (github clone). See the OP for the updated URL.
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] countercharge:
The link to TWRP seems to be removed from your OP now. Not seeing it.

edit: its here http://files.nwwn.com/android/axon7mini

just not linked to in the OP
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] countercharge:
Well I was able to install TWRP and everything was working fine until after made an nandroid backup with TWRP. After I rebooted the phone following the backup, it will not boot past the "ZTE powered by Android" screen. Not sure what to do.
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] tdm:
Try hard reset. Hold the power button for about 10 to 15 seconds.
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] countercharge:
That did not work, but rebooting recovery through TWRP did the trick.

Thanks.
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] daniu:
Hi

Wao ... quite some development here ... gonna try the procedure described ...

One question concerning twrp: where did you get twrp and how did you install it?

Regards

---------- Post added at 02:01 PM ---------- Previous post was at 01:58 PM ----------

Hi

Would still appreciate the described procedure ... I seem to be able to get into well mode once in a while ...

I know a bit about adb - well ... basically it is some kind of remote console

Regards
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] demenicis:
First part of the process is pretty simple, but you have to supply more information as we go along:

-turn the phone off.

-press vol+ and power for about 5 seconds to boot into recovery;

-you will either get a black screen or just the ZTE logo, don't worry.

-connect the phone to the PC. does the computer makes any noise, the noise of something plugging in? (if it does, you can go the device manager and check there is a device under universal serial bus controller)

-download and install ADB (minimal will do) and the phone driver if it is not already installed.

-browse to the adb folder (normally in C/adb) in windows explorer

-press shift + right click somewhere in the this folder, and open commad prompt/power shell here.

-now type: adb devices.....then press enter.

if adb tells you are in the recovery mode, then we can move to the next steps.

All I'm trying to achieve here is to find out if your recovery is still alive or not.

In my case, whenever I flash a stock rom, my recovery breaks, however the PC still recognises the phone via ADB (even if there is only the zte showing on the screen).

If the PC sees the phone in recovery mode it is possible to push files and flash the bootstack (each file individually) to make the recovery work again.

Please try the above and let me know if your PC can see the recovery, so I can post the bootstack files and the ADB commands I have used.

If the PC cannot, then you simply boot into EDL and use the tulip tool to flash the recovery again. Reboot into recovery and follow the above process.

Regards
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] daniu:
Hi,

thanks a lot - sounds simple - will test that later.

However for plan b: I still don't know where to get the stock recovery and how to flash it

Edit: cannot get an adb connection to the phone ...

regards
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] daniu:
@demenicis : have to correct myself: I can see an android device in the device manager (I am not a native speaker - just assuming that is what it's called in english) called Android. ADB does not recocnize a device anyways ...

Edit: did I say that tuliptool is not really successful: e. g. when I do:

tuliptool-win64.exe lock status

I get:

tuliptool-win64.exe lock status
Sending programmer...Connecting to programmer...log: logbuf@0x08067EB8 fh@0x0806
4D20
log: logbuf@0x08067EB8 fh@0x08064D20
log: Finished sector address 0
log: Finished sector address 0
log: Finished sector address 0
log: Finished sector address 0
Invalid magic

after that the device is not connected any more - fireing the same command again results in:

Sending programmer...Failed to send programmer: Unknown error

---------- Post added at 09:20 PM ---------- Previous post was at 08:42 PM ----------

Hi,

still don't know how to flash this qcn-file to the phone and also don't know if I need it - but in my opinion the mentioned bytes are only 9, not 10

regards

---------- Post added at 09:34 PM ---------- Previous post was at 09:20 PM ----------

Hi,

assuming that:

*I find the stock recovery in some update I downloaded an update from the US-site https://www.zteusa.com/axon-7mini#support and unzipped everything and found a file called recovery.img - I copied that file in the tuliptool folder

*I then brought my phone in EDL mode and used this tuliptoolcommand: tuliptool-win64.exe write recovery recovery.img

the result:

tuliptool-win64.exe write recovery recovery.img
Sending programmer...Connecting to programmer...log: logbuf@0x08067EB8 fh@0x0806
4D20
log: logbuf@0x08067EB8 fh@0x08064D20
log: Finished sector address 0
log: Finished sector address 0
log: Finished sector address 0
Writing recovery ...
log: start 1181696, num 46123
Write 23614764 bytes, 46123 sectors
Failed: Unknown error
Reset in 5 seconds ...
Reset in 4 seconds ...
Reset in 3 seconds ...
Reset in 2 seconds ...
Reset in 1 seconds ...
Failed: Unknown error

Any ideas how to solve that?

plus: general question: how to turn off the phone when neither recovery nor ADB work?
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] demenicis:
I think what you need would be the windows phone driver to begin with. If the pc knows something is connected and it calls it ”android”, then with the correct driver you will get adb to work.

Another advice, I would not start flashing stock recoveries randomly. You must try to flash the tulip recovery from the edl mode, with the tulip tool.

Last advice, don't go even near the qcn procedure to restore the IMEI if you don't even know you have lost it or not!

Make the recovery working is your first goal.

Right click your ”android device” and uninstall and delete the driver. Find the phone driver and install it. Connect the phone in recovery mode. See if the phone is recognised as recovery in adb.

Also, after every try on the edl mode, the phone tries to reboot, it is the way it is.

And just to confirm:

-you can boot into edl;

-you don't have a working recovery;

-you don't have a working system and the phone just bootloops.

Please confirm.

Good luck
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] daniu:
Hi,

thanks for the reply.

I seem to not get the phone connect in adb after all - now the device name is QHSUSB_BULK and it does not change anything if I:

-delete this device and let win find it again

-install the Axon 7 mini driver for windows (from here: https://phoneusbdrivers.com/zte-axon-7-mini-usb-driver/)

no idea what I should try ...

I wonder: why should I not try using tuliptool or in other words: what can I do to make tuliptool work? Is there a way to repair the partitions in tuliptool because I guess that is my problem

regards
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] demenicis:
Mate, QHSUSB_BULK is the edl mode.

I have to try to use tulip tool. I never said you should not. You have to try to flash tulip twrp!

Also, you have not answered any of my questions at the end of my previous post.

I did not create the tulip tool. How to install it and the problems people had are listed here in this forum, you must read the entire forum.

All you need is to manage to successfully complete the twrp flash, send programme etc......even if the phone bootloops after that.

Please reply to my 3 questions. Thanks
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] daniu:
Hi

Ok ... the 3 questions:

1 yes it seems like I can get into edl mode - according tovehat you write. Tuliptool recognizes the phone (but crashes whatever I do)

2. Yes - recovery does not show up and now I can't even get the pc to show an android device

3. When turning the phone on it just shows the ZTE logo - nothing else

What I still would like to know:

- where do I get the proper twrp file for this phone?

-how can I turn the phone off without recovery, system and adb access. Lots of explanations start with: turn the phone off - which seems to be just impossible. Usually I try to long press the on button but I am just not sure if that has the same effect. So glad I can just remove my battery in my own phone ... makes me want to make sure not to buy a phone which does jot have that feature ...

Regards
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] demenicis:
you get the recovery from here

https://xdaforums.com/axon-7-mini/development/recovery-twrp-7-1-unofficial-t3685339

Boot into edl and try to use tulip tool with this command

tuliptool-win64.exe write recovery tulip-twrp-7.1-r1.img

if successful the phone will try to reboot, but as we know it will bootloop. no worries.

press vol+ + power fro about 10 seconds, phone will reboot, keep pressing both buttons for another 10 seconds, then it will reboot again, release once you see the bootlogo. phone should be in recovery mode and you should hear the sound on your PC.

try to check if adb recognises the phone now.

If you want to just turn off the phone, if I remember correctly I did a similar thing as for my old axon mini.

power for 10 sec, keep holding power for 10 more seconds, then keep holding and on the 3rd time the phone turns the screen off after 5 seconds, release the button and the phone will be off..

try
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] demenicis:
2 tips about Android 7.1.1 b09.

1) tether simply did not work. I read about it and it seems ALL phones on Android N had this issue. I can't speak for you guys, but I had the same issue. Devices connect to phone but PC say "no internet".

I fixed this in 30 seconds. Connect to adb.

adb shell

su

Settings put global tether_dun_required 0

Reboot and tether will be perfect.

2) I have not only managed to repair my IMEI with a qcn file posted by an angel, but now I also have 4G+ symbol and I checked sometimes over 7mb/s or more download speed. I'm on Vodafone UK.

(EDIT: to be honest I'm not sure the symbol does anything or if my 4g just happened to be fast depending on the connection)

Using es file explorer Go to

System/etc and open the file P852A11.settings

Edit this line to add "10" which is the global network mode.

network_mode=22,18,10,1:22,21; #[*]

Make sure there are no spaces or the settings app will crash when you select the network mode.

Reboot and you see a 4th option "global" on the menu. However, I have not selected it and just left 4g/3g/2g auto, but I now have 4g+ most of the time........weird but cool.

I'll post more stuff if i find some more.

Cheers
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] LeonardoGC:
Hi demenicis.

I followed the procedure provided but tether still doesn't work. I have Android 7.1.2 (LineageOS 14.1).

I verified the value of the setting (0) with:

settings get global tether_dun_required

Any ideas about what can I try?

Regards
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] countercharge:
I'm having some major issues with TWRP now. It does not recognize my unlock pattern or pin as correct. This was working before, when I installed AOKP and LineageOS, but now that I've gone back to the stock ROM it does not recognize the pattern or pin as correct. I flashed the stock ROM and boot stack, the stock recovery and did formatted Data, then later flashed TWRP and formatted Data again, set up an unlock pattern in the ROM, and rebooted into recovery to test it and it says the pattern is wrong even though I know its correct and it lets me in if I boot normally (without recovery). This is very frustrating. How can I get it to recognize the pattern?
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] demenicis:
I read you might also need to tweak/modify or add a line on the build.prop file, together with the above setting.

I did not need to do it, but I'm on stock 7.1.1.

I found the below suggestion here, try and test

https://xdaforums.com/axon-7/help/hotspot-internet-connection-t3514921

___________________________

Assuming you are rooted.

Add to your build.prop - net.tethering.noprovisioning=true

Then open terminal emulator and type:

Su - enter (grant access)

settings put global tether_dun_required 0

By doing these two changes I have never had an issue hotspot or being billed for it. If you are not rooted and have hotspot on your plan, I would suggest trying an open connection (no password on the hotspot) at least to see if it works then continue troubleshooting.

____________________________
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] demenicis:
The first time the stock ROM boots it offers you to encrypt the phone.

I have mistakenly accepted it and the internal memory was encrypted. then TWRP asks for the pattern every time, and it worked fine with me.

However, because I found extremely annoying to have to enter the password every time, I booted to the system (or to twrp, I don't remember) and erased/formatted the data partition, which is the only way to remove encryption, and it stopped asking for pattern before loading twrp.

Now twrp doesn't ask for it and everything works fine. The only thing that puzzles me is that on the setting/security it says the phone is encrypted, but I do not thing it actually is because I can mount the phone via twrp and I can see all the files and I can push/pull files without any password or pattern, and this obviously happens before the system is booted.
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] daniu:
Hi,

success ... I could flash the recovery and can connect the phone in adb now ...

However now I do not know how to go on. unfortunately the recovery is not really working and I can only connect the phone in adb. Would be cool if you could tell me the commands necessary to correct the partitions and to flash the ROM

The "recovery" is only a blank white screen ...

BTW: turning off this way does not work ... and also turning off with adb seems not to work (adb reboot -p)

adb shell halt did the trick ...

regards
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] daniu:
Hi,

thanks a lot for that ...

however here:

adb push boot-eu-7.1.1-b09-noverity.img/data/media/boot.img

is a mistake

should probably be:

adb push boot-eu-7.1.1-b09-noverity.img /data/media/boot.img

probably would be good to correct this above ... (or just use the 2 files I uploaded View attachment adb.zip)

Besides this: you are a genius! TWRP running!

regards
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] demenicis:
See? I knew you would get this working!

but I didn't understand what is wrong with the boot line?

I understand there could be an error as I wrote that for you on the go, but I cannot still see what is wrong? both the lines you wrote seem to be exactly the same

"however here:

adb push boot-eu-7.1.1-b09-noverity.img/data/media/boot.img is a mistake

should probably be:

adb push boot-eu-7.1.1-b09-noverity.img /data/media/boot.img"

Cheers
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] daniu:
Hi,

your version lacks a space between boot.img and /data

regards
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] demenicis:
ahhhh ok, thanks for spotting. :)
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] LeonardoGC:
demenicis, how did you learn so much about Android and the ZTE Axon 7 Mini?

Regards

---------- Post added at 09:01 AM ---------- Previous post was at 08:33 AM ----------

Hi demenicis. Wifi hotspot (tether) finally worked.

I did the following steps:

Add this line to build.prop file -> net.tethering.noprovisioning=true

Execute this command -> settings put global tether_dun_required 0

Change the APN type to -> default,supl,mms,dun

And finally, set up again Wifi hotspot.

The final step (4) is the one that solved the problem. I suspect that if i performed the last step as the third one it also should have worked., but that is only a guess.

Regards.
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] dccomic:
ROOT of all evil!

I am ONLY wanting to cheat my way to the top? WHAT??? All I want is to get my carrier to let me hotspot, they of course block this, I cannot root my d@#$%^& phone, with ANY tool. I have tried. I own a ZTE Axon mini 7 nothing special about it... PLEASE FREGGIN HELP... LOL
[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] :
[MENTION=5852561]demenicis[/MENTION] Well said