yashsingh1/xdaforums huggingface dataset:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] d.cortez:
hi all, i have a couple of questions regarding Step 7 in the OP. first, i've successfully unlocked the bootloader and installed TWRP.

step 7.a - Download the latest SuperSU by Chainfire... and flash it using [Install] in TWRP. Q: after using this option, will my device be permanently rooted with internal storage remaining encrypted?

step 7.b - if you want to be rooted with something else or just want a bootable system: Download the latest dm-verity and forced encryption disabler zip..and flash it using [Install] in TWRP. Q: after using this option, will my device remain unrooted with internal storage remaining encrypted unliess i choose to decrypt? if yes to both questions, what root method should be used?

i'm asking about Step 7a/b because i cannot get permanent root using either step. with 7a, my device appears to boot to EDL mode after flashing SR3-SuperSU-v2.79-SR3-20170114223742.zip (downloaded via the link in the OP). if i use SuperSU-v2.79-201612051815.zip with 7a or 7b, my device boots, root verify app reports my device is rooted but build.prop edits are not being saved.

i'm clearly missing a step here and would greatly appreciate advice to get permanent root. thanks.

EDIT: appears the command su reboot disemmcwp is working for me. will continue testing and update my post if i have issues. thanks.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] nupi:
Try flashing the lineage OS su and activate root in developer settings that works perfectly for me
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] d.cortez:
thanks for replying... are you suggesting to flash the Lineage ROM and afterwards activate root in developer settings? once this is done, will root be permanent? for now i need stockish, rooted ROM and not ready to test/use Lineage OS. or is there a Lineage SU file to flash?

EDIT: appears the command su reboot disemmcwp is working for me. will continue testing and update my post if i have issues. thanks.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] eladmitz:
Hey, what is the best way to install twrp on stock nougat with unlocked bootloader? A2017U
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] xDaDeevellopar:
Is it even possible to install TWRP and get rooted on nougat in stock B15 with unlocked bootloader as of right now?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] d.cortez:
yes, my ZTE7 with stock N, B15, is rooted with TWRP as the recovery.. :)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] xDaDeevellopar:
Whenever I try to root with supersu in TWRP, my phone won't go past the unlocked bootloader screen and if I press the power button, it would freezes at the Linux tux logo and if I install B15 without SuperSU,I lose TWRP. Any help would be appreciated!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] d.cortez:
read my post #191; i had the same issue with the latest version of SuperSU so i searched for posts using prior versions and found one that worked. i also had to use the su / disable emmcwp command to get permanent root. so far it's sticking for me.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] eladmitz:
So I can install twrp on nougat (unlocked) using fastboot the same steps on the OP?

Or I need to downgrade to mm?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] xDaDeevellopar:
Which su version would be best? I don't wanna wipe my data just in case my phone brick or something.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bornlivedie:
You can. No need to downgrade.

2.79
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] xDaDeevellopar:
Well, 2.79 SR3 doesn't work.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bkores:
try lineage official arm64 root
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] TeutonJon78:
So, what is the reasoning behind defaulting /data to f2fs rather then ext4 for these newer builds? Shouldn't it leave it the same format as what the device shipped with by default, and allow users to switch to the other format if desired?

It seems like it's just causing trouble for people.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] srussell1979:
OK please forgive me, how can I root/unlock bootloader loader on ZTE stock N. I can not find it or figure it out. If it's been posted already I apologize up front.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] ld626:
stuck, please help

Trying to install the latest LOS and everything went south pretty quick, encryption got back in the way....I mounted the sd card, flashed su, the previous unofficial version, gapps, su again and now it keeps rebooting to TWRP, I know the answer is out there but please help, I had a motorcycle accident and my back is pretty messed up and I'm in a lot of pain...going to seek a hospital tomorrow...
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bornlivedie:
just adb reboot while connected to a pc

it will reboot the device into the system and fix that issue

