yashsingh1/xdaforums huggingface dataset:
[Blade General] xxMoon:
The serial number has nothing to do with the network working. My guess is the phone either doesnt support the bands your network uses, isnt actually unlocked, or you have to enter an apn.
[Blade General] alexenferman:
Thank you for answering. I did compile a TWRP and a Lineage recovery image but for some reason when I flash it through EDL none boot. (Black screen and red light on top). Is it because of a locked bootloader or wrong programmer? And also what magisk root version did you use because the latest version when I flash it my device won't boot either (Same black screen and red light). Did you ever came across those errors?

If you don't have answers you don't have to respond!

My device is a Canadian ZTE Z828 with android lolipop
[Blade General] xxMoon:
First, find a twrp that uses the same soc as your phone.

Modify the fstabs in the twrp ramdisc to match your phones partition layout.

Combine the twrp ramdisk with your stock recovery kernel.

As for magisk, after you flash it, you will have to wipe data. It won't boot because everything in encrypted.
[Blade General] alexenferman:
Thank you for your advice, but I realized that I am asking my question to the wrong person. I don't know what my phone is made of, but even with OEM unlock on, it won't boot anything unsigned at all. I made a TWRP image and Lineage rom for my device from source. When I flash the stock recovery without any modification, it boots. After unpacking, and repacking without making any changes, it flashes via edl but it won't boot! The same recovery image!! I don't know maybe the ZTE Z982 is different but I cannot figure it out. Thank you for responding though. Sorry for wasting your time.
[Blade General] xxMoon:
Hmm, when you repack, are you using test keys or is it just thowing out an unsigned image?
[Blade General] PrivyetCyka:
Complete instructions?

If someone has the complete instructions that wiuld be cool and ill retype them out in an easy to understand complete list....i just followed this to a t and bricked my phone ...smh... cmon guys how does this make sense? ex.. i just bricked my phone what happened? ohhh did you do (extra so and so step thats not in the list ) .... .... -_-
[Blade General] Chaos Storm:
I bought a new old stock Z982 that is from T-Mobile and is unlocked, followed the directions here and have gotten root but, it constantly pops up asking for a SIM unlock code. If I have a SIM installed the window will not go away. It says I have 255 tries.

Now, I can have someone unlock it, but I don't know if those unlocks will affect root etc. I mean, there must be something in recovery and boot that was modified that must have broken the unlock it had.
[Blade General] jediroadkilk:
SOL

Yup **** out of luck. Already posted this error with no help. Already tried to get unlock codes from several sites. You have a small tablet now. Enjoy.
[Blade General] Chaos Storm:
Ok, after some digging, I found the cause of the error and I think I have a solution, but still lots of testing to do.

When Moon put this package together, the SN in the ZTEConfig file was changed. Obviously our unlocks require a valid SN to validate against. So, because our SN have changed, we can't unlock.

I have edited this file, and am trying to get QFIL to flash the new ZTEConfig, and hopefully it will work.

Update: I've restored my SN, but still locked. Most likely need a new modem file. Off Googling....
[Blade General] xxMoon:
You know I havnt used this phone in over a year. Perhaps the latest firmware isnt compatible with the old root. If one is privy to using emmcdl.exe one can just flash the old firmware onto their device. This is the end of my support for this device.
[Blade General] sparrow6190:
my phone is bricked due to this crap months and months ago, ive tried everything. i followed the "instructions"(what a joke, i knew this was going to happen based on the vagueness and lack of success posts). Got as far as putting TWRP on there and trying to flash but it asked for a decryption password for some reason, but i tried anyways.

now I cant even factory reset to use the newer proven method, this sucks. anyone got any ideas how I can get my phone back? im currently phoneless due to waiting for a new screen for my Nexus 6 and was hoping to at least get this working as a spare. There have been way too many people with bricks due to this, its not cool.

really hoping someone can help me out. like someway to get past the decryption password or go back before twrp and factory reset? i dont even care about root anymore.
[Blade General] skromnaga:
Hi all, someone still has edl firmware? links no longer work. thanks in advance
[Blade General] guero.lurias:
hi thanks for thread, also all of the links dont work, not able to download b20 file?

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

is it possible to get an updated link to the b20 file please
[Blade General] guero.lurias:
please can i get a working twrp recovery for zte z982 please links not working anymore
[Blade General] guero.lurias:
please twrp for z982
[Blade General] atauydu:
please update download link
[Blade General] Emilson:
After flashing a file magisk_patched.img phone start up but with unknown Password on Startup screen. 👎
[Blade General] Emilson:
Because the main links ''B20 Via QFIL '' or ''B20 Via TWRP'' don't work anymore, I had to find an alternative way, manually looking for the files.

