yashsingh1/xdaforums huggingface dataset:
[ZTE ZMAX Guides, News, & Discussion] krazyone2006:
I wouldn't even know where to began to take it back to stock now I'm that lost with it. With the luck I'm having I'd brick it next. LoL
[ZTE ZMAX Guides, News, & Discussion] DroidisLINUX:
Hey how about a simple flashable zip from twrp, that does what jcase told us to do

dd if=boot.img of=recovery

Make sure the locations of the boot are correct and full path or use mmcblk0p22 but a simple flashable zip from twrp to go back to booting boot from recovery, then all we have to do is from twrp is go to reboot options then reboot recovery, and we will boot up into read/write system, then after boot we can always use your flash to reinstall twrp. Would be fastest and easiest way as of right now to keep read write boot and twrp running

Sent from my Z970

root@draconis:/ # id

uid=0(root) gid=0(root) context=u:r:init:s0
[ZTE ZMAX Guides, News, & Discussion] tech_yeet:
That twpr saved my ass when I tryed flashing a zip from xposed I soft bricked my phone but think got I had my a recover...

Z999LP-A-LTE
[ZTE ZMAX Guides, News, & Discussion] ghet2rockuu:
u need to type adb shell , su , then id
[ZTE ZMAX Guides, News, & Discussion] thegrim11:
How did you get lollipop statusbar icons?
[ZTE ZMAX Guides, News, & Discussion] bcrichster:
Are you able to write it so that it may work with whatever build #? Wanna try it on the ZTE Warp Sync N9515, which seems to be locked down very similar to the ZMax.
[ZTE ZMAX Guides, News, & Discussion] skinlab:
Would this be any help to us? I know it's for the Source but, can it be modded?

www.androidforums.com/threads/tool-zte-source-cwm-flasher.816682/

Or this? ZTE Max unbrick tool

www.androidforums.com/threads/tool-alpha-zte-max-unbrick-tool-need-testers.836089/
[ZTE ZMAX Guides, News, & Discussion] krazyone2006:
Funny thing is if I run kingroot it instantly installs the two other apps and I have root back WTF lol no percentage bar straight to installing kinguser and the Chinese symbol app. I have no clue lol and kinguser changes all my notification sounds to some pansy stuff and won't allow me to change them back to the normal sounds wtf
[ZTE ZMAX Guides, News, & Discussion] ghet2rockuu:
now we need a custom kernel make this bad boy tuen into THE FLASH~~~~

guys make back up with trwp !!
[ZTE ZMAX Guides, News, & Discussion] Shady545:
Is it possible to install the TWRP and then push SU in via TWRP instead of having to do all the commands in cmd?
[ZTE ZMAX Guides, News, & Discussion] xtremeasure:
You guys are missing the point... Without doing the commands you don't make /system writable which negates having root.....

---------- Post added at 02:03 PM ---------- Previous post was at 02:03 PM ----------

Without being able to making system xpose doesn't work
[ZTE ZMAX Guides, News, & Discussion] DroidisLINUX:
You can delete kingroot and Chinese symbol app after install, only need kinguser

I don't see why everyone doesn't like it, no different than SuperSU.

Sent from my Z970

root@draconis:/ # id

uid=0(root) gid=0(root) context=u:r:init:s0
[ZTE ZMAX Guides, News, & Discussion] biledigger:
That's what I did with the superuser update package they have linked for the root process. Just keep in mind I don't have R/W capabilities. I have permaroot from doing it that way and permanent TWRP recovery. Just no R/W.....

---------- Post added at 02:09 PM ---------- Previous post was at 02:06 PM ----------

Can someone create a flashable zip that will give us R/W permissions? We could just flash it in TWRP. Would probably be a lot easier as well. Unless TWRP itself doesn't have a high enough privilege to make those changes. I don't know honestly. I am just tossing out random thoughts.
[ZTE ZMAX Guides, News, & Discussion] ghet2rockuu:
yea its no diffrnt it doesnt bother me it ask for permission just like Supersu
[ZTE ZMAX Guides, News, & Discussion] xtremeasure:
No matter what way you do it you lose recovery... You have to remember in order to mount system we need boot in recovery... Just follow the dd commands note that you have root
[ZTE ZMAX Guides, News, & Discussion] krazyone2006:
I have been trying that but have been completely unsuccessful at it
[ZTE ZMAX Guides, News, & Discussion] Shady545:
I'm not missing the point, I'm trying to understand it. Which is why I asked before I just started trying.
[ZTE ZMAX Guides, News, & Discussion] biledigger:
I followed the guide to the T. But like i said, when i entered the reboot command in ADB it reset everything back to default values, no root, no elevated priviliges, not a damn thing. That is why once i got temp root with King, i went ahead and used that TWRP app and installed TWRP, so far, i have kept recovery. Haven't lost it at all. On top of that, while i was inside TWRP, i flashed SuperSu with that update package, I have root as well. I can run sixaxis for my PS3 controller just fine, i just DO NOT have the system mounted for R/W. I just absolutely could not get past the part for ADB to reboot the phone and allowing me to continue the commands afterwards.