Also, should you be posting? Please, it's just a cellphone. Go seek medical attention now dude.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] lafester:
I think the new miflash method is the cleanest way but tenfar tool works pretty well.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] srussell1979:
Where do I get them and is there some instructions on what to do?

---------- Post added at 03:56 AM ---------- Previous post was at 03:56 AM ----------

Do you know where to get them and is there any insfructions?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] ld626:
Tried that but it asks for a password on booting, tried flashing su again...format data(unable to format to remove encryption) this encryptionthing will end up making me give up on twrp and custom roms all together, I had this same problem on my Nextbit Robin but I can't remember how I fixed it... thank you very much
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bornlivedie:
Format it in ext4 that should work. Don't use format data.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] ld626:
https://xdaforums.com/android/general/guide-format-ext4-internal-memory-data-t2852815

Does this tutorial still applies? I've never done that...
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] ld626:
problem solved. thanks
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] chas123:
[MENTION=5672995]jcadduono[/MENTION]

I'm sure you've seen this:

https://xdaforums.com/showpost.php?p=70492947&postcount=8792
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] TeutonJon78:
This seems like even more of a reason to leave it to default to ext4 as the device shipped with.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] chas123:
To have a unified (official) recovery that plays nice w/ what other devs are doing is ideal. Maybe do a special one for oki
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] ThePublisher:
There are three locksettings files in this directory. Deleting all 3 put everything back proper.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] chas123:
Kind of what I was saying there. :)

EDIT: To have a unified (official) recovery that defaults to ext4 that plays nice w/ what other devs are doing is ideal. Maybe do a special one for oki

There
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] geearf:
I confirm this on the booting to EDL with latest supersu, and flashing the previous one worked.

Thank you!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] d.cortez:
hi all, after using the command su reboot disemmcwp to make the system R/W, i discovered - on my phone - that i could no longer connect to YouTube, Google Play Store, my corp email account (using Aqua Mail) and other exchange accounts (using Nine) using my phone's data connection. if i used a wifi connection, i had no problem connecting to the aforementioned services and accounts. I originally thought my issue was a bad radio, got a new phone configured the way i liked and everything was working fine until i I issued the su reboot disemmcwp again. after reboot, the same no access issue returned using the phone's data connection (it worked with wifi). please note this is not an issue with this recovery! i'm just reporting my observations/experience with the su reboot disemmcwp command. the only way i could recover was to reflash the system image, use stock recovery to wipe my phone and setup my phone again. to those who are more technically knowledgeable or anyone else who used this command are you experiencing similar behavior? if not, any guidance on my possible missteps would be greatly appreciated. to [MENTION=5672995]jcadduono[/MENTION], i apologize for the off topic post, but i wanted to follow up to my original post. thanks.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] mandrax.prime:
System Image backup fails

Hi,

I'm trying to backup System Image using TWRP 3.0.4, fails everytime on my A2017U.

Can anyone help me please ???

Scenario:

Unlocked bootloader from B20->B29->B15.

Installed TWRP 3.0.4

Installed SU v2.79

Logs:

* MD5 Created.

I:Partition Backup time: 430

Backing up System Image...

I:Reading '/dev/block/sde13', writing '/external_sd/TWRP/BACKUPS/xxxxxxx/2017-02-18--04-16-50_A2017UV1.1.0B15/system_image.emmc.win'

I:Error writing destination fd (No such file or directory)

Backup Failed. Cleaning Backup Folder.

I:Copying file /tmp/recovery.log to /external_sd/TWRP/BACKUPS/xxxxxxx/2017-02-18--04-16-50_A2017UV1.1.0B15/recovery.log
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] gpz1100:
How is your sd formatted? Try reformatting it either fat32 or exfat.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] mandrax.prime:
Thanks mate. ExFAT worked. silly didn't format it after buying but inserted directly.

