yashsingh1/xdaforums huggingface dataset:
[ZTE Axon 7 Guides, News, & Discussion] |Furō|:
Well this is kind of getting intense....

So I managed to unlock the bootloader of my device using the Axon7toolkit.

Then I decided to continue following this guide, regarding the installation of LineageOS and everything else. I downloaded all the files, placed them on the internal storage (might have been a mistake?) and tried to get it to work. First I got the error "axon7.verify_trustzone" when trying to flash LineageOS. since this seemed to be a known issue, I went ahead to try solving it. I downloaded the universal bootloader as suggested and also dropped it on the internal storage. Booted into TWRP again, flashed this file, then the Nougat Bootstack (worked all fine) but when I tried flashing lineageOS, I got a new error: "Can't install this package on top of incompatible data"

Anyways, now I can`t boot into stock android anymore, it only allows me to boot into recovery (TWRP) or to a black screen with a penguin on it. Any suggestions what I should do now? Please help me out of this misere I put myself into.... best case with me installing lineageOS, but worst case "I`ll just go back to stock" if that`s possible, since I do want a working phone, more than anything else...

Thank you already in advance.
[ZTE Axon 7 Guides, News, & Discussion] dnlilas:
From the LineageOS thread :

https://xdaforums.com/axon-7/development/unofficial-lineageos-14-1-zte-axon-7-t3545679

(refer to its Instructions section)

Instructions:

1. Install the Universal bootloader and your model specific modem.Failure to do so will not allow flashing the ROM!

2. Update recovery

3. Factory reset if coming from another ROM.

4. Install ROM

5. Install GApps

it seems that the solution is to follow all of its instructions steps, in particular factory reset before flashing the LineageOS (you can skip universal bootloader and N(ougat) modem bootstack part since already done) :

- Factory reset is mandatory since stock ROM is different from LineageOS ROM.

You can update TWRP from inside TWRP itself, refer to instruction ("update from image")

You can do factory reset inside TWRP: as far as I know this is equivalent to normal Wipe = wipe cache, wipe dalvik and wipe data.

Edit (add):

From practical operations point of view in your case:

Boot into TWRP

Update TWRP to latest by "install from image" then choose the TWRP 3.1.0-0 .img file twrp-3.1.0-0-ailsa_ii.img

Reboot into TWRP (button "reboot recovery" from inside TWRP), should see latest TWRP version

All the following actions are done inside same TWRP session in subsequent operations :

- Do factory reset = normal wipe (cache, dalvik, data)

- install LineageOS ROM (zip file)

- install Gapps (zip file)

- choose "reboot system" to reboot to LineageOS.
[ZTE Axon 7 Guides, News, & Discussion] |Furō|:
Alrighty I`m kinda mad at me right now....

So, by kind of following your advice, I managed to get LineageOS running somehow yesterday (believe me I was soo happy) I started setting everything up, it was stable and my life was good.

At that point I had the latest TWRP running, because I updated it, my phone was fully rooted (SuperSu) installed and RootChecker confirmed it and the only tiny modifications I did, was to install Viper4Arise and Dolby Atmos following this tutorial: https://www.youtube.com/watch?v=okbLJwIT848 and the Original ZTE Camera (found in another forum here at xda) and I was also quite pleased with the result.

Well today I managed to basically destroy the dream I was living yesterday....

LineageOS showed me that there was an update available, and I went ahead and used the inbuild function to install it, it downloaded, booted into Recovery, flashed and booted normally again, so everything was fine.

But I noticed, that the update apparently uninstalled Viper4Arise/DolbyAtmos and the ZTE Camera. Since I really liked the sound I achieved with Viper I wasn`t pleased with that. First I booted into Recovery and flashed the Camer-zip-file, which I still had on my storage. I booted again, everything worked and I had the camera back.