So i'll order it like this.

1 - I got temp root with KingRoot.

2 - I followed the guide up until it told me to reboot the device with the ADB command. Instead i did not reboot, i took these steps in this order. I chose not to reboot due to it not allowing me to do anything else in the command prompt with ADB, dunno why, it just forced me to start all the way back over from the beginning.

3 - i installed TWRP through the neat little TWRP installer that we so kindly recieved.

3 - I rebooted into TWRP and installed the SuperSu update package from the rooting guide.

4 - rebooted the phone and was graced with root privileges as well as retained the TWRP recovery. I can still boot to TWRP. I have Gravitybox installed with reboot to recovery added to my power menu.

5 - Lastly, now i am looking for a way to make the system R/W capable.

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

That is the same exact thing it was doing to me. I have the MetroPCS version of the phone with the newest OTA update, I think it is stopping us from continueing with getting R/W capabilities. I did however get TWRP and Root to stick. Just follow what i wrote in one of my posts about what order i went in to do it,. I hope it helps you like it did for me man. I may not have R/W capabilities. but i still have the ability to run quite a few root based apps. Sixaxis for emulation and gaming mainly.
[ZTE ZMAX Guides, News, & Discussion] ghet2rockuu:
are you guys putting MPCS aftr assuming its metro phone?

zte/P892T57_MPCS/draconis:4.4.4/KTU84P/20150414.115848.21363:user/release-keys

root@draconis:/ # setprop persist.sys.k P892T57_MPCS

setprop persist.sys.k P892T57_MPCS
[ZTE ZMAX Guides, News, & Discussion] fire3element:
Hey brother, sent you another PM. Getting ready to post some info over to the Root thread to help with all these questions.

Waiting on your input
[ZTE ZMAX Guides, News, & Discussion] krazyone2006:
Yeah so my phone is screwed I can't even get permissions in adb keeps giving me permission denied whenever I try to mount system and reboot recovery takes me into TWRP lol so word of warning if you don't know what your doing don't do it or you end up with a wasted awesome phone like me lol

this is my log from adb

Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\KrAzYoNe2015>adb shell

shell@draconis:/ $ su

su

root@draconis:/ # id

id

uid=0(root) gid=0(root) context=u:r:init:s0

root@draconis:/ # mount -o rw,remount /system

mount -o rw,remount /system

mount: Permission denied

255|root@draconis:/ # mount -o remount,rw /system

mount -o remount,rw /system

mount: Permission denied

255|root@draconis:/ #

i think its messed up LoL
[ZTE ZMAX Guides, News, & Discussion] biledigger:
No, i'm nor personally. When we get to the point of when it tells us to give the ADB Reboot phone command, we can stop and run the "id" command instead and see that we have the proper options for root access. BUT. When we run the ADB Reboot phone command, it reverts back to default with high end values, like he posted in his screen shot a couple of pages back. Well, since it reverts back to default or whatever, we cannot run the command to remount the system as rewritable, it just gives us a denied error pretty much.
[ZTE ZMAX Guides, News, & Discussion] tc0566:
It does work on newest metro update

It definitely does work on the newest metro update. Not only do I have full root with supersu.. I also have r/w in system every time I reboot my phone while holding volume up key. I do not even need to run the command to make system r/w
[ZTE ZMAX Guides, News, & Discussion] xtremeasure:
OK I'll repeat myself... Without over writing recovery with boot you can't mount system..... Your going to have to wait for boot loader unlock unless you run the dd commands
[ZTE ZMAX Guides, News, & Discussion] krazyone2006:
I have my original recovery.img that the first half backed up to my internal memory I also backed it up to my sdcard I just have no clue how to flash it back through adb or if it will let me.
[ZTE ZMAX Guides, News, & Discussion] xtremeasure:
You should have root in shell correct.... If you do we can figure out the commands to add it back... We just need to reverse boot and recovery
[ZTE ZMAX Guides, News, & Discussion] krazyone2006:
Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\KrAzYoNe2015>adb shell