So, what could be the problem u suggest with the default format used by N B15, is it F2FS or something else causes the problem?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] gpz1100:
Default format of the sd card? Not sure. What was it formatted to originally? Either fat32/exfat should work. I ran into a similar issue at some point. I believe elsewhere in the log it didn't like something about the date on the card. Odd error for sure. Figured a reformat couldn't hurt.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] TeutonJon78:
The default format for cards <= 32 GB is FAT32 and for > 32 GB is exFAT. https://www.sdcard.org/developers/overview/capacity/index.html
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] benny3:
@jcadduono Thank you for your support on a recovery for this device. A small token of appreciation sent from Team Team BadBoyz
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bluestudy:
What exactly is keeping 3.0.4.1 from being officially supported through the TWRP app? I see on the first post that it's the latest stable version.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Cyrus D.:
I bricked my phone by missing the install SuperSU step after swiping to allow modifications so I reflashed everything and just to test a boot I didn't swipe to allow modifications and booted.

Next I went back to TWRP and installed the latest SuperSU 2.79-SR3 and waited 8 minutes, nothing happens, not the usual bootloops or anything. Reflashing everything doesn't give the "allow modifications" option on first TWRP startup anymore. I'm beyond frustrated at this point. Can anyone please help...

Edit: I found this thread - https://xdaforums.com/droid-turbo/help/accidently-selected-read-twrp-how-undo-t3312533

Restarting the bootloader then going to recovery gets it to pop up and I can swipe right before installing SuperSU 2.79-SR3, but after 5 minutes the result is the same so far. Nothing, just a blank.

Nougat freshly installed, bootloader is unlocked (assuming the "unlocked" in the bootloader is referring to the bootloader itself), TWRP is installed... what am I doing wrong?

Edit 2: Apparently it doesn't work on Nougat? Can someone please point me to how to root Nougat?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] lafester:
Use 2.79 no sr.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HypostaticOnion:
Maybe I'm missing something, but I followed all the directions in the OP and still stuck. I flashed TWRP, but it's asking me for a decryption password when it boots, but I never encrypted anything. Then I swipe for modifying system and flash super su. Still phone won't boot. It boots to the screen saying my bootloader is unlocked and then it goes to splash screen and back off. Any help?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bluestudy:
Are you on any custom Rom right now?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HypostaticOnion:
No. Stock nougat ROM. I had unlocked the bootloader and updated to nougat. Today I installed TWRP and it keeps asking to decrypt every time it boots. Then I flashed SuperSU after telling it to allow modifying system. When I rebooted, it says bootloader is unlocked and such, then goes back to the splash (with blue ZTE logo) then screen goes black (I'm assuming it's turned off).
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bluestudy:
Which SuperSU did you use? There have been trouble with some of them since Nougat, I think enough so that it's actually keeping system from booting.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HypostaticOnion:
I flashed the SR3 I believe. I'm about to try the non SR3 version
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bluestudy:
That should do it. I think 2.79 should be ok.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HypostaticOnion:
I think I may have used the wrong TWRP too now that I'm looking. I flashed through MiFlash but used the b29 set rather than b15
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bluestudy:
3.0.3.1 has worked really well for me for everything so far. I've heard that 3.0.4.1 works too, but haven't really tried it. Either of those, and you should be good.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HypostaticOnion:
No I mean, I flashed using MiFlash and it was whatever was in the b29 TWRP zip. I think it flashed some b29 dependant files, and screwed something. I flashed the b15 TWRP file from the other thread and all is well.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bluestudy:
Oh. I see the senior member tag under your name, so imagine that you've probably got a pretty good idea about what you're doing. Lol. I've been around for a while too, but this phone is just a little different than anything I've used so far. It does seem like things are getting better on it now, since we've got some official development and people working on it though.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HypostaticOnion:
Oh for sure. I've been flashing for a while, and different devices too. Samsung and HTC mostly and they're both totally different from each other. I did appreciate how similar MiFlash is to Samsung's Odin
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bluestudy:
Somehow I never got around to using Odin, but always hard it was a lifesaver. Same story here though, HTCs, Samsungs, a couple iPhones, you name it. I know this was the longest I've ever spent rooting a phone though. Lol.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] lafester:
Don't worry about the b29 just yet. You can flash b15 from drakens thread later. Just use su 2.79 as mentioned and you should boot fine.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HypostaticOnion:
Well, it didn't work just flashing the SuperSU. It I had flashed the TWRP from the b29 unlock thread, so I had to use the one with the b15 bootstack
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] lafester:
Strange as I ran that setup for awhile no problem. Makes sense though.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HypostaticOnion:
Had you updated to nougat prior to flashing TWRP? I mean it could just be a fluke. I've noticed this phone can be rather bizarre.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] lafester:
I was impatient and went to stock b29 to take ota, then tenfar tool TWRP, then flashed b29 unlock zip to get fastboot back. Everything ran fine like that for a few days then I went to lineage and updated to b15 stack.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] khangozzy:
Hi [MENTION=5672995]jcadduono[/MENTION] Can I use the 3.0.4-1 twrp to flash this new B19 ota for my A2017U on stock B15 rooted ?

