yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] PureXTC:
Hey Akash,

How are you making out? Any progress going from Kingroot to SuperSU?

Have you tried the TWRP recovery version [MENTION=6087517]D97[/MENTION] and I used?

I've been trying to get my device to a workable state to give you a sort of walk through for that system image. In my efforts I managed to completely brick it. No worries though as I'm able to get fastboot alive with some very lengthy steps!

Let me know if you're interested in continuing this project...

Cheers
[Android Q&A, Help & Troubleshooting] akash227:
Hi there,

sorry to hear about that, that sucks! I haven't had the chance I've been bombarded with work the past couple of days, I'll take a look at it on Sunday and let you know how it goes!
[Android Q&A, Help & Troubleshooting] akash227:
HI there, I read the post for [MENTION=6087517]D97[/MENTION] and download the exact same twrp image however when it boots I don't get the same result he did. IT doesn't show any twrp device and have been trying to sideload superSU however no luck :/
[Android Q&A, Help & Troubleshooting] PureXTC:
What command did you run to get it going?

Are you aware there is no display on the tablet while its running?

If you have booted the TWRP image try running ADB DEVICES and let me know what comes up.

We'll get it sorted for sure!
[Android Q&A, Help & Troubleshooting] PureXTC:
Backing Up Your Partitions

First off, sorry for this being a long post. I've made it as detailed as I could with what I have available to me over several months of research and spare time.

This should get us everything we need to start experimenting with relative safety.

Let's BEGIN!

-----

install ADB/Fastboot drivers from connecting K85 to PC

-----

reboot K85 into bootloader (hold vol down + power)

press vol up or down to stop the countdown to auto-reboot (if applicable)

-----

copy all files from my ADB-FASTBOOT folder to the root of your drive (ie. C:\)

link here: https://1drv.ms/f/s!Ap9_Z3bA7_tfoC_8yDTPtNYhcxqf

-----

open a COMMAND PROMPT and make sure you are in the ADB-FASTBOOT directory

-----

type this command: FASTBOOT -i 0x19d2 devices <ENTER>

you should have a result showing ZTEK85 is detected (ZTEK85 fastboot)

-----

now type: FASTBOOT -i 0x19d2 boot twrp-3.1.1-1-nx512j.img <ENTER>

wait for about 10-20 seconds for the device to reboot

Windows should be installing drivers for lineage_nx512j (our new invisible TWRP)

-----

once completed type: ADB devices <ENTER>

you should have a result showing ZTEK85 is detected

if no device is shown open DEVICE MANAGER and look for ANDROID PHONE and see if GOOGLE NEXUS ADB INTERFACE is shown

If so, right click on it and select uninstall and also choose to delete the driver software for this device

now choose to SCAN FOR HARDWARE CHANGES (this is key)

Windows should now be installing drivers for lineage_nx512j

now look for an entry called LeMobile Android Device and ensure it installed Android Composite ADB Interface

go back to the command prompt and type: ADB devices <ENTER>

you should have a result showing ZTEK85 is detected (ZTEK85 recovery)

-----

now type ADB SHELL <ENTER>

you should be in the filesystem of the K85

-----

type TWRP <ENTER>

you should now be shown all the commands available to you

we are interested in BACKUP

-----

type TWRP BACKUP SM <ENTER>

hopefully this begins a backup of the SYSTEM partition with the current date/time for the filename. Unfortunately my device is corrupt and I can not confirm from this point on what exactly happens or where the file is located. I can only assume that it is stored in the devices INTERNAL STORAGE under the TWRP directory as that is usually the default.

------

type EXIT to close SHELL

-----

And finally type EXIT to close the command prompt.

I hope this sees its way to help those that want to tinker without the fear of completely bricking their devices. Be careful though as there is always a possibility of things not working the way you hoped (take me for example! LoL)

If you were able to backup your SYSTEM partition please share the file for me so that I may resurrect the dead!

Thanks and good luck! :good: ;)
[Android Q&A, Help & Troubleshooting] akash227:
I tried the boot command with adb and the image and it would restart to a blank black screen instead of TWRP, however the terminal still worked.

here's the link to the backup file it created: https://drive.google.com/file/d/1QOofrbLPJY1iZXYjUqFhf-B_bL0KJ_r_/view?usp=sharing
[Android Q&A, Help & Troubleshooting] PureXTC:
Unbelievable..... My K85 is alive once again.

Akash, I seriously can not thank you enough for your dedication and your willingness to help me out!

Your image contained Kingroot and I immediately decided to unroot it and delete the Kingroot app. It's nothing but crap, in my opinion. I've given Magisk a go on this tablet and I can say that it installs and runs without issue thus far. I was able to easily install it using the "invisible" TWRP using ADB SHELL.

