Post Reply

[ROOT][10-29-13]How to Manually Root the Nvidia Shield

OP shimp208

10th August 2013, 04:58 AM   |  #1  
shimp208's Avatar
OP Recognized Contributor
Flag Boston
Thanks Meter: 1,591
 
2,265 posts
Join Date:Joined: Jan 2011
Donate to Me
More
Introduction

The following procedure will walk you through the step-by-step process for gaining root access on the Nvidia Shield.

Note: You must have an unlocked bootloader before you can proceed with this tutorial!
A tutorial on how to unlock your Shield's bootloader can be found here.

This tutorial also assumes how have the correct ADB and Fastboot drivers installed for your device, for a tutorial on how to install the ADB and Fastboot drivers for the Shield please look here.

Due to the nature of modifying devices system files the standard XDA disclaimer applies: I take no responsibility for bricked devices due to the following rooting procedure, no warranty express or implied is given, I will not be held responsible if you mess up your device by following this procedure!

Procedure

Before you begin please make sure to read and re-read the whole procedure, making sure you understand the directions.

1. Download the "Superuser-su.zip" file and the "roth-insecure-boot-63.img" file that are attached to this post. After you have downloaded the files, extract the contents of the "Superuser-su.zip" file which contains Superuser.apk and the su binary, and move them to your ADB and Fastboot folder on your computer. Also transfer the "roth-insecure-boot-63.img" to your computer's ADB and Fastboot folder.

MD5 Checksum for "roth-insecure-boot-63.img": F8BA5C48D0323D99E2A748C77BF647F6

2. Connect your Shield to your computer using your USB cable. For maximum reliability please connect the USB cable to a USB 2.0 port directly connected to the motherboard as USB ports on the front of a case panel or USB 3.0 ports can sometimes be unreliable.

3. Now that your Shield is connected to your computer make sure that "USB debugging" is enabled under the Developer Options section in the system settings menu (If the Developer Options section is hidden, go to the About Phone/About Tablet section of the system settings and then tap on the item that lists the Build number 7 times or until it says "You are now a developer" and the Developer Options section becomes visible in the system settings).

4. Open a command prompt window (cmd) in your ADB and Fastboot folder on your computer and issue the following commands (If you are new to using ADB and Fastboot I would recommend checking out this excellent guide to get you up and running):

Code:
adb reboot bootloader
Now that you are in fastboot mode let's make sure that the computer see's our device:

Code:
fastboot devices
If the computer see's our device then we can proceed, if it doesn't see your device make sure you are in fastboot mode and have the correct ADB and Fastboot drivers installed for the Shield.

Now we will be booting an insecure boot.img (ro.secure = 0) to our device to allow us to gain root acess:

Code:
fastboot boot roth-insecure-boot-63.img
After the insecure boot.img finishes flashing the device will automatically boot up using the insecure boot.img.

5.First we need to mount the /system partition as read/write so we can modify it:

Code:
adb shell
mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP /system
exit
6. Now we need to run the following commands to push the Superuser.apk and su binary to there correct positions and set the proper file permissions:

Code:
adb push su /system/xbin
adb push Superuser.apk /system/app
adb shell
chmod 6755 /system/xbin/su
chmod 644 /system/app/Superuser.apk
mount -o ro,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP /system
sync
reboot
7. After the device reboots and power on into the Android Operating System you should see Koush's Superuser app in your app-drawer and you should be rooted. If you would like to verify root access you can download and run Root Checker Basic from the Play Store here. Enjoy!