https://dl1.ztems.com/zxmdmp/downlo...E/ZTE A2017U/85438/P996A01_B15_to_B19_FOTA.up
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] fathermocker:
And where do I find the non SR3 version??
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
TWRP will not flash OTA upgrade packages unless they are full OTA (no patching done, just writing) so no.

You should consider using https://xdaforums.com/axon-7/development/edl-emergency-dl-mode-twrp-unlock-t3553514 instead to upgrade your device. It will allow you to swap between different stock versions easily and fairly quickly once you set it up. It works on both locked and unlocked A2017/A2017U.

You can find that here: https://download.chainfire.eu/1016/SuperSU/UPDATE-SuperSU-v2.79-20161211114519.zip

Or for latest stable (currently also 2.79): https://download.chainfire.eu/supersu-stable
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] amphi66:
Welcome back. TWRP & Modem questions for you. .. ..

After an EDL restore of B15 & subsequent upgrade to B19 all runs fine, but TWRP is locked into v3.0.4-1. Flashing official v3.1 leads only to a black screen when booting to Recovery. I have tried several downloads to assure a valid file.

Fortunately the TWRP app allowed a succesful reflashing of v3.0.4-1, except once when all failed prompting the EDL restore.

Also I note Baseband is v00090 rather than the v00095 I would expect with Android 7.1.1.

Can you offer any insight? Thanks.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
3.1.0 is not ready for this device. I was not there to take it down / not recommend building it. 3.1.0 will require some (kernel) work from me which will probably not happen until late May. You can EDL the full B19 now as I have posted it, but I'm not sure that will help.

You will likely run into more problems with 3.1.0, especially with zips that rely on busybox (unless unofficial builds are including it), so I don't recommend updating TWRP for now.

I am not *actually* back, I will return to do things in late May - June. I'm enjoying the time that I have under 60 ms latency to play WoW, but after that I will go back to ~300 ms and from then on all I can do is play around in text editors because video games become unplayable lol.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HypostaticOnion:
I'm using 3.1.0 just fine.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] borijess:
I was on 3.1 and could not make a backup.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] HypostaticOnion:
Weird. I make backups all the time and restore them just fine
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] amphi66:
And I greatly appreciate your insight!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] baconboy:
I want to install TWRP and root, but just want to be sure. I have:

Unlocked BL

Stock recovery

Stock ROM 7.1.1

Can I literally just follow the OP and everything will be fine? I read someone had problems with SuperSU and SR3 version? Is that right?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] marcdw:
[MENTION=269984]baconboy[/MENTION], yeah, I had trouble with SR3 (can't remember the details). Just go with straight 2.79 to be safe.

LG G3 D851, LiquidSmooth v4.1 ROM, MultiROM, Tapatalk 4.9.5
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] baconboy:
You mean this one? https://xdaforums.com/apps/supersu/v2-64-2-66-supersu-mode-t3286120