Quick question - did you remove any of the stock apps after installing Kingroot or use Kingroot to automatically debloat? Curious as I could swear I had many more apps initially when I purchased my K85.

Again, thanks Akash. My gratitude can not be put into words. :highfive: :victory:
[Android Q&A, Help & Troubleshooting] akash227:
Not that I know of, I usually never used the tablet because it was crippled only used it to test my android apps, which is why I'm looking to develop a custom rom for it so I can use it more and more, I've been trying to get rid of king root for a while it drains the battery and seems like it just sends all your info somewhere like on of those sketchy apps. I'll definitely give magisk a shot, now that you're tablet is working do you think you would have time to port TWRP to the k85 with me??
[Android Q&A, Help & Troubleshooting] mederlock:
Hello Akash, PureXTC. I am also very interested in pursuing this line of inquiry into whether it'll be viable to create custom ROM's and kernels and all the rest for this tablet. I'm a neophyte to the development side of things so far, but I am willing to be a guinea pig and a tester for anything while I start learning how to do this stuff. Excited that you guys made some real progress!
[Android Q&A, Help & Troubleshooting] PureXTC:
TWRP has been PORTED!

Sorry, I couldn't sleep last night so I figured I'd have a go at it. It's just after 4am here so take from it what you will. :zombie:

FLASH AT YOUR OWN RISK!

ZTE_K85_TWRP_3.1.1-1

https://1drv.ms/u/s!Ap9_Z3bA7_tfoDlE_abd5_iZFWh6

There is a second "backup" recovery partition on these tablets which is accessible from the bootloader. On mine it is labeled as "reboot to nubia emergency recovery". This partition is identical to the primary recovery. If you are daring enough you can flash TWRP to the secondary recovery like so:

fastboot -i 0x19d2 flash recovery2 ZTE_K85_TWRP_3.1.1-1.img

This way you have both STOCK and TWRP recovery. Just choose "reboot to nubia emergency recovery" and TWRP will boot :good:

GOOD LUCK and HAPPY FLASHING!!

P.S. - [MENTION=5870200]akash227[/MENTION] Sorry I left you out of the porting! I hope you didn't have your heart set on compiling :silly:
[MENTION=2180325]mederlock[/MENTION] Just be sure to back up EVERYTHING you can. These devices are hard to brick and I've come back from the dead many times. I will be trying to create a bootable image to crash our K85's to put them in to a DIAG mode for a bit-by-bit backup. STAY TUNED :D
[Android Q&A, Help & Troubleshooting] akash227:
Wow unreal, nice work PureXTC! Going to try flashing as soon as i finish work! Next up, ROM development

Edit: since we have the system backup can I follow the android kitchen guide to creating a custom ROM ?
[Android Q&A, Help & Troubleshooting] PureXTC:
I can't say I'm familiar with that guide. Do you have a link?

As long as you've backed up all your partitions I see no reason why you can't begin tinkering. I've already hard bricked my device 3 times today. I've got a method to force DIAG mode and will share soon enough. It pairs very well with HDD Copy I linked earlier. This is my fallback to ensure I have a working system no matter what happens. Keep in mind if you screw something up badly enough and your device will not boot you have no way of running TWRP and therefore no way to restore your backups.

Don't be afraid to experiment. Like most Snapdragon devices these are damn near impossible to completely brick.

Have fun and enjoy customizing. Looking forward to any creation you come up with!
[Android Q&A, Help & Troubleshooting] D97:
Yeah! Great work [MENTION=830026]PureXTC[/MENTION]! I haven't tried your twrp yet but I'll give it a shot this weekend!
[Android Q&A, Help & Troubleshooting] PureXTC:
Forced Diagnostics Mode for bit-by-bit BACKUP

Okay, first off I should mention that this is a USE AT YOUR OWN RISK.

This will restart your device into a very specific Qualcomm diagnostic mode which will allow all the partitions to be visible.

Please ensure you have the proper Qualcomm drivers installed - link -> https://1drv.ms/u/s!Ap9_Z3bA7_tfoDuoEIGndGSTX2mq

Download the following image -> https://1drv.ms/u/s!Ap9_Z3bA7_tfoDo_P__8Rk6DUwz5

Open a command prompt in your ADB/FASTBOOT directory (place the downloaded image there to make things easy) and run the following command:

FASTBOOT -i 0x19d2 boot setdiagmode.img

*** DO NOT FLASH THIS IMAGE ***

This should cause your tablet to restart and new Qualcomm drivers to be installed.

Download a copy of HDD Raw Copy Tool and install it. You should now be able to select USB QUALCOMM MMC STORAGE as the SOURCE.

Upon clicking CONTINUE choose FILE as the DESTINATION (select your location to save the image. Be warned that this file could be very large depending on what you have installed. I would recommend a FACTORY RESET first).

Sit back and have a coffee, make dinner, etc, as this process will take 30m+ to complete.

The result will be a .imgc file that is a bit-by-bit copy of everything on your tablet. Keep this file somewhere safe. If you happen to brick your device this file will be your only hope of getting running again.

Unplug your tablet and hold POWER until it restarts.

You can now be that much safer to experiment without fear of creating a brick.

ENJOY ALL! :highfive:
[Android Q&A, Help & Troubleshooting] mederlock:
I'm out working on shift for a few weeks, but as soon as I'm back I'll start giving this a shot, and researching ROM development myself. [MENTION=830026]PureXTC[/MENTION] , you are freaking awesome for getting these resources together for a tablet that otherwise would have been stuck with the original garbage that came with it by stock. The rest of us ought to follow this up with some cool ROM's.
[Android Q&A, Help & Troubleshooting] PureXTC:
Thanks for the kind words [MENTION=2180325]mederlock[/MENTION]!

Just doing my part for the community. I've helped people as much as I am able.

An extension of gratitude should be handed to [MENTION=5870200]akash227[/MENTION] for if it wasn't his ability and willingness to share the parts of his partitions to me this tablet would have gotten nowhere ;) [MENTION=6087517]D97[/MENTION] also has some neat tricks, too!

We could very well be the only 4 that own this tablet. LoL

Cheers to all :cheers:
[Android Q&A, Help & Troubleshooting] russell jones:
I've been lurking watching this thread on and off for awhile. Been awhile since I last checked, but good timing today.

I got the k85 awhile back and was disappointed for us Canadians. But now I get to thank you guys for your hard work and persistence.

I'll try these out and let ya know how it goes.

Thank you again

Russ (5)? Haha
[Android Q&A, Help & Troubleshooting] akash227:
Yep, let's make the most of this opportunity and exposure and work together on making this nice piece of hardware some nice software :D. Also I noticed that for some reason my wifi doesn't work anymore I tap it and it briefly tries to turn on but then goes off? I tried a factory reset and that didn't fix the issue so it's going to drain through my data. Any suggestions?? Also how do I re-flash the old system image I backed up for you using ADB??
[Android Q&A, Help & Troubleshooting] PureXTC:
I don't have any direct suggestions for your Wifi situation. I had that problem loading an incorrect version of a ROM on different devices or loading the wrong drivers for the WiFi chipset. If you've messed with the ROM and removed/deleted/changed anything related to Wifi then a factory reset will not help as it doesn't have a stored location for untouched system files (unlike Windows which has many different sources).

Your old system image would definitely be the proper recourse (always good to have backups).

If the files are still on your K85 then you should be able to boot my version of TWRP and just simply install from your BACKUP using the RESTORE function.

However, if you've removed it, you'll have to place it somewhere you can access it. When I used your image (.zip) I unpacked it and transferred the files through ADB to /sdcard/ZTE and issued the TWRP command.

Follow if you will:

1) unpack image to your desktop (or root folder)

2) connect your tablet and fastboot my TWRP

3) open a command prompt where ADB is located

4) type ADB push "location of unpacked files" /sdcard/ZTE [ENTER]

ie. ADB push "C:\MYZTESYSTEMBACKUP" /sdcard/ZTE

5) type ADB [ENTER] - make sure your device is recognized

6) once completed (will take several minutes) type ADB SHELL [ENTER]

7) type TWRP [ENTER] and make sure TWRP is recognized for shell commands

8) type TWRP restore S /sdcard/ZTE (or is it TWRP S restore /sdcard/ZTE) - try whatever one works! :D

9) once completed your K85 should vibrate

10) exit everything and hold power to restart your tablet

Hopefully this all works. I'm pulling it from memory (not my favourite thing to do).

If not, you could always unpack your .zip to the internal storage on the tablet into the TWRP/BACKUPS/ZTEK85 folder and boot my TWRP and choose RESTORE. Or, unpack to a TWRP/BACKUPS/ZTEK85 directory on a micro-SD card and select "choose location" from RESTORE.

You've got a lot of options to get back on track now.

Let me know if you need any more help with this. I'll do my best to lend a hand!
[Android Q&A, Help & Troubleshooting] akash227:
I'm now thinking it may be a hardware defect, I haven't done anything different to my ROM at all except install the recovery but the Wi-Fi isn't coming back :/ Luckily it's still within the 1 year period so I can flash stock recovery and hopefully they won't know it was rooted

Edit: is there anyway you could send me your TWRP backup since I didn't create one ??
[Android Q&A, Help & Troubleshooting] PureXTC:
Do you still have your .zip that you sent me? That's an identical image of what a TWRP backup is (you used the command line to create it).

If not, just let me know and I'll factory reset mine back to stock (no Magisk root, user information, etc) and get you a copy.

Could you backup the following partitions in TWRP and send it to me as well?

Persist

Modem

Misc

Splash

Much appreciated.
[Android Q&A, Help & Troubleshooting] akash227:
KK I'll try through the CMD because in restore it wouldn't show any file explorer so I couldn't search for the zip but oddly enough if I hit install it works?? I'll attach that soon thanks!
[Android Q&A, Help & Troubleshooting] PureXTC:
If it weren't for bad luck I'd have no luck at all! In the midst of recreating a stock image for you things went downhill. I had many TWRP images on my external SD card in the K85 and BAM, corruption. Lost all my backups, customizations, etc. Spent a good portion of the day getting my tablet back to a usable state.

Well, all is not lost. I did manage to create a full stock backup and am currently uploading the SYSTEM partition to MEGA for you (if you still need it).

https://mega.nz/#!Gg9QxYKY!DfrnFJUnPNhsop3wzL4lzdWWCFqtRa-pFVQUvlJAZGo

Just extract the zip to the root of the internal or external sd card. The folder structure is set up correctly.

Side note - did you happen to install SuperSU on your K85? While I was bringing my K85 back I tried SuperSU and found that it did 2 things... Cut the boot sound off and didn't allow me to turn WiFi on! Seems odd. Installed Magisk and uninstalled SuperSU and the boot sound and WiFi worked just fine!!
[Android Q&A, Help & Troubleshooting] akash227:
Yikes that super strange, sorry to hear about that ! Yes I actually did install SuperSU, I just uninstalled it and the wifi doesn't seem to work still plus my SD card reader won't read my card either now :S So maybe that was it because I didn't notice it until a while after that, how did you fix the issue after installing SuperSU? What version of Magisk did you use when I try installing the latest on it fails in TWRP. Thanks for the image I'm going to try it out hopefully it works!

Edit: added the backup and tried restoring using twrp and it said it was successfuk but my zte just booted into my regular system i had before and wifi still doesnt work
[Android Q&A, Help & Troubleshooting] PureXTC:
Magisk was tricky to get going. I initially installed Magisk manager v5.4.0 but couldn't get v14.0 of the flashable zip to work in TWRP. I found it was easier to install SuperSU through TWRP and then have Magisk manager install v14 and then remove SuperSU thereafter.

The backup didn't work and looked like your regular system because you "dirty" flashed. Try formatting/erasing the system partition on twrp, flash my backup, choose to factory reset in TWRP and reboot. You'll know it worked since it'll take 10-20 minutes to start. It should go without saying that you'll lose all your settings, etc.

Any luck on backing up the partitions for me? No rush, just curious.

Thanks and good luck. Hopefully my suggestion restores your K85's functions.
[Android Q&A, Help & Troubleshooting] akash227:
Hey. So I may have bricked my device... So what happened was I chose the reset but selected system,internal data and cache as an option not realizing that my twrp backup was on the internal storage so I can't boot the tablet because the system partition is empty and when I try and mount my microsd to restore the TWRP backup you gave me it won't mount the microsd. Also I can adb push it to the device because I need to boot into the tablet to use adb. Also the tablet won't connect to my pc when I use the mount option in TWRP and select data. So I don't know how to restore from here using the command line I can access fastboot options from the bootloader but there's not fastboot command to push the backup to my internal storage and the TWRP backup isn't a .img so I can't use the "fastboot flash system system.img" command either.

Any advice??

Also I have the backup you asked but since it's on the device's internal storage and I have no way of connecting it to my pc and accessing it I can't upload it yet :/
[Android Q&A, Help & Troubleshooting] PureXTC:
Hmm, odd. I can see your error but it should be a minor one.

Follow these steps and hopefully we'll get you on your way:

1) unpack image to C:\ (should look like C:\TWRP\BACKUPS\ZTEK85\ZTE-K85-System)

2) connect your tablet and fastboot twrp-3.1.1-1-nx512j.img (I noticed my TWRP doesn't enable ADB - something is missing)

3) open a command prompt where ADB is located and type ADB DEVICES to make sure the K85 is recognized

4) type ADB push "C:\TWRP" /sdcard/TWRP

5) you can also use ADB pull (if you want to pull those backups)

6) once completed (will take several minutes) type ADB reboot-bootloader

7) now boot into my TWRP (whichever way you use)

8) With TWRP running select RESTORE and choose my image

OR TRY - fastboot flash system system.ext4.win from the command prompt (never tried it that way but it might work as well)

Don't fear, as long as the bootloader is intact and fastboot is working you are far from bricked. I've been worse! :D
[Android Q&A, Help & Troubleshooting] akash227:
Success ! Well almost, I got the system back on it but wifi isn't working still even bluetooth won't work ?? I'm attaching the files you requested, do you think if I flashed the stock recovery and sent it back under the manufacturers warranty they would be able to see that it was once rooted even though I uninstalled the root?

Thanks!

Edit: https://drive.google.com/file/d/17i9jfqGbqMS8zBtZiuxj6dKX57GUGW6X/view?usp=sharing
[Android Q&A, Help & Troubleshooting] PureXTC:
I appreciate you sharing your files I requested.

I'm sorry to hear that you're having such problems with your tablet. It definitely sounds like a hardware issue since you've basically restored it to stock.

There is no efuse or menu that comes up in the bootloader/stock recovery that shows you've rooted or modified the tablet from what I've been able to see. You should have no issues flashing back my stock system through twrp, flashing stock recovery after, then finally factory resetting using stock recovery. This should put you back to the way the tablet was when you first turned it on.

Best of luck to you and thank you once again!

EDIT: Just checked your attachment - Is it possible to grab your PERSIST and BOOTLOADER partitions as well before you send your ZTE off?
[Android Q&A, Help & Troubleshooting] akash227:
Thanks, Ill let you know how it goes!
[Android Q&A, Help & Troubleshooting] D97:
OT - I am curious to know if Bell will unlock my Grand View for me tomorrow (Dec 1 - CRTC regs come into effect). I'm not a Bell customer and picked this up second hand.
[Android Q&A, Help & Troubleshooting] PureXTC:
I'm in the same boat. Bell/second hand.

From what I've been reading you need to have the original account holder for any device call in to unlock. That's our Telco's being the best they can be! Also, there has been no mention of tablet devices falling into this criteria. Only mention of cellphones (devices with a voice plan). In saying this, YMMV, but I'm not hopeful to get anywhere. Especially with Bell!
[Android Q&A, Help & Troubleshooting] hcorion:
It's great to see some progress in this thread! So what do we have working? TWRP? no ROMs yet it seems?

I have 3 K85s, one with a cracked screen, I'll have to get TWRP on it. Do we have anyone working on a ROM?
[Android Q&A, Help & Troubleshooting] OMG-FFS:
I have a grand x view 2 (K81, with lesser specs than your device) with Virgin, but I requested a network unlock code and was given it with no issues, I'm a Virgin mobile customer though. Just saying that it seems data tablets and mobiles are treated the same, if you need a code, they would provide it, however I'm not sure about buying a 2nd hand device and asking for an unlock code. It won't hurt to try though, good luck.
[Android Q&A, Help & Troubleshooting] akash227:
Turns out my tablet was 2 months out of warranty so ZTE won't fix the wifi/Bluetooth issue. I still have a feeling it is a driver issue since it happened when I tried flashing a bunch of snapdragon 635 twrp devices in hopes of getting it into recovery. It doesn't hoever make sense that flashing my boot.img didn't fix it ? Any Ideas, I might just turn it into an emulator machine.
[Android Q&A, Help & Troubleshooting] PureXTC:
Sounds like you may have corrupted the persist partition.

If you can boot into my TWRP, mount the persist partition and then go to ADVANCED -> File Manager. Head to the persist location and see what files are there.

Mainly looking to see if you have a .bt_nv.bin file and WCNSS_qcom_wlan_nv.bin in there.

Did you happen to make a TWRP backup of all your partitions at some point?
[Android Q&A, Help & Troubleshooting] akash227:
I think that might be it because there is nothing there at all.... is it possible to copy someones existing persist files to mine?? Other than my boot.img and recovery.img I have no back ups :(
[Android Q&A, Help & Troubleshooting] PureXTC:
PM sent :)
[Android Q&A, Help & Troubleshooting] uterep:
I have read this complete thread ..hate to ask but can you dumb it down for me ...lol

Basically I just want to root this unit ..can you give me a step by step ( my goal is to remove the apps that I cannot uninstall to free up on board storage ) or is there a better way to achieve this ( I do have a 64 gig SD and transferred all apps I could)

Thanks for any help ( spoon feeding ... lol )