shell@draconis:/ $ su

su

root@draconis:/ # id

id

uid=0(root) gid=0(root) context=u:r:init:s0

root@draconis:/ # mount -o rw,remount /system

mount -o rw,remount /system

mount: Permission denied

255|root@draconis:/ # mount -o remount,rw /system

mount -o remount,rw /system

mount: Permission denied

255|root@draconis:/ #

pretty sure I do heres my last adb session when I was tring to push su files again but both mount commands failed for me.
[ZTE ZMAX Guides, News, & Discussion] fire3element:
Yes, we need clarification on this, to keep people from bricking their phones. I am not going to even speculate because I do not know for 100% certainty that the commands I think are needed will not be in the wrong order and brick the device.

What are the exact commands (in order) that need to be input in ADB to make stock recovery bootable again?

What commands need to be input to RESTORE recovery?

And before we can restore recovery and do a Factory Reset, does the persist.sys.k need to be set back to the default values?
[ZTE ZMAX Guides, News, & Discussion] krazyone2006:
See I was thinking of doing a Factory Reset and starting from scratch but am afraid I will brick it if I do.
[ZTE ZMAX Guides, News, & Discussion] biledigger:
Ok, got mine working, i just had to go back into ADB and elevate to su before continuing further.

I just reinstalled TWRP again after all this. I no longer have R/W capabilities. Lol. I have to do this process again to get R/W back...
[ZTE ZMAX Guides, News, & Discussion] fire3element:
2 questions:

- Do you still have KingUser installed? What does it say on in app screen when you open it? "Successfully Obtain Root" ? (good, means KingUser has root control)

- Are you certain that you are booting into recovery? And are you sure that you set the reroute to boot system through recovery correctly? Might have switched it around.

(ok, so more than one question. I summarized. What do you want from me?)

You might end up needing to do a factory reset and start over. I would wait until we have clarification on the commands to follow to get back to stock recovery before you proceed.

And you have TWRP installed now. Wonder if a Factory Reset through TWRP will brick the phone? I am guessing it will.
[ZTE ZMAX Guides, News, & Discussion] ghet2rockuu:
u need to put MPCS after p829t57_MPCS

then after reboot recovry type adb shell then su then id then u remount

i had same issue heres the post http://xdaforums.com/showpost.php?p=60704316&postcount=2039
[ZTE ZMAX Guides, News, & Discussion] krazyone2006:
yes kinguser is installed and says Successfully obtained root when I open the app if I uninstall it and run root checker it says I don't have root.

I followed what was posted to a T it's just when it got to the push the files through ADB I got nothing but errors. So I should of been booting recovery but I have TWRP installed now so in theory I think I am booting system and not recovery and now thats why I can't get the mount commands to work in adb I think because when i type reboot revovery it takes me into TWRP and not just reboot the phone like it did before.
[ZTE ZMAX Guides, News, & Discussion] biledigger:
Yeah, i see you have root. Do you have full R/W capabilities? And if so. Do you have TWRP installed as well? If not, try installing TWRP and see if you lose your ability for R/W.

I have been testing it on mine, i can only have one or the other.
[ZTE ZMAX Guides, News, & Discussion] thegrim11:
I had TWRP installed but non of my Xposed modules wanted to work properly so I wrote boot back to recovery and I'm just going to wait until we get boot loader unlocked or equal to

¯\_(ツ)_/¯
[ZTE ZMAX Guides, News, & Discussion] krazyone2006:
how did you write the regular recovery back can you tell me by chance I need to do that.
[ZTE ZMAX Guides, News, & Discussion] fire3element:
You probably have already tried this. Using reboot [System] button in TWRP takes you into stock system? And reboot [Recovery] button takes you back into TWRP right?
[ZTE ZMAX Guides, News, & Discussion] biledigger:
This whole boot to recovery thingamajig. Is there a way we can toss the TWRP into that section of the OS? Or would that just end up bricking it?
[ZTE ZMAX Guides, News, & Discussion] krazyone2006:
Yeah it just takes you back into TWRP
[ZTE ZMAX Guides, News, & Discussion] ghet2rockuu:
yea i guess i dont have rw anymore because i cant change my bootanimation again . but my exposed is working fine so im good i really dont need root for anythng besides exposed
[ZTE ZMAX Guides, News, & Discussion] hroark13:
can some one that has the Metro 4.4.4 version please upload a copy of your boot.img
[ZTE ZMAX Guides, News, & Discussion] djc7980:
Okay tried your method several times I keep getting a message. I posted a pic of it in post #2109. I translated it and it means this: Mobile Root temporarily not recommend using the computer version PC version 5.09.9 success index took an average cumulative success
[ZTE ZMAX Guides, News, & Discussion] kardeef:
OK when your boot normal the bootloader makes /system unwritable. You can only write to the /system when you boot from the recovery.meaning in normal boot when done you will have a root with just the /system nonwriteable. To write to the system the only way is to boot from recovery bypassing the locked bootloader. I hope that clears that up :)
[ZTE ZMAX Guides, News, & Discussion] xtremeasure:
Open terminal and run these commands