The updated one?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] marcdw:
That's the system mode SuperSU thread. As of late it doesn't seem to work on most Nougat ROMs (as much as I would like it to as I prefer system mode). Gotta go for the official Chainfire zip (systemless).

Backup your ROM or boot for good measure.

SuperSU thread is here...

https://xdaforums.com/apps/supersu/stable-2016-09-01supersu-v2-78-release-t3452703

The flashable file will be...

SuperSU-v2.79-201612051815.zip

LG G3 D851, LiquidSmooth v4.1 ROM, MultiROM, Tapatalk 4.9.5
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] baconboy:
Success! Maybe? I followed the OP exactly and am rooted with TWRP. Or am I?

I checked root with a root checker, seems good. Now I'm following this for Viper (https://xdaforums.com/axon-7/help/dac-dobly-viper4android-v4a-t3448726 but Busy Box is saying it's installed but not in the right location, and SELinuxMode says it doesn't even root, despite SuperSU saying it does. What's wrong?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] piet8stevens:
I have a A2017G on 7.1.1 and was trying to get reliable backup/restore. The issue was that my restored backups did not work - the phone hung on startup and never even got to login. The TWRP restore reported success but did not restore all partitions that I had backed up. Specifically, there were red error messages 'Unable to locate partition by backup name:' for boot, modem, bluetooth, efs1, efs2, egsg, efsc and persist. This happened on 3.1.0-0-ailsa_ii.img.

I went back to 3.0.4-1-ailsa_ii.img and no more red errors and the opportunity to do a full restore. I wonder whether this is due to what [MENTION=5672995]jcadduono[/MENTION] described. In any case, I intend to stay on 3.0.4!

Luckily, it seems that all partitions were backed up by 3.1.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] piet8stevens:
Reliable backup/restore

As I indicated in the previous post, I am looking for a reliable backup/restore in TWRP. I want to have a good starting position in nandroid backup that I can reliably restore so that if anything goes wrong, I can just restore the backup and continue to work. But so far, it does not work like that.

An example: in order to get a functioning 7.1.1 B02 on my A2017G (which has an unlocked bootloader and a 7.1.1 boot image), I must first flash tron1's zip ZTE_A2017GV1.2.0B01_Stock_System_by_tron1 and then over that I flash fota_update_A2017GV1.2.0B01_complete.zip. When I do that, I can get the OTA for B02. Just with [MENTION=256766]tron1[/MENTION] 's zip alone, I can receive the OTA but not flash it with stock recovery because it reports a mismatch between the ROM and my phone.

Now, I want to save that working stock in Nandroid and be able to restore it so that it just works as it did when I made the backup. I tried just backing up the same partitions as on my HTC M7 (recovery, data, system), but that did not work. Then, I backed up all partitions except for cache and dalvik. But when I restore from that, the OS also does not start up. Does anyone know what can be done about that? And also, why tron1's zip generates a problem with the OTA?

In any case a big thank you to [MENTION=256766]tron1[/MENTION] and also to [MENTION=5672995]jcadduono[/MENTION]

Any insights in a reliable TWRP backup/restore would be much appreciated.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] sToRm1nG:
[MENTION=5672995]jcadduono[/MENTION]

Is there a reason for hardcoding the ro.product.model and ro.product.name in system.prop? I see the comment "#OTA compatibility"

However, this will break the OTA compatibility on all STOCK A2017G devices (and I guess chinese ones as well), since OTA is looking for P996A04 (which is properly set in /system/build.prop) instead of P996A01 which of course results in an assertion error:

assert(getprop("ro.product.name") == "P996A04");

script aborted: assert failed: getprop("ro.product.name") == "P996A04"
assert failed: getprop("ro.product.name") == "P996A04"
Updater process ended with ERROR: 8

I am using the latest downloadable version from TWRP.me (3.1.0-0).