Credits: Koush for his open source Superuser.apk and the su binary (https://github.com/koush/Superuser)

If users would like me to create a 1-click root process of this please let me know and I will do so .

If you are stuck with the rooting procedures I would recommend checking out this great video tutorial by wwjoshdew.

Attached Files
File Type: zip Superuser-su.zip - [Click for QR Code] (1.58 MB, 1176 views)
File Type: img roth-insecure-boot-63.img - [Click for QR Code] (5.89 MB, 794 views)
Last edited by shimp208; 29th October 2013 at 08:12 PM. Reason: Updated to add support for OTA Update 63
The Following 5 Users Say Thank You to shimp208 For This Useful Post: [ View ]
10th August 2013, 09:35 AM   |  #2  
Gnurou's Avatar
Member
Flag Tokyo
Thanks Meter: 55
 
85 posts
Join Date:Joined: Aug 2010
Alternatively the following works in almost one click (one fast boot, actually): https://github.com/linux-shield/shield-root
10th August 2013, 02:17 PM   |  #3  
wwjoshdew's Avatar
Recognized Contributor
KCMO
Thanks Meter: 1,390
 
1,372 posts
Join Date:Joined: Dec 2008
More
Quote:
Originally Posted by Gnurou

Alternatively the following works in almost one click (one fast boot, actually): https://github.com/linux-shield/shield-root

It's just whole unlocking thing and giving up your devices warranty. NVIIDA being able to decline your RMA if your fan goes out and the unit overheats. Or if the scree dies (for example). I'll do it, just gotta grow a pair first.
10th August 2013, 05:20 PM   |  #4  
Member
Thanks Meter: 2
 
34 posts
Join Date:Joined: Apr 2010
Quote:
Originally Posted by wwjoshdew

It's just whole unlocking thing and giving up your devices warranty. NVIIDA being able to decline your RMA if your fan goes out and the unit overheats. Or if the scree dies (for example). I'll do it, just gotta grow a pair first.

I did my RMA and nvidia sent me a new 1. So you should get your new shield b4 you send it back if you happen to root it and the screen dies.
11th August 2013, 04:42 AM   |  #5  
Member
Thanks Meter: 1
 
51 posts
Join Date:Joined: Aug 2010
More
This is a pretty complicated way of rooting. All I did was unlock the bootloader, flashed Clockworkmod Recovery, and then flashed the SuperSu zip with that. Rooted! As easy as a Nexus.
Last edited by dark42; 11th August 2013 at 04:48 AM.
11th August 2013, 04:54 AM   |  #6  
shimp208's Avatar
OP Recognized Contributor
Flag Boston
Thanks Meter: 1,591
 
2,265 posts
Join Date:Joined: Jan 2011
Donate to Me
More
Quote:
Originally Posted by dark42

This is a pretty complicated way of rooting. All I did was unlock the bootloader, flashed Clockworkmod Recovery, and then flashed the SuperSu zip with that. Rooted! As easy as a Nexus.

I hear yeah, this procedure is meant for those that really want to understand how the basic rooting process works and who want to gain experience manually performing these types of procedures .

Sent from my SCH-I535 using xda premium
12th August 2013, 04:01 AM   |  #7  
agrabren's Avatar
Recognized Developer
Flag Pflugerville, TX
Thanks Meter: 9,611
 
1,442 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Quote:
Originally Posted by shimp208

I hear yeah, this procedure is meant for those that really want to understand how the basic rooting process works and who want to gain experience manually performing these types of procedures .

Sent from my SCH-I535 using xda premium

This method is actually nearly the same. It's a bootable self-contained image (like recovery is) that mounts the correct partitions, installs the necessary bits, and is done.
12th August 2013, 11:10 AM   |  #8  
i00's Avatar
Senior Member
Flag Brisbane
Thanks Meter: 367
 
785 posts
Join Date:Joined: May 2008
Donate to Me
More
I haven't done this yet ... but could you also provide instructions on how to revert? I ask this as it would be nice to know that there is a back-out plan.

Kris
12th August 2013, 11:39 PM   |  #9  
shimp208's Avatar
OP Recognized Contributor
Flag Boston
Thanks Meter: 1,591
 
2,265 posts
Join Date:Joined: Jan 2011
Donate to Me
More
Quote:
Originally Posted by i00

I haven't done this yet ... but could you also provide instructions on how to revert? I ask this as it would be nice to know that there is a back-out plan.

Kris

To unroot your Shield since you are only temporarily booting an insecure boot image rather then flashing it, if you run the following commands in either ADB shell or terminal emulator will unroot your device:

Code:
$ su
# mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP /system
# rm -f /system/app/Superuser.apk
# rm -f /system/xbin/su
# mount -o ro,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP /system
Then after you have entered those commands reboot your device and you'll be unrooted.
13th August 2013, 06:19 AM   |  #10  
i00's Avatar
Senior Member
Flag Brisbane
Thanks Meter: 367
 
785 posts
Join Date:Joined: May 2008
Donate to Me
More
Quote:
Originally Posted by shimp208

To unroot your Shield since you are only temporarily booting an insecure boot image rather then flashing it, if you run the following commands in either ADB shell or terminal emulator will unroot your device:

Code:
$ su
# mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP /system
# rm -f /system/app/Superuser.apk
# rm -f /system/xbin/su
# mount -o ro,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP /system
Then after you have entered those commands reboot your device and you'll be unrooted.

OK ... well lets say after rooting we install an app that uses root access to stuff up your device ... how do you restore the original image?

Kris

Post Reply Subscribe to Thread

Tags
root, root acess, root nvidia shield, root shield, superuser
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Shield Android Development by ThreadRank