Couldnt find mirror links so this video Z982 ROOT gave me an idea to try flash it thru XTM_Inferno UniTool v1.5.7 by Gsm4Crack.

Files i used:

-''Inferno UniTool v1.5.7'' - software used to flash my z982.

- ZTE Z982 MPCS B25 Stock Rom - @ deadman96385 full stock rom with a rawprogram file "rawprogram0.xml" needed in UniTool flash process.

-Unitool ''boot file'' - file ''prog_emmc_firehose_8937.mbn' by @deadman96385 needed in flash process with UniTool.

(File is named as ''f.mbn'' if you follow the 'Z982 ROOT' video, I wasn't sure where to get this file but i figured out that this file i used is the same size as the one in the video (408kb) and luckily it worked.)

-boot(1).img - @neil.zap modified boot.img from this thread that let me root phone with magisk.

File should be renamed to 'boot.img' and placed in stock rom folder [replacing original file] to flash by UniTool. (i guess that modified ''boot(1).img'' file was for B20 build roms, but it worked on B25 somehow anyway).

-MagiskManager-v8.0.7.apk - app used to root my Z982 phone (optional, install it if that app wont appear after flash).

-''ZTE_Z981_Zmax_Pro _edl'' @ Loonycgb2 z981 edl tool used only to get edl mode "Qualcomm HS-USB QDLoader 9008'' port in Z982 needed to start flashing process by UniTool.

You can also use ADB if you have it with command: 'adb reboot edl' instead of using ''ZTE_Zmax_Pro_edl.bat' file from edl tool.

To ROOT your Z982 just try to follow the ''Z982 ROOT'' video using attached files from this thread.

This Process matches for me only with flashing a 'boot partition' / ''boot.img'',

Flashing 'recovery partition' with an TWRP recovery file that i found ''TWRP Z982 -030918 by ysh.alsager" or ''Z982 TWRP -300618 by Surendrajat'' is causing a black screen instead of booting to twrp recovery in my case, so i had to reflash it with stock recovery again, maybe its because build version i dont know.

My Z982 build number: Z982_MPCSV1.0.0B25

I hope it is understandable and it help someone, I spent half a day getting to it 🥱😑
[Blade General] DeeSoFly:
thanks for all the info
[Blade General] Google.1:
Are there any custom ROMs for this device or when will they release one?
[Blade General] tryptan:
I tried this method with both the B25 and B20 roms, unfortunately i just get stuck at boot screen and then need to "adb sideload" the original stock update.zip to get it working again. But i cannot get root or any of these methods to work on Z982 MetroPCS 7.1.1 - not sure why. I couldn't get UniTool to work either, so I had to use QDL to flash both the b20 and b25. They all flashed successfully, but got soft-bricked every time. I even replaced the boot.img file like you said so I'm not sure why I can't replicate your results
[Blade General] KurwaPhone:
How difficult is it to update a link..that's all anyone is asking for... It would take you 30 seconds ... If you're not gonna do that just delete this entire thread smh
[Blade General] KurwaPhone:
Somehow I had a backup? No idea how considering I've formatted this sd card multiple times but alas, the day is saved , files are here https://androidfilehost.com/?w=profile&uid=10763459528675587600 just ignore the nethunter kernel , that's for a different phone, and this is how I got it working

1.download/open QFIL and go to flat build and select the programmer (firehose file, make sure you unzip it first) and load it

2. Get into EDL , use adb reboot edl, axon 7 tool , whatever just get there and immediately (FAST) after entering edl you need to select the Qualcomm port up top if it isn't already then click tools then partition manager

3. If it doesn't work reboot to edl and try again. It's a pain sometimes but this should bring up your entire partition table, don't be willy nilly clicking around in here, find recovery and right click it and then click manage partition then load image and put the recovery you downloaded and then do the same with boot , then reboot and everything should be working

If you have any issues just remember you can always use QFIL to flash the stock boot and recovery Imgs also and could then use recovery to flash the stock update.zip if you need to start with a clean slate but otherwise you should be good to go
[Blade General] guero.lurias:
thank u bro
[Blade General] i_guana:
Every time I try, I get an error. I am using a ZTE Z982 running 7.1.1, and I'm following instructions to the letter. Here is the log:

2021-11-07 07:03:48.255 Start Download

2021-11-07 07:03:48.268 Program Path:D:\Download\Android\ZTE Z982\ZTE-z982-firehose-mbn\prog_emmc_firehose_8937.mbn

2021-11-07 07:03:48.270 ***** Working Folder:C:\Users\Iguana\AppData\Roaming\Qualcomm\QFIL\COMPORT_4

2021-11-07 07:05:18.424 Binary build date: Jun 25 2019 @ 03:16:15

2021-11-07 07:05:18.424 QSAHARASERVER CALLED LIKE THIS: 'D:\Download\Android\Qualcomm_Flash_Image_Loader_v2.0.3.5\QSaharaServer.ex'Current working dir: C:\Users\Iguana\AppData\Roaming\Qualcomm\QFIL\COMPORT_4

2021-11-07 07:05:18.424 Sahara mappings:

2021-11-07 07:05:18.424 2: amss.mbn

2021-11-07 07:05:18.424 6: apps.mbn

2021-11-07 07:05:18.424 8: dsp1.mbn

2021-11-07 07:05:18.424 10: dbl.mbn

2021-11-07 07:05:18.424 11: osbl.mbn

2021-11-07 07:05:18.424 12: dsp2.mbn

2021-11-07 07:05:18.424 16: efs1.mbn

2021-11-07 07:05:18.424 17: efs2.mbn

2021-11-07 07:05:18.439 20: efs3.mbn

2021-11-07 07:05:18.439 21: sbl1.mbn

2021-11-07 07:05:18.439 22: sbl2.mbn

2021-11-07 07:05:18.439 23: rpm.mbn

2021-11-07 07:05:18.439 25: tz.mbn

2021-11-07 07:05:18.439 28: dsp3.mbn

2021-11-07 07:05:18.439 29: acdb.mbn

2021-11-07 07:05:18.439 30: wdt.mbn

2021-11-07 07:05:18.439 31: mba.mbn

2021-11-07 07:05:18.439 13: D:\Download\Android\ZTE Z982\ZTE-z982-firehose-mbn\prog_emmc_firehose_8937.mbn

2021-11-07 07:05:18.439

2021-11-07 07:05:18.439 07:05:18: ERROR: function: sahara_rx_data:276 Unable to read packet header. Only read 0 bytes.

2021-11-07 07:05:18.439

2021-11-07 07:05:18.439 07:05:18: ERROR: function: sahara_main:982 Sahara protocol error

2021-11-07 07:05:18.439

2021-11-07 07:05:18.439 07:05:18: ERROR: function: main:320 Uploading Image using Sahara protocol failed

2021-11-07 07:05:18.439

2021-11-07 07:05:18.439

2021-11-07 07:05:18.455 Download Fail:Sahara Fail:QSaharaServer Fail:Process fail

2021-11-07 07:05:18.467 Finish Get GPT

Please help!
[Blade General] keintabak:
xxMoon's links in the first post are now broken; Example:

https://drive.google.com/open?id=1jXsKG1PuHeDGYIHg8XmxiB1nGpYUgSPm

If anyone has a working link to download it somewhere, please let me know.

I used the xxMoon root script and since then my Z982 has a corrupted serial and IMEI. In fact my corrupted serial now includes the word "xxMoon" in it, so maybe something interrupted a batch operation. Whatever the reason it happened, I now have no way to fix my IMEI and serial without access to the xxMoon root script so I can find out what method it could have written to my NVRAM, because all my attempts fix it using QFIL, qpst, etc have failed, as well trying to write the imei using adb shell in TWRP (i failed).

anyway, thanks.
[Blade General] sketchscarz:
Hey Guys!

So I've now adb pull the patched magisk boot and recovery images and have them on the pc, I think the next step is to patch somehow! HOw do I flash these without fastboot? We got teh FTM mode I guess I gotta look further into QFIL
[Blade General] xxMoon:
EDL/Firehose is the only way.

Boot into ftm

adb shell

adb reboot edl

if I remember correctly.

After that your should be able to use qfil.
[Blade General] 1katsu1:
I got stuck at startup my z982
[Blade General] 1katsu1:
I already solved everything, I just need to solve the black screen, someone help me
[Blade General] DeeSoFly:
same here. stuck on black screen
[Blade General] b00.f0087:
im stuck on the ZTE screen after getting into recovery and formatting data. Phone restarted once like that guy said on the video posted a couple comments up. Im waiting to see the metro pcs splash screen

Edit: Im rooted. I figured it out. I also have TWRP working.

it took me a while to find the right combination of boot images and recovery to get it work.

If youre on the black screen but can get into TWRP do this, Select wipe then format, type yes then enter do not reboot system, go back and select reboot then power off. make sure your phone is disconnected from your PC before powering it back on. If you still have a black screen go back into TWRP and do a normal wipe. Power off and hopefully it works.
[Blade General] evtoofly:
why didnt u tell us that we could of done this along? finally my system mounts as rw
[Blade General] AjtheLAF:
Re: B25

I don't know what I am doing wrong. I followed all of your instructions and system is still ro.

After QFIL finished and I force to boot it freezes for a very long time and I have to manually reset it.

Maybe I'm just an idiot, but I need help. :crying:
[Blade General] auTONYmous:
Same here. Only mine won't boot past bootanimation after qfil. Any ideas?
[Blade General] xxMoon:
Looks like you internal storage is encrypted and it not asking for your pin.

Your gonna have to wipe your data from TWRP.

Id recommend you backup data first.

Press and hold Vol+ and Power

Once the ZTE screen shows, let go of power while continuing to hold vol+

This will get you into twrp

Plug you phone into your computer and from your adb directory, run these commands.

adb shell

setenforce 0

exit

Now on your phone, in twrp

Swipe to allow midification

Tap Backup

check data

tap select storage

Select microsdcard

tap ok

Swipe to backup

Tap home

Tap wipe

Tap Format Data

Enter yes and tap the blue checkmark

Tap home

Tap Power off

Turn your phone on.
[Blade General] auTONYmous:
Couldn't backup. Luckily already had everything sync/backup because I've been flashing phones since Windows Mobile. I've learned the hard way.

At any rate, wiping data worked. Rooted, Magisk and RW working 100%
[Blade General] evtoofly:
was your system automatically mounted, or do yuu have to do it manually?
[Blade General] auTONYmous:
neither. I just deleted data, then reran the TWRP config, rebooted and it came up with rooted 1st-boot setup
[Blade General] busyinny:
So maybe stupid question, but am I supposed to find magisk somewhere after all of this, or is it supposed to be rooted already? I went through the process, had to wipe data (not a big deal for me), but after boot, I cannot locate magisk anywhere, nor am I allowed to su through a terminal app. Actually in TWRP (yes, that is my recovery, so assuming the QFIL process worked) I cannot find su in the /system/bin folder.
[Blade General] evtoofly:
Usually Magisk would be where your apps are, if not then u manually have to downlaod magisk manager, and it should be good to go from there. It may make u go through a setup but its not that much
[Blade General] cdogg111:
The Kernel Sources are on this website, it's open source therefore ZTE must provide

this site has kernel sources for every linux based ZTE system i believe. Sorry if this isn't helpful...

opensource dot ztedevices dot com
[Blade General] Emerl:
[/COLOR]

Doesn't work for me but thank you, I'm sure it'll help plenty.
[Blade General] james702007:
I can't seem to root my zte zmax pro..... Can I get some assistance please
[Blade General] evtoofly:
Moon didnt mention this but after you place the files you have to chmod it. Use root explorer and navigate to the folder u placed the two files in. press and Hold the first file, click permissions and where it says enter octal, enter 777. Click ok, and then hold the 2nd file and do the same thing. Reboot, and voila. Remember, chmod the files itself, if u try to chmod the folder service.d, it wont work, so make sure you chmod the files 0001setenforce and 0002remount

---------- Post added at 07:04 PM ---------- Previous post was at 07:02 PM ----------

your phone most likely has different firmware from the blade zmax, so that is probably the reason it wont work with ur phone. You have to look specifically for a root guide for the pro.
[Blade General] Emerl:
Yup, that was done with the initial process. Probably just doesn't work for my phone specifically.
[Blade General] evtoofly:
Do you for sure have it in the directory that he said to put it in??
[Blade General] Emerl:
Yeah. No idea
[Blade General] evtoofly:
What firmware are u on, I got one more method that should fix your problem?

View attachment 4744541
[Blade General] Emerl:
B25.
[Blade General] evtoofly:
I would say chmod 777 the service.d folder, probably wont work but its worth a try. If it doesnt work, open root explorer go to sdcard and make a new folder called B20. From here use the tool that moon provided an run the full flash b25 again. One problem that I faced was it couldnt read the b20 folder on my sdcard when flashing the files(Because I had no such directory made) , so by me making one, I think it was able to successfuly flash the files on my device, which led to my system finally being seen as rw

Me personally, i downgraded to b20 before even using his tool, but im sure b25 would work too, if worst comes to worst , you can always downgarade to b20 and try it.
[Blade General] james702007:
Thank you very much for the advice but I may have that wrong cause my model number says "z982" so I'm not 100% sure if it's either one ..... All I know is it won't root but I will definitely look for a specific root guide for my model thank you again
[Blade General] evtoofly:
no problem, wish you the best of luck in rooting your device:D
[Blade General] Anonwatch:
Going to give this a try soon. Need to make sure I have all my ducks in a row first. Really want to remove a few apps that came factory installed. Is a stable solid ROM available for the Z982? Thanks to all that worked on this.
[Blade General] evtoofly:
what apps are u considering deleting? And as of right now, no custom ROM for this phone is out yet. Hopefully pretty soon though because I, Myself would like to upgrade to pie
[Blade General] Anonwatch:
Facebook right from the start. Sick of it reinstalling. I try and keep all social network apps off my phone. I only use my phone for a phone may check email on occasion .
[Blade General] evtoofly:
is there a way to add 5g networks to this phone now that root access is available?
[Blade General] Anonwatch:
I do not believe that you can add those to it. That would be hardware issue not a software issue. But I could be wrong.
[Blade General] cdogg111:
did you recompile the kernel in DEBUG configuration? If so, why did you do this?
[Blade General] xxMoon:
Unfortuately, those sources wont provide the vendor folders which is needed to actually compile them.
[Blade General] cdogg111:
that's unfortunate, what about the /system/vendor installed on the phone? it contains binaries and lots of device info files. can this be reverse engineered in a useful manner? Also i'm curious as to why ZTE devs compiled the kernel in DEBUG mode...
[Blade General] uǝqnɹ:
hello. i wanted to ask if this easy root method is just to gain root access or is this for something else?

(first time trying to root here)
[Blade General] evtoofly:
Before it was just to get root access, now its to get root access and make your system read as rw:D , which u will see is beneficial for many reasons.

---------- Post added at 09:14 AM ---------- Previous post was at 09:01 AM ----------

Before it was just to get root access, now its to get root access and make your system read as rw:D , which u will see is beneficial for many reasons.
[Blade General] Emerl:
There would need to be a 5g modem in the phone's hardware for that to work.

---------- Post added at 06:47 PM ---------- Previous post was at 06:38 PM ----------

Honestly, I dont mount the system as RW enough for that to really be a pain for me. Right now, I just needed to remove apps. :D I will try your advice from the first paragraph, but I'm not trying to downgrade and lose data again. I already had enough of that trying to root the dang thing in the first place lol. I would try the downgrade if TWRP could successfully backup files.
[Blade General] evtoofly:
you could always use titannium backup and move your flash zip to your desktop, I encountered a bootloop messing around with some stuff, but without needing to format my data, my phone went back to normal after i flashed my backup file. Luckily I had one:D. But anyways, the first paragraph should work , let me know how it goes.
[Blade General] Matthew702:
WARNING !!!!! WARNING !!!!! WARNING !!!!! WARNING !!!!! WARNING !!!!! WARNING !!!!!

You will need 4GB of free space on your internal storage or this will brick your phone.

Close this windows to cancel.

Press any key to continue . . .

----Rebooting to TWRP------

----Continue once TWRP Has Loaded----

Press any key to continue . . .

----Disabling SELinux------

----SELinux has been Disabled-----

Press any key to continue . . .

rm: can't remove '/sdcard/B20': No such file or directory

Loading B20 Firmware to /sdcard/B20

This will take some time

adb: error: failed to copy 'B20\aboot.mbn' to '/sdcard/B20/aboot.mbn': remote secure_mkdirs failed: Out of memory

Firmware Loaded onto phone !!!

Press any key to continue . . . having problems any fixes?
[Blade General] evtoofly:
use root or es explorer, go to /sdcard, make folder called B20, retry method.
[Blade General] Emerl:
Same outcome :/

---------- Post added at 05:11 PM ---------- Previous post was at 05:10 PM ----------

Try Evtoofly's method first. I had the same issue until I wiped all data then did that process again.
[Blade General] evtoofly:
so did rw work for you?

Dang, that sucks your system stiill mount as ro. Are the files moon provided still in the service.d folder? Maybe they got deleted? Also when you settings<security , does it say encrypt phone under encryption? if not, that could be one of the reasons
[Blade General] xxMoon:
When it pushes the files to sdcard its actually pushing them to internal storage. Make sure you have 4 gigs of stoarage available.
[Blade General] Emerl:
Well, I had a problem this morning where I would get the "device or resource busy" error whenever I would try to do anything to the system in ES and RE. I didnt have my computer on me but I keep the stock B25 firmware on my SD Card. So I flashed that to go back to stock. When I was able to get home to my computer, I used the Qfil tool, booted up, loaded ES and noticed that the system was already in RW WITHOUT any files in the service.d folder. But, when I installed magisk and loaded a few modules, it reverted back to RO. So my guess is, it may have to do with Magisk itself, or the modules I install onto the device.

To answer your encryption question. As of now, my phone does say Encrypt Phone in Settings.