cd /dev/block/platform/msm_sdcc.1/by-name

su

dd if=/sdcard/recovery.img of=recovery

I tested these on my phone and it worked didn't wanna give you something that bricked your stuff....

*edited to remove potentially harmful command at jcases's recommendation*
[ZTE ZMAX Guides, News, & Discussion] Shady545:
I just lost root. I haven't restarted my phone or anything it just went away. I got a notification from KingUser about something.

Checked root checker and I lost root somehow. Strange.
[ZTE ZMAX Guides, News, & Discussion] biledigger:
Yeah, same thing here man. Plus. I was just readjusting my system the way i want it to be, apps2rom and root uninstaller. All that good stuff. Well. Get this. I was in the middle of uninstalling stuff. Then it slammed me with an error saying i don't have permission to change anything, just in the middle of what i was doing. I already uninstalled stuff from root not even 5 seconds before hand. I had to reboot the phone again to get it back. But yeah. Imma install TWRP after i get this cleaned up the exact way i want it. And imma stick with TWRP. I would rather have a solid recovery than an edgy R/W setup. It still works great. But it's new. Gotta be careful with it.... Kind of like my wife.... She got mad last time i told her she needed an upgrade too..... BTW, Trickster mod is fantastic on here. We even have support for GPU control with it. Time to game on.
[ZTE ZMAX Guides, News, & Discussion] krazyone2006:
OK that worked I am on stock recovery now if I do reboot recovery in adb it boots me into the stock recovery now.
[ZTE ZMAX Guides, News, & Discussion] xtremeasure:
Your welcome ;)
[ZTE ZMAX Guides, News, & Discussion] krazyone2006:
Yes thank you that saved me lol

Ok I got it back to the point to where if I type reboot recovery it boots recovery as system this is the point where I can't get anything pushed through adb su file wise. If I have them on the phone extracted and zipped can I push them from there somehow.

In adb I get device not found anytime I try to push the files
[ZTE ZMAX Guides, News, & Discussion] Shady545:
Now that I have root again, how do I get you a copy of my boot.img? I'm running 4.4.4
[ZTE ZMAX Guides, News, & Discussion] Masterchief87:
Okay so I don't actually have a zmax but I've been considering getting one, just been waiting for root & recovery. Im going to do my best to make sense but I have a massive headache so please bear with me.

Something that worries me is the fact that you have to flash the boot.img to the recovery partition in order to boot into android with system r/w. This worries me because if you flash the boot.img to the recovery partition and mess things up to the point where the phone won't boot it seems like that would end up being a hard brick.

I was thinking, if the boot.img can be flashed to the recovery partition, can twrp also be flashed to the boot partition? If so, doing this would theoretically make it possible to recover from a bricked state when you have messed something up. From what I gather, (if it is even possible to flash twrp to the boot partition) it wouldn't be able to write to the system partition. I'm thinking that a pair of flashable zips, one that puts twrp on the boot partition and puts the boot.img on the recovery partition, and one that flashes twrp and the boot.img back to their correct partitions, might be viable, as a temporary solution, in order to make sure that nobody gets stuck "up a creek without a paddle." I apologize if I am incorrect or do not make sense.
[ZTE ZMAX Guides, News, & Discussion] doubtingthomas:
The 06 update had a dramatic improvement in USB connectivity to my linux laptop.

Instantly phone recognised and pics downloaded like they should. FINALLY
[ZTE ZMAX Guides, News, & Discussion] Masterchief87:
The easiest way is to install Flashify (for root users) and use it to backup your boot.img.
[ZTE ZMAX Guides, News, & Discussion] xtremeasure:
You have root correct??

Extract the zip and manually move the files to data/local/tmp

You need su daemonsu and install-recovery.sh from the arm folder
[ZTE ZMAX Guides, News, & Discussion] Shady545:
Here is a link to my boot.img running 4.4.4

