Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,758 Members 46,131 Now Online
XDA Developers Android and Mobile Development Forum

HOWTO: Root without unlocking the Bootloader

Tip us?
 
vinas1
Old
#1  
vinas1's Avatar
Senior Member - OP
Thanks Meter 68
Posts: 223
Join Date: Jan 2011
Location: Detroit
Default HOWTO: Root without unlocking the Bootloader

A lot of people have been asking, so here are my notes for gaining root w/o flashing or unlocking the boot loader.



Thanks to Chromium and The Jack of Clubs for their initial concepts and documentation.

Download ADB and set up Tools
Download the full Android SDK here:
http://developer.android.com/sdk/index.html#download
(scroll to the bottom of the page -> DOWNLOAD FOR OTHER PLATFORMS -> SDK Tools Only)

Extract the android-sdk-windows zip to c:\android-sdk

Browse to C:\android-sdk\android-sdk-windows\

Double Click and run SDK Manager.exe

Uncheck everything except the Android SDK Tools and Android SDK Platform-tools

Hit the Install xx Packages button


Download Super SU and TWRP
Download the latest TWRP here:
http://techerrata.com/browse/twrp2/bacon

Extract the TWRP image file and save it as recovery.img in the following folder:
C:\android-sdk\android-sdk-windows\platform-tools

Download SuperSU here: http://download.chainfire.eu/452/Sup...erSU-v2.02.zip

Plug your phone into your computer and Copy SU zip to the phone... (anywhere will work)


Get your Phone into Fastboot
Reboot the phone in fastboot mode (hold volume up + power). You should get a cyanogen guy smiling at you, this indicates the phone is in fastboot mode.

Open a command prompt and do:
cd C:\android-sdk\android-sdk-windows\platform-tools

Type:
fastboot devices

NOTE: You should receive a list of connected devices, this means your PC is connected to your phone. If not, something is wrong with ADB or your USB driver and you need to fix it before you can proceed!

Boot with TWRP and Flash
If “fastboot devices” worked without error, type this:
fastboot boot recovery.img

After the recovery.img transfers, your phone reboots into TWRP. Hit “Install” and choose the SuperSU.zip from the location on your phone that you saved it to earlier.


Once flashing is done, reboot and enjoy root. No re-imaging or unlocking your bootloader necessary.

Phone: OnePlus One
ROM: Stock CM 11.0-XNPH33R
Android Version: 4.4.4
Build #: KTU84P
Kernel: 3.4.0-cyanogenmod-g0ad30e5
Radio: stock
Firmware: stock
Recovery: TWRP
Mods: none



HTC Dream -> Galaxy S Vibrant -> HTC Sensation 4G -> Samsung Galaxy Note II -> Unlocked 1+1, all on T-Mobile
The Following 2 Users Say Thank You to vinas1 For This Useful Post: [ Click to Expand ]
 
_Beni_
Old
#2  
Senior Member
Thanks Meter 29
Posts: 163
Join Date: Jul 2013
Why is a unlocked bootloader a problem?
My phone: OnePlus One with PA4.xx (always the latest)
 
The Jack of Clubs
Old
#3  
The Jack of Clubs's Avatar
Senior Member
Thanks Meter 468
Posts: 2,721
Join Date: Jan 2007
Location: Houston
Quote:
Originally Posted by _Beni_ View Post
Why is a unlocked bootloader a problem?
if you dont want to wipe data, it also sets flags a tamper bit (which can now be reset), or if you just plain dont want to.
 
_Beni_
Old
#4  
Senior Member
Thanks Meter 29
Posts: 163
Join Date: Jul 2013
Quote:
Originally Posted by The Jack of Clubs View Post
if you dont want to wipe data, it also sets flags a tamper bit (which can now be reset), or if you just plain dont want to.
Ah ok, i did unlock and switch to PA after second boot , so there were no data that would be lost
My phone: OnePlus One with PA4.xx (always the latest)
 
playya
Old
#5  
playya's Avatar
Senior Member
Thanks Meter 1,958
Posts: 5,796
Join Date: Jan 2007
Location: Florida

 
DONATE TO ME
May I ad that there is an easier way to get adb. Its a program called minimal adb. This what I used originally in case someone prefers to just download that file. Just an option thats all...

Nice tutorial
DeBloat your AOKP/CM10 fast and pain free click here
---------------------------------------------------
"Hey if you can type it you can search it" - Google is your friend - Let me Google that for you
--------------------------------------------------
Proud owner of a 1+1 What you know bout dat life!
The Following User Says Thank You to playya For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes