[Complete Guide] SHIELD Tablet K1 Root, Custom Rom and Xposed Framework

Search This thread

animeware

Senior Member
May 23, 2012
195
35
Still trying to figure this out, I've put the twrp-3.2.3-0-shieldtablet.img file into the Minimal ADB+Fastboot folder here: C:\Program Files (x86)\Minimal ADB and Fastboot

I did this because I kept getting an error reading No such file directory found when I tried to flash twrp. So I thought if I put it there it would find it, but instead, I'm getting this error in the pic I've attached.

EDIT: I think I just fixed it. I forgot to add the word recovery. (facepalm)

SUCCESS! I have unlocked the bootloader, flashed recovery, and have just finished flashing SuperSU. Rebooting as we speak and all looks good so far.

Put the twrp in the adb folder
read this site it should help you bro
https://nvidiashieldzone.com/shield-tablet/shield-tablet-k1/android-7-nougat/root-shield-tablet-k1-nougat/

instead of adb flash do “fastboot boot twrprecovery.img"

maybe you want to rename the file as twrprecovery.img

hope this helps bro.
 
  • Like
Reactions: Digital DJ

redpoint73

Inactive Recognized Contributor
Oct 24, 2007
15,259
6,950
Put the twrp in the adb folder
read this site it should help you bro
https://nvidiashieldzone.com/shield-tablet/shield-tablet-k1/android-7-nougat/root-shield-tablet-k1-nougat/

instead of adb flash do “fastboot boot twrprecovery.img"

maybe you want to rename the file as twrprecovery.img

The twrp img file can be named what you want, as long as the same file name is used in the fastboot command. You can name it whatever.img if you want!

Also, the fastboot boot command only boots TWRP "remotely" and doesn't actually flash it to the device. This may be what you intend. But personally, I don't see a point in having an unlocked bootloader and root, without a custom recovery. TWRP is handy to have (much more useful than stock recovery), if you ever run into problems and need to recover.
 
  • Like
Reactions: animeware

Digital DJ

Senior Member
Nov 16, 2012
636
90
Now that I'm rooted, I have SuperSU on my tablet, but I want to try out Magisk. I can't seem to flash the latest Magisk onto my device. I am running Stock Rom on my tab (7.0). Also I can't seem to flash ANY Rom (which is why I stayed with stock) I keep getting an error message. I was originally trying to install CM13.
I am using TWRP 3.2.3-0, BL is unlocked, rooted, Stock ROM.