Then I did the same with the Zip Files for Viper and Dolby and I was also able to boot into LineageOS and had those installed. I opened Viper, but it somehow failed to gain root access, even though my phone is rooted. I opened SuperSu (I have installed the latest version from the lineageOS website) and It told me it needed an update of some sort and gave me two options to do it.

I selected "normal" but it failed, so I went ahead and chose "TWRP" which booted into recovery started a process, which succeded.

But ever since I´m stuck in the lineageOS Splash Screen(Boot screen... the one with the Kraken or what it`s supposed to be) and it simply won`t boot up fully.

I let it sit for around 40 mins, then I decided to boot into recovery again, adb sideload the remove SuperSu file (also from LineageOS website) flashed it, which worked and then flash the SuperSu file again, which also worked. (I want to stay rooted, so I can possibly get Viper4Arise/Dolby back up working, because I can`t get used to the sound without it again (personal opinion))

Still that process didn`t help in any way and I`m still stuck in the splash screen. I booted into recovery again and did a factory reset using the TWRP wipe option. Which, also didn`t help....

Now I`m pretty helpless and actually at the point, where I would pay a small amount (via PayPal) to everyone who might be able to get my phone running again (LineageOS + Viper if possible) and give me advice on how to avoid situations like mine in the future! If someone has good advice, or is willing to even spend some time with me on skype/teamviewer/etc. I would appreciate it A LOT and am willing to give you a small reward for your effort! Thanks in advance for any help! Let`s see if we can get me back to having a phone ^^
[ZTE Axon 7 Guides, News, & Discussion] dnlilas:
@|Furo|

I sympathise with your seemingly desperate situation. I am not even owner of any Axon 7 but I plan to buy

one in the future due to available development ROMs and recoveries... I followed the Axon 7 thread few weeks ago

to prepare myself, but sometimes I was very scared when some users reported soft bricks, hard bricks, DFU only mode, no EDL mode, boot loops etc...

so I still obersve these threads to get a clear view of solutions. xda threads are great but they are independent and unfortunately

there are not a single, centralized and completed thread with all up to date details.

It looks like that you encounter a 'bootloop' as it is called. A common solution I read from other threads is to try to reboot

to recovery, then clean cache, clean dalvik-cache and try again. If does not work, then try factory reset (clean cache, clean dalvik-cache, clean data) and retry.

If it stills does not work, maybe you can then try to reinstall LineageOS and Gapps again, to get back to previous running state?

I also suggest you read entirely the LineageOS thread then to post your problem in it:

https://xdaforums.com/axon-7/development/unofficial-lineageos-14-1-zte-axon-7-t3545679

Your situation and configuration (LineageOS, SuperSU, Viper4Arise) seems to be very common, so I guess and hope that you will get better assistance there

(the thread owner [MENTION=4911249]Unjustified Dev[/MENTION] is the developer of LineageOS for Axon 7, so you are in excellent help environment).

Other common sense recommendation: always have different, several complete TWRP backups at each major stable phone state

(and use same TWRP version to restore when needed, sometimes different versions cannot restore backups taken by other TWRP version).

So you can fallback to a previous stable state after a problem.

For example :

- a backup when LineageOS is installed and running.

- another backup when SuperSU installed and running.

- etc...

Of course, at least test the restore process once to be confident in backup (e.g. restore data partition).

Good luck to you!
[ZTE Axon 7 Guides, News, & Discussion] |Furō|:
First of all thank you again, for the long and nice answer! I guess I`ll once again follow your hints ;)

I have one quick question still: If I want to reinstall LineageOS and Gapps, I do need to completely wipe in TWRP, right? How exactly do I do it? Advanced options, when wiping?

Thanks for everything!
[ZTE Axon 7 Guides, News, & Discussion] dnlilas:
Reinstall LineageOS is similar to "upgrade" it to same version, and you are not coming from different ROM. The LineageOS documentation says that factory reset is only needed if different ROM. So I would suggest you to at least simply wipe cache and dalvik cache then simply reinstall LineageOS.

Note: But as I said, before trying to reinstall LineageOS and Gapps, you might try first:

- clear cache and dalvik-cache and retry

- if it does not work, do factory reset and retry
[ZTE Axon 7 Guides, News, & Discussion] |Furō|:
Alright I tried just wiping, didn`t help. And am now trying to flash LineageOS and Gapps again.

Other than that I personally do really like the Axon 7, since you consider buying it :) I would generally recommend it! It just wasn`t the best idea to mess with the phone as a newbie to this kind of stuff... (something learned at least^^)

I have some questions regarding the TWRP backup function:

1. What should I backup exactly?

2. Where will the backup be stored? Where to find them?

3. Can I save them to my pc as well in order to adb sideload them if needed?

4. Will wiping affect my backups? (Will they get deleted?)

I really appreciate your help! Sitting here in front of my pc and am slowly going crazy :D
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
1. System, system image, if possible try not to backup data(just do a fresh start), recovery...

2. The backup will be stored on /sdcard/TWRP/BACKUPS

3. Ye, but you'll have to put it right where it was in order to restore it.

4. Only if you wipe Internal Storage. There are a lot of partitions on the emulated sd of the phone (system, data, cache...) If you wipe only System or Data you won't lose what's in the Internal SD storage, therefore the TWRP folder will remain there

Why do you want a backup though? Didn't you have a bootloop or whatever?
[ZTE Axon 7 Guides, News, & Discussion] |Furō|:
Well I got LineageOS running again, by reflashing it! And am currently restoring what google saved for me :D

So I do plan on doing a backup before messing with Viper again :)

Thanks for the answer!
[ZTE Axon 7 Guides, News, & Discussion] bkores:
Can someone who used Zadig already please do me a favor(it's for my toolkit):

Go to C:\Users\[USERNAME]\usb_driver and send me the contents. I would really appreciate it.
[ZTE Axon 7 Guides, News, & Discussion] lukas2040:
here you are

'C:\Users\Lukas\usb_driver\\Android.cat',

'C:\Users\Lukas\usb_driver\\Android.inf',

'C:\Users\Lukas\usb_driver\\installer_x64.exe',

'C:\Users\Lukas\usb_driver\\installer_x86.exe',

'C:\Users\Lukas\usb_driver\\QUSB__BULK.cat',

'C:\Users\Lukas\usb_driver\\QUSB__BULK.inf',

'C:\Users\Lukas\usb_driver\\amd64\\install-filter.exe',

'C:\Users\Lukas\usb_driver\\amd64\\libusb0.dll',

'C:\Users\Lukas\usb_driver\\amd64\\libusb0.sys',

'C:\Users\Lukas\usb_driver\\amd64\\libusb0_x86.dll',

'C:\Users\Lukas\usb_driver\\amd64\\libusbK.dll',

'C:\Users\Lukas\usb_driver\\amd64\\libusbK.sys',

'C:\Users\Lukas\usb_driver\\amd64\\libusbK_x86.dll',

'C:\Users\Lukas\usb_driver\\amd64\\WdfCoInstaller01011.dll',

'C:\Users\Lukas\usb_driver\\amd64\\winusbcoinstaller2.dll',

'C:\Users\Lukas\usb_driver\\license\\libusb0\\installer_license.txt',

'C:\Users\Lukas\usb_driver\\x86\\install-filter.exe',

'C:\Users\Lukas\usb_driver\\x86\\libusb0.dll',

'C:\Users\Lukas\usb_driver\\x86\\libusb0.sys',

'C:\Users\Lukas\usb_driver\\x86\\libusb0_x86.dll',

'C:\Users\Lukas\usb_driver\\x86\\libusbK.dll',

'C:\Users\Lukas\usb_driver\\x86\\libusbK.sys',

'C:\Users\Lukas\usb_driver\\x86\\WdfCoInstaller01011.dll',

'C:\Users\Lukas\usb_driver\\x86\\winusbcoinstaller2.dll'
[ZTE Axon 7 Guides, News, & Discussion] n4217:
Hello!

If I type in "axon7tool -r gpt boot recovery", it says "Failed to connect". What can I do? I need help!

EDIT: It's back alive. Do you know what could be the reason for this?
[ZTE Axon 7 Guides, News, & Discussion] bacomino:
[Solved] my sending "axon7tool -w recovery" bug

Can't verify myself but the solution was probably to "reset/reload ?" de EDL mode by pressing about 5 seconds the "power", "Vol +" and "Vol -" keys at the same time when the device was in EDL mode and then everything goes right :D

Thanks a lot for all your help and let me know if it works ;)
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
Did you change the driver? If so, there was the problem. The computer looses connectivity to the phone in edl mode after changing the driver. Therefore, I had to reboot and start edl again to get axon7tool to work.
[ZTE Axon 7 Guides, News, & Discussion] PoisonT:
Axon 7 always resetting

deleted
[ZTE Axon 7 Guides, News, & Discussion] bacomino:
Hello... I've tried many drivers, etc without any solution.

I used the "Axon7Toolkit" and had exactly the same bug but somewhere in there instruction files they gave me the solution :D

to "reset/reload ?" de EDL mode by pressing about 5 seconds the "power", "Vol +" and "Vol -" keys at the same time when the device was in EDL mode

So I don't think it's a Driver bug but a phone's EDL "bug"...

Thanks for your explanations :D
[ZTE Axon 7 Guides, News, & Discussion] slainer68:
I've got a brand new Axon 7 A2017G on Android 7.1.1.

This guide says it's only for A2017G on MM, what should I do exactly? Should I downgrade (and how can I downgrade?) or is there another way?
[ZTE Axon 7 Guides, News, & Discussion] bkores:
For those of you on A2017 Nougat B02, [MENTION=2658444]kenet[/MENTION] found this unlock package which includes the B20 aboot image and according to him works.
[ZTE Axon 7 Guides, News, & Discussion] Kantastisch:
stuck a the ZTE logo

I was running android 7.0 on the A2017G version and was able to install and open TWRP, but I cannot boot and im stuck at the ZTE screen.

I am only able to boot into TWRP again and my bootloader is still locked since I dont know how to do it and I just want my phone working again, can somebody help me please??

D:
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
AFAIK, this guide here won't work on Nougat.

Try and follow this guide: https://xdaforums.com/axon-7/how-to/guide-reinstall-twrp-root-update-to-t3578552
[ZTE Axon 7 Guides, News, & Discussion] Kantastisch:
Yes, I realised it when it was too late, but the other tutorial was posted later and he said it was working in 7.0

---------- Post added at 02:22 PM ---------- Previous post was at 02:21 PM ----------

And does it work with only using TWRP? since I cant use adb now
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
You can use adb inside TWRP, meaning adb reboot edl will work from TWRP.

Alternatively, you can try and turn of your phone and then press all buttons (Vol+/Vol-/PWR) to get into EDL (not sure if this is already working on 7.0 but it is on 7.1.1).
[ZTE Axon 7 Guides, News, & Discussion] Kantastisch:
But this is a but different problem, his phone is booting normally, but mine is not and I don't need TWRP (I already have it), but rather unlock the bootloader or idk
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
You have to follow the guide to get fastboot to work. Without it there is no possibility to unlock the bootloader.

I hope you did enable OEM unlock inside the developer options. Otherwise you will not be able to unlock the bootloader.
[ZTE Axon 7 Guides, News, & Discussion] Kantastisch:
Okay, so I was able to get into edl mode, but I just don't really what to do now from here on. The thread you linked is for installing twrp afterwards and after that he boots into android, but I'm no able to boot into android

---------- Post added at 02:37 PM ---------- Previous post was at 02:36 PM ----------

I did enable OEM unlocking before, but how to unlock the bootloader with using fasboot mode? He only shows how to get trwp again

---------- Post added at 02:39 PM ---------- Previous post was at 02:37 PM ----------

Oh, and the unlock bootloader file is for A2017U, but I got the A2017G model :/

---------- Post added at 02:53 PM ---------- Previous post was at 02:39 PM ----------

When I try to flash the file in miflash I get an error and how the get into edl mode with trwp??
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
There is an edit button in case you need to add something (just to let you know).

You have to follow Step 1. The image there should be fine with A2017G since it will only add fastboot support. However, I am not responsible if anything goes wrong!

I would do it like this (Section B in this thread's OP, Steps 5,8,9,10,11):

Boot into TWRP

If there's none open, open a new command window in that folder again (Shift + right-click and "open command window here")

Type "adb shell dd if=/dev/block/bootdevice/by-name/fbop of=/sdcard/fbop_lock.img" and hit enter

Type "adb shell dd if=/dev/block/bootdevice/by-name/aboot of=/sdcard/aboot_lock.img" and hit enter

Type "adb pull /sdcard/fbop_lock.img" and hit enter.

Type "adb pull /sdcard/aboot_lock.img" and hit enter

After that follow Step 1 in the other thread.

As soon as you're done, boot into TWRP.

Then follow section B in this thread's OP, Steps 14, 15 ,16, 17, 18.

Note that this won't resolve your issue with not being able to boot into the ROM.

*EDIT*

If you are in TWRP do this to boot into EDL:

Open a new command line window

Type: adb reboot edl

Try again with MiFlash
[ZTE Axon 7 Guides, News, & Discussion] Kantastisch:
Okay! But am I supposed to be recognized as "Qualcomm HS-USB QDLoader" or as "QUSB_BULK" ? I really don't want to maske things worse now, so thats why I ask
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
For MiFlash you will need to have it as Qualcomm HS-USB QDLoader.
[ZTE Axon 7 Guides, News, & Discussion] Kantastisch:
And for the twrp part? So, i ONLY need Qualcomm HS-USB QDLoader
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
You will need to have it as Qualcomm HS-USB QDLoader for EDL mode NOT TWRP.
[ZTE Axon 7 Guides, News, & Discussion] Kantastisch:
"*EDIT*

If you are in TWRP do this to boot into EDL:" so for this I need to be in QUSB_BULK and when I get into edl mode I have to change the drivers to Qualcomm HS-USB QDLoader?

EDIT: On a different site, somebody told me I just have to WIPE FORMAT DATA and I'll be able to boot into android. But that was never said in any step, but could it be the reasony why can't boot into android? I don't know if I should do what you advised, or if wiping will fix the problem.
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
No, in TWRP the device should be Android Composite ADB Interface device.

If you are in EDL it depends which driver you have installed, either QUSB_BULK or Qualcomm HS-USB QDLoader.

You should never have to install a driver for TWRP adb.

*EDIT*

I don't think that wiping data will solve your problem.
[ZTE Axon 7 Guides, News, & Discussion] Kantastisch:
I'm listed as "google nexus adb interface" when I'm in TWRP, but I don't get rocognized as an adb device in cmd and when I type "adb reboot edl" it says "error: device '(null)' not found"

EDIT: okay, so I was able to boot into edl mode again and what now? try the miflash step again or what?

EDIT 2: so, I flashed the file successfully in Miflash, and now? just follow the guide or what?
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
Boot into TWRP and then follow section B in this thread's OP, Steps 14, 15 ,16, 17, 18.
[ZTE Axon 7 Guides, News, & Discussion] Kantastisch:
At step 14) and 15)

14) How is the bootloader supposed to look? it says in big red print "FASTBOOT MODE" and gives some information about the phone and bootloader is still locked.

15) Where am I supposed to type this "Fastboot oem unlock"??

EDIT: okay, I unlocked the bootloader now and booted into twrp and pressen cancle when it asked for the password

EDIT 2: i did the format data step and wanted to reboot it, but a screen appeared "Your device software cant be checked for corruption, Please lock the bootloader

Visit this link on anoter device "......" (link is just an 404 error page) and it says if no key pressed: your device will boot in 5 seconds, but it just won't boot. I'm sitting here over a minute a this screen, altough I didn't press any button
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
Open a console windows and just type it. It is the same as with adb commands.
[ZTE Axon 7 Guides, News, & Discussion] Kantastisch:
yes, check my edit. new problem
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
Yep, that's how an unlocked bootloader looks like.

I assume you didn't tell TWRP to mount system as READ-ONLY.

You can try and disable dm-verity with this axon7toolkit: https://xdaforums.com/axon-7/development/tool-axon7toolkit-t3573108
[ZTE Axon 7 Guides, News, & Discussion] Kantastisch:
can't I just open the bootloader again and the twrp message will appera again? or will this not work?

EDIT: ***If you are on A2017G B01 or B02 Nougat see the FAQ post before attempting as otherwise this function will not work*** where is this FAQ located?
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
No, since it is already altered you will have to wipe system and cache (cache and dalvik) partitions inside TWRP, set the system partition to read-only and apply a full update via twrp (e.g. Android 7.0 which can be downloaded from ztemobile.de: http://www.ztemobile.de/support/downloads/?product_id=2100)

IT MIGHT BE THAT A WIPE IS NEEDED WHICH WILL DELETE ALL FILES ON THE PHONE!
[ZTE Axon 7 Guides, News, & Discussion] Kantastisch:
yes, so should I go on WIPE>>>>Wipe Data, cache and dalvik?

EDIT: and then just swipe to factory reset or ADVANCED Wipe chose dalvik/art cache, cache and data?

---------- Post added at 05:14 PM ---------- Previous post was at 04:51 PM ----------

what should I choose???

EDIT: OKAY, my phone is runnung stock android 7.0 again and twrp is not on the phone anymore, but the bootloader is still unlocked I think (same message with your device software... etc.), but I am not 100% sure, how can I root it now?
[ZTE Axon 7 Guides, News, & Discussion] dodo34:
Source Code for all AXON 7 Variants !

http://opensource.ztedevice.com
[ZTE Axon 7 Guides, News, & Discussion] bkores:
That's just the kernel source. When everyone is talking about source code they mean the source code for the ROM which ZTE will never give us.
[ZTE Axon 7 Guides, News, & Discussion] sToRm1nG:
You will have to follow the instructions on this thread: https://xdaforums.com/axon-7/how-to/guide-reinstall-twrp-root-update-to-t3578552 (this time the complete instruction)

This should finally solve your problem.
[ZTE Axon 7 Guides, News, & Discussion] MaxRink:
so, this works on B02, right?
[ZTE Axon 7 Guides, News, & Discussion] ColorfulPoland:
I have a problem. I have A2017G with TWRP but i can't unlock bootloader. When I type in CMD "Type "adb shell dd if=/dev/block/bootdevice/by-name/fbop of=/sdcard/fbop_lock.img" and hit enter" then:

- on TWRP mode CMD don't see phone

- on normal mode access denied.

I try to root that phone from ten hours and I can't. Please help me

EDIT

I handled the problem and unlocked the bootloader. Now I have a problem with rooting. I tried three options, I installed by TWRP two different zips with SuperSU, TWRP showed that everything ok, installed, but when the phone turned on, there was no trace of SuperSU and no root. The third way was axon7toolkit, he also showed that everything is ok, but after restart the system was still the same. It's a total of 14 hours, but I do not give up. But without your help, I may not be able to succeed. Please help.

In addition, a strange problem appeared. Suddenly, during installation of SuperSU zip by TWRP and axon7toolkit rooting the phone turns off. Previously there was no crashing.
[ZTE Axon 7 Guides, News, & Discussion] dnlilas:
Could you explain for xda community's benefit how did you resolve the problem unlocking the bootoader?