https://drive.google.com/file/d/0BwXgO2JhAwG6aDNyMWRXbDRXN2M/view?usp=sharing
[ZTE ZMAX Guides, News, & Discussion] krazyone2006:
Ok so something isn't right if I try to copy and paste the files root Explorer force closes any ideas???
[ZTE ZMAX Guides, News, & Discussion] xtremeasure:
For those stuck with kinguser instead of supersu and that want to switch I may have a solution...

Run my recovery replacement commands and recover your phone

Follow the guide but after you set boot to recovery clear the king user data and uninstall it and kingroot.. Then reboot and finish the guide...

I'm thinking that king user is installing it's own su as soon as it can write to xbin Which is keeping you from writing your own su binary

---------- Post added at 05:41 PM ---------- Previous post was at 05:40 PM ----------

Where are you trying to put them??
[ZTE ZMAX Guides, News, & Discussion] jcase:
Don't do this, best case it does nothing, worst case something goes wrong and your phone won't boot anymore. This is just copying the boot overtop itself.
[ZTE ZMAX Guides, News, & Discussion] fire3element:
Wow, ok. Talk about in the nick of time. Was just about to do this like NOW.

So would you mind telling us the commands (in order) that we need to input to restore the factory recovery?

Thank you sir. Appreciate your work on this.

Edit:

And before a Factory Restore, do we need to set persist.sys.k to the default values? Not sure if that matters or not.
[ZTE ZMAX Guides, News, & Discussion] xtremeasure:
Noted.. I've already done it out of need to trouble shoot but I will edit my post to remove that...
[ZTE ZMAX Guides, News, & Discussion] jcase:
dd if=/path/to/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery

so something like this assuming your recovery image is at /sdcard/recovery.img

dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
[ZTE ZMAX Guides, News, & Discussion] xtremeasure:
cd /dev/block/platform/msm_sdcc.1/by-name

su

dd if=/sdcard/recovery.img of=recovery

reboot recovery

---------- Post added at 05:57 PM ---------- Previous post was at 05:56 PM ----------

Lol beat me to it always stealing my thunder :P
[ZTE ZMAX Guides, News, & Discussion] fire3element:
Right ok got it

[MENTION=222483]eXtreme[/MENTION]asure

Your post about the KingUser solution is pretty much right on what I was thinking about. Was just about to attempt that after a factory restore.

Thought about doing that yesterday, but it took so long to get root back. Figured i'd let you poke at it while I had root back.

Keep you guys posted on what I find.
[ZTE ZMAX Guides, News, & Discussion] krazyone2006:
I was trying to copy them to root were you said. Everytime I try to paste them in there the app force closes like I can't write to it. I'm thinking my phones toasted that's all there is to it. If I uninstall the kinguser my root check fails in root checker. But like I said before if I run rootking it automatically installs root user and Chinese symbol app no progress bar nothing and root checker passes as soon as kinguser is reinstalled. I can also just reinstall kinguser from the apk and as soon as I do root checker passes too. I'm seriously close to smashing the phone or throwing it in my fish tank I'm that fed up with it at the moment.
[ZTE ZMAX Guides, News, & Discussion] xtremeasure:
Wait for fire to finish testing our theory...

If it works it'll be your solution.. I'll rewrite a quick instructional here and have mingolian change the guide tonight
[ZTE ZMAX Guides, News, & Discussion] DroidisLINUX:
For anyone having trouble with jcase cmands and if you have to ask questions for full system read write, you probably shouldn't be doing it, so after you obtain temp root, just install the twrp recovery, and be happy you got full root, because if you have to ask questions on how to get full reqd, write you will probably end up like Brandon one of the bricked phones, just use twrp and be done with it

Edit: you were probably the kid in school the teacher yelled at, Y, because you didn't follow directions.

Sent from my Z970

root@draconis:/ # id

uid=0(root) gid=0(root) context=u:r:init:s0

---------- Post added at 07:16 PM ---------- Previous post was at 07:11 PM ----------

So [MENTION=2376614]jcase[/MENTION], when you said the boot flash overwrites boot, does this mean we can alter our boot.IMG, if so that is nice to know, coming from first an HTC eris with an unlocked boot loader, to a bionic with a locked one was such a headache, to an HTC evo that had unlocked also, to this root was a long time coming, and if we can overwrite boot.IMG eventually we will have an awesome phone/recovery/boot/custumroms

Sent from my Z970

root@draconis:/ # id

uid=0(root) gid=0(root) context=u:r:init:s0