I go into recovery using Quick Reboot app from play store (but I've also tried doing this by going to recovery thru Minimal ADB & Fastboot) and click Install/select Magisk/swipe right/get an error. I don't know what I'm doing wrong.
 

redpoint73

Inactive Recognized Contributor
Oct 24, 2007
15,259
6,950
Now that I'm rooted, I have SuperSU on my tablet, but I want to try out Magisk. I can't seem to flash the latest Magisk onto my device.

You have to remove SuperSU before you can flash Magisk. I think if you look in the SuperSU threads, there is an "un-SU" or something like that, you can flash to remove SuperSU.

But I usually just restore the TWRP backup of the stock ROM, in order to unroot. You made one before rooting, right? Otherwise, flash stock recovery image.

Honestly, you should have just flashed Magisk to begin with. SuperSU development has been dead for a while. Not only is Magisk still being supported by its developer, but seems to throw less errors, lots of cool features, etc.

Also, be sure the ROM is specifically intended to your version: WiFI only versus LTE.

Also I can't seem to flash ANY Rom (which is why I stayed with stock) I keep getting an error message. I was originally trying to install CM13.

Can't really help, if you don't tell us what the error was. And when exactly you got the error message (just trying to flash the ROM itself, and the flash failed?).

Current version TWRP, full wipe (default wipe in TWRP), and any of the ROMs for the Shield Tablet Development section should work fine. Errors flashing multiple ROM is unusual. But hard to say, if you don't give any specifics.
 
  • Like
Reactions: Digital DJ

Digital DJ

Senior Member
Nov 16, 2012
636
90
You have to remove SuperSU before you can flash Magisk. I think if you look in the SuperSU threads, there is an "un-SU" or something like that, you can flash to remove SuperSU.

Can't really help, if you don't tell us what the error was. And when exactly you got the error message (just trying to flash the ROM itself, and the flash failed?).

Current version TWRP, full wipe (default wipe in TWRP), and any of the ROMs for the Shield Tablet Development section should work fine. Errors flashing multiple ROM is unusual. But hard to say, if you don't give any specifics.

I just flashed the unSU so I have removed SuperSU. Now trying to figure out how to get magisk on. I'll probably have to go back to stock img.

EDIT: I realize I never backed up my stock ROM before I added SuperSU. I'm looking thru the forum but I'm not finding the stock boot img. Do you happen to know where a link is for that?
Also in this pic, this is after I have flashed unSU to remove superSU and rebooted into recovery. I haven't flashed any ROMs to this device, only TWRP-3.2.3-0-shieldtablet.img and of course, SuperSU which I just uninstalled. So this pic I posted is when I'm trying to install Magisk-v18.1.zip. It keeps failing. Forget me trying to install any rom at this point, I can't even install magisk.

Another Edit: I can successfully flash nethunter-flounder-lollipop-3.0.zip onto my tablet and run kali Nethunter with no problem.

Yet Another Edit: I just realized that I have Magisk.zip on my external SD Card. I'm not sure if it makes a difference if it needs to be on internal storage, but I'm going to give that a shot.
 

Attachments

  • IMG_20190220_161509.jpg
    IMG_20190220_161509.jpg
    255.6 KB · Views: 154
Last edited:

redpoint73

Inactive Recognized Contributor
Oct 24, 2007
15,259
6,950
My responses below in red font:

I just flashed the unSU so I have removed SuperSU. Now trying to figure out how to get magisk on. I'll probably have to go back to stock img.

EDIT: I realize I never backed up my stock ROM before I added SuperSU.
Consider this a learning moment. You should always make a backup of the stock ROM (including boot.img) before doing any mods like root or custom ROM. It's the first thing I do, after flashing TWRP. For that matter, you should never do any of these mods, without knowing how to revert the changes, and go back to stock (either by making a TWRP backup, knowing where to get the stock recovery image, or preferably both). Always be prepared for the worst, and have an escape plan!
I'm looking thru the forum but I'm not finding the stock boot img. Do you happen to know where a link is for that?
You can download the stock recovery image from here: https://developer.nvidia.com/gameworksdownload#?search=tablet
Select the proper device (K1, LTE, WiFi - I think that last one is the 1st gen "pyro" Shield tablet), download the image, and the stock boot.img is contained in the zip.


Also in this pic, this is after I have flashed unSU to remove superSU and rebooted into recovery. I haven't flashed any ROMs to this device, only TWRP-3.2.3-0-shieldtablet.img and of course, SuperSU which I just uninstalled. So this pic I posted is when I'm trying to install Magisk-v18.1.zip. It keeps failing. Forget me trying to install any rom at this point, I can't even install magisk.
Flashing Magisk is usually very easy and almost foolproof. I assume you need to restore stock boot.img, as you already mentioned. Some folks have had success using unSU (to install Magisk). But restoring a stock boot.img is really the best/cleanest way.


Another Edit: I can successfully flash nethunter-flounder-lollipop-3.0.zip onto my tablet and run kali Nethunter with no problem.

Yet Another Edit: I just realized that I have Magisk.zip on my external SD Card. I'm not sure if it makes a difference if it needs to be on internal storage, but I'm going to give that a shot.
Pretty sure it doesn't make a difference. From what I've found, you can flash anything from TWRP (restore a backup, flash ROMs or root files) from either internal storage or external SD card
 

Digital DJ

Senior Member
Nov 16, 2012
636
90
My responses below in red font:

Yes, I understand I did something boneheaded and totally forgot to back up my shiz before I started goofing around. I'm fixing it now with these instructions:

SHIELD TABLET RECOVERY IMAGE FLASHING INSTRUCTIONS

To flash this recovery image to your SHIELD TABLET, run the following commands from
the directory where you extracted the recovery image package. If this is the
first time you have done this procedure, you must unlock the bootloader (see
below):

fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash staging blob

These are off the link you sent me. I found them last night but ran out of time to fix.

EDIT: Ok so I have successfully reloaded the stock boot img, re-flashed twrp, backed up my ROM, then installed Magisk. Going to take a stab at getting CM 13.0 on as a ROM. Yes, I forgot to make a backup before all this, but it really wasn't that hard to do, and going through the Nvidia instructions I posted helped me learn/remember a few things. It's been a few years since my last root job.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 31
    Hello Guys,

    At first a little background story:
    I bought the Tablet 3 Month ago. I have got the Update to Android 6.0 in January and unfortunately, I applied it.
    So If you don't want to apply a custom rom do not update to 6.0, because 5.1.1 is much better.

    I am not responsible if anything goes wrong.
    Ok, so let's get started:
    At first you must install Minimal ADB and Fastboot on your PC/Laptop/Mac.
    Windows: https://forum.xda-developers.com/showthread.php?t=2588979
    Linux/Mac: http://rootmygalaxy.net/install-adb-and-fastboot-on-mac-or-linux/
    Here is the link for all OSs: http://lifehacker.com/the-easiest-way-to-install-androids-adb-and-fastboot-to-1586992378
    Before you can Root or flash a Custom Rom you must flash the recovery:
    You will need:
    -Nvidia Family Drivers(Extract it in a folder of your choice): http://nvidiashieldzone.com/files/shieldtv/shieldfamilydriver.zip not working anymore, official link:
    http://developer.download.nvidia.com/mobile/shield/SHIELD_Family_WHQL_USB_driver_201801.zip
    -As many of you are experiencing problems with my previously mentioned TWRP 2.8.7.3 version I am replacing the link with the official TWRP Shield Tablet Download Site. Just take the newest stable version: https://dl.twrp.me/shieldtablet/ (Put the file into the ADB+Fastboot Folder)
    -TWRP 2.8.7.3 Recovery(Put the file into the ADB+Fastboot Folder): Download URL: https://www.androidfilehost.com/?fid=24269982087009777
    Developer Post: http://forum.xda-developers.com/shi...recovery-twrp-2-8-7-0-touch-recovery-t3257172

    Install the Drivers

    Connect your Tablet to your PC

    Windows:
    Open your Device Manager
    If there Is a device with a yellow ! klick on it and update the Drivers Manually(select the Folder where you extracted the Family Divers)
    Linux:
    You don't need any drivers
    (For every fastboot command in ADB+Fastboot you will need a "sudo" in front of it...)
    Mac:
    You also don't need any drivers
    (For every fastboot command in ADB+Fastboot you will need a "./" in front of it...)

    Flash Recovery
    1. Open Minimal ADB and Fastboot
    2. Type in
    Code:
    adb devices
    if you get a long term of numbers and letters your drivers are correctly installed, If this command does not bring up a device, check your cable connection and/or update your drivers again.
    3. Now you must enable developer options on your SHIELD Tablet K1
    3.1 Go to your Setting, scroll all the way down and choose Info(or similar)
    3.2 Tap seven times on the Build Number
    3.3 Now go back and now there is a new menu point Developer Options
    3.4 Open them and Enable USB Debugging
    4. Now type
    Code:
    adb reboot bootloader
    EDIT: 4.1 To enable the fastboot protocol, you must select "Fastboot mode" on the Tablet. After that type
    Code:
    fastboot devices
    in order to check if fastboot is enabled.
    5. Before you can do anything you must unlock the Bootloader
    5.1 Type in
    Code:
    fastboot oem unlock
    5.2 Follow the Instructions on the Terminal(On your tablet: press the volume down button and then the power button)
    6. Now you are ready to flash the recovery
    6.1 Type in
    Code:
    fastboot flash recovery twrp-x.x.x-x-shieldtablet.img
    6.2 Wait until it is finished then navigate with the volume buttons through the Menu on your Tablet and choose the option recovery mod with you power button
    7. You are now in a custom Recovery on this point you must decide what you want to do:
    -Do you only want to root your Device
    -Or do you want to install a custom rom

    Custom Rom
    If you want to be on the safe side you should consider wiping the /data partition (Troubleshoot section at the end of the Post)
    1. You can access your tablet from your PC
    2. Now move your Custom rom to your internal or SD Card Storage
    2.1 Download your custom rom of your choice.
    2.1.1 Cyanogenmod 12.1 (Android 5.1.1) and BlissPop v4.0.3 https://www.androidfilehost.com/?w=files&flid=150249
    2.1.2 Cyanogenmod 13.0 (Android 6.0) https://androidfilehost.com/?w=files&flid=27600&sort_by=date&sort_dir=DESC
    2.1.3 Nvidia Shield Tablet Resurrection ROM (Android 6.x) https://androidfilehost.com/?w=files&flid=60681&sort_by=date&sort_dir=DESC
    2.1.4 BlissPop
    2.2 Download Google Apps (Gapps) (ARM Device)
    2.2.1 Android 5.1 http://opengapps.org/?api=5.1&variant=stock
    2.2.2 Android 6.0 http://opengapps.org/?api=6.0&variant=nano
    2.3 Download Nvidia Apps (You still need to install Nvidia Shield HUB from the Play Store)http://forum.xda-developers.com/shield-tablet/development/shield-apps-cyanogenmod-12-t3070116
    3. In TWRP click on Backup and Swipe to Back Up
    3.1 Now go to Wipe. For a dirty flash you will only need to wipe the Dalvik and Cache for a full wipe select Dalvik, System, Data, Cache
    4. After it has finished Click on Install and choose the .zip of your Custom Rom
    4.1 To install the Google Apps click on Add More Zips and select the GApps zip
    4.2 And again click on Add More Zips and select nvsystemservices.zip
    4.3 now you can Swipe to Confirm Flash

    Root
    Download the Latest Stabel SuperSU file: http://download.chainfire.eu/supersu-stable and copy it to the internal or SD Card Storage
    For Android 7.0 (Nougat) the SuperSU r4 2.78 version is confirmed working.
    1. Open Minimal ADB and Fastboot
    2. Type in
    Code:
    adb reboot recovery
    to enter the recovery mode
    3. In TWRP click on Backup and Swipe to Back Up
    4. After it has finished Click on Install and choose the UPDATE-SuperSU-v2.65-20151226141550.zip (or similar) and Swipe to Confirm Flash
    5. Restart you Tablet and now a new App SuperSU is Installed

    Xposed Framework
    Download the Xposed Framework Zip file, take the newest version:
    (The Shield Quad Core has a 32 bit arm architecture, so you need the framework for arm)
    SDK21 for Android 5.0: http://dl-xda.xposed.info/framework/sdk21/arm/
    SDK22 for Android 5.1: http://dl-xda.xposed.info/framework/sdk22/arm/
    SDK23 for Android 6.0: http://dl-xda.xposed.info/framework/sdk23/arm/
    and the apk: https://forum.xda-developers.com/attachment.php?attachmentid=3921508&d=1477916609
    and move them to you Tablet.
    Developer Thread (for the uninstaller): https://forum.xda-developers.com/showthread.php?t=3034811
    Go to Recovery with Root
    1. Now that you have root you don't need you PC anymore. Go to the Play store and download Quick Boot
    2. Open Quick Boot and klick on Recovery
    3. Allow Root rights and the Tablet should boot into recovery
    Go to Recovery without Root
    1. Shut down your Tablet
    2. Press and hold the Vol down button and the Power button until the Bootloader screen appears
    3. Navigate with the volume buttons through the Menu on your Tablet and choose the option recovery mod with you power button
    Install Xposed Framework
    1. In the TWRP Recovery (Optionally you can make a Backup) select Install and choose the xposed-v80-sdk22-arm.zip file
    2. When you get an Error let me know
    3. Now Restart you Tablet and install the .apk file normally
    4. In the App Press Framework and now there should be a green writing saying: Xposed Framework version 80 is active
    5. Here is a list of very useful programs for the Xposed Framework: http://forum.xda-developers.com/android/general/best-xposed-modules-android-t3103027

    Please Leave a post if you are getting errors or something isn't clearly explained! And if I could help you, consider giving me a Thanks ;)

    Troubleshoot
    If you are stuck in a Bootloop:
    Without data loss(e.g. when you installed Xposed framework zip and its stuck in a bootloop)
    1. flash the stock rom boot image BUT ONLY IF YOU DONT USE A CUSTOM ROM (it will probably loose root). go to https://developer.nvidia.com/gameworksdownload#?search=SHIELD Tablet K1&tx=$additional,shield and download the latest NVIDIA SHIELD Tablet K1 Recovery OS Image
    2. Unpack the zip file and flash it to your Tablet
    Code:
    fastboot flash boot boot.img
    If something went wrong while flashing a custom rom (after that you will need to flash the custom/stock rom again)
    wipe the /data partition. It could be encrypted from the previous rom. Be aware that you need to reinstall the rom, therefore loose all your data. Troubleshot guide by agentbob123


    -Toby

    Credits:
    @xsquid mac support
    @agentbob123 suggestion to mention to wipe the /data partition as a solution for being stuck in a bootloop
    @champs777 suggested the newest TWRP
    @grävling mentioned importance of waiting until the recovery flash is finished
    5
    Great guide. Thank you so much for putting this together. I just got my tablet within the last week. It came with 6.01 loaded on it. The twrp-2.8.7.3 would not work. It would try to go into recovery. After about 2 minutes it would fail, then it would boot back into the OS. I tried out the newest version twrp-3.0.2.2 and it worked perfect. Figure I would share with others having the same issue.

    https://dl.twrp.me/shieldtablet/twrp-3.0.2-2-shieldtablet.img
    3
    5. Opened Device Manager to update drivers manually but i'm not getting the option to choose the file where I extracted the family drivers.

    Try the step-by-step instructions provided here:

    https://developer.nvidia.com/gameworksdownload#?search=SHIELD Family Windows USB

    But to be honest, I'm not sure you need the drivers installed to use adb/fastboot. I think the PC will just read it as a generic Android device, which is good enough.

    I have the USB Debugging selected when my tablet is connected to my PC. Not sure if I need to ot not.

    USB Debugging is needed (toggled "on") in order to use adb, but is not needed in order to use fastboot.

    Understand that adb and fastboot are related, but with important differences:
    -You need to be booted to OS to use adb.
    -You can only use fastboot when in bootloader-fastboot mode.

    Fastboot is what you really need to root or flash custom ROM (specifically, to install custom recovery TWRP). You should be able to boot to bootloader, select fastboot, and issue the command: fastboot devices
    And the cmd prompt should respond with the tablet's serial number (don't post it, just say whether it does or not).
    If it hangs, or some error message, then something is wrong. So let us know.
    2
    do step by step has always and works perfect thanks a lot !
    glad I could help ;)
    Soon I will add Instructions to install a Linux desktop environment like posted here 2 days ago, after I tested it thoroughly, because I think it's a good thing to have in a Complete Guide
    2
    Tablet won't boot?

    I bought a Shield K1. Before doing any customization, I updated it to nVidia's 1.4 software for Marshmallow so it is completely up to date.

    I followed this guide, unlocking the bootloader and installing TWRP 3.0.2-2. Once installed, I flashed SuperSU 2.78, then used the TWRP interface to shut it down. I booted it up, and it restarted a few times. One of the instructions said it might do that, so I allowed it to keep going. It never booted passed the bootloader though, so I held the power button.

    During this boot loop, I noticed various mount points were failing to mount.

    Now it won't turn on at all. No backlight, no indication it's receiving power at all. What can I do to get it going again?

    I was able to get the tablet to turn back on. I found in this thread something about the Shield occasionally having screen problems, so I kept trying. I plugged the tablet into my computer to see if I could get to fastboot without being able to see anything, and the battery logo came on the screen! Tapped power, and it came on. I'd tried plugging it into the wall, but not my computer before.

    I let it go through its cycle, and when I saw the error messages, I searched online and found that I should have formatted /data because with it having been encrypted, the bootloader couldn't access it after my modifications.

    I re-flashed EVERYTHING back to stock, then TWRP again, formatting /data and the caches, and finally it worked. Booted back to TWRP, flashed SuperSU, and it's working perfectly.

    Flash Recovery
    . . .
    6. No you are ready to flash the recovery
    6.1 Type in
    Code:
    fastboot flash recovery twrp-2.8.7.3-shieldtablet.img
    6.2 Wait until it is finished then navigate with the volume buttons through the Menu on your Tablet an choose the option recovery mod with you power button
    7. You are now in a custom Recovery on this point you must decide what you want to do:
    -Do you only want to root your Device
    -Or do you want to install a cutom rom

    Toby, you may want to update your guide to include instructions for formatting /data, perhaps as steps 7.[x-x] to avoid others experiencing the same problems I had.