Jump to content


* * * * * 4 votes

[How-To] Step by Step OEM Unlock and Root


  • Please log in to reply

#1 birdman (OP)

birdman

    Super Amazing Elite Recognized Developer

  • 433 posts

Posted 15 December 2011 - 04:21 PM

DO NOT USE THIS WITH ANY OTHER ROOT METHODS, THIS DOES IT ALL.

CONVERSATION WITH OTHER ROOT METHODS SHOULD BE IN ANOTHER THREAD

As people seem to be having trouble with this, heres a general walkthrough.

BEFORE DOING THIS - I recommend you install all updates.

THIS SHOULD WORK FOR BOTH CDMA AND GSM

General credits to Koush here - https://plus.google....sts/1Jsh9xPwnQP

Prerequisites:
  • ADB installed and ready to go
Get Downloads:

Fastboot #LINUX#
  • For proper set up of UDEV rules in case your machine doesn't recognize your device use this guide by dusinmj to get ALL device id's working.
!WINDOWS! (one of these driver packages will work, i suggest trying the first one first and going to the second one only if you get "waiting for device" in fastboot.) Download Root and Recovery Let us begin
  • open terminal (command prompt for windows) and change to directory of the fastboot binary (or add to path...but if you can do that then why are you reading this)
  • Hold your volume up and down and power button, wait for a vibrate and let go of buttons. (if in windows, wait for drivers to install)
  • run:
    fastboot oem unlock
  • choose yes on the unlock option on your phone screen.
  • press volume down till you get the "recovery mode" option, press power.
  • wait till you get to a blank screen with an open android in the middle. Press volume up + volume down and power all at once - you *SHOULD* get a menu.
  • *NOTE* Volume up and down to select in recovery - power to choose the selected option.
  • select factory reset, this will take about 5 minutes. IT WILL TAKE A LONG TIME
  • select reboot.
  • Make sure phone has booted.
*YOUR PHONE IS NOW UNLOCKED*



Now to install RECOVERY AND ROOT
  • Copy su.zip to your sdcard in android
  • power off your phone
  • boot into fastboot mode
  • Place img file in the same folder as fastboot
  • for the cdma galaxy nexus, run
    fastboot flash recovery recovery-clockwork-5.5.0.4-toro.img
  • for the gsm galaxy nexus, run
    fastboot flash recovery recovery-clockwork-5.5.0.2-maguro.img
  • press volume down till you get the "recovery mode" option, press power to select recovery.
  • select install zip from sdcard
  • press power and select the first option in the second menu
  • select the su.zip you put on your sdcard
YOU ARE NOW ROOTED, BUT CWM RECOVERY WILL NOT STAY AROUND IF YOU UPDATED TO 4.0.2 VIA OTA UPDATE, AS I RECOMMENDED AT THE BEGINNING OF THIS POST. SOO....
  • in terminal run:
    adb shell
  • then run:
    mount -o rw,remount /system
  • then run:
    mv /system/etc/install-recovery.sh /system/etc/install-recovery.bak

IF YOU HAVE TROUBLE DOING THIS STEP, JUST USE ROOT EXPLORER TO DELETE THE FILE. OR GO INTO ROM MANAGER AND REFLASH CLOCKWORK. EITHER METHOD WORKS

#2 r2doesinc

r2doesinc

    Just here for teh bewbs

  • 843 posts

Posted 15 December 2011 - 04:32 PM

you should mention setting up your udev rules in linux. i got caught up there for a while.

EDIT - The guide you linked ot in the post in incomplete. You need fastboot rules setup as well. I had my ADB rules setup, but not fastboot. Caused fastboot to hang at < Waiting for device >. My info was taken from here. http://source.androi...itializing.html

sudo nano /etc/udev/rules.d/51-android.rules

and add these lines with your username substituted in

# adb protocol on maguro (Galaxy Nexus)
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0600", OWNER="<username>"
# fastboot protocol on maguro (Galaxy Nexus)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e30", MODE="0600", OWNER="<username>"

Edited by r2doesinc, 15 December 2011 - 04:43 PM.

OMFG
OMGB

OMX
I can't speel for shit and cus like a sailor. Deal with it.

Join us on #omfx on Freenode.

Posted Image


#3 winner00

winner00

    ...

  • 422 posts

Posted 15 December 2011 - 04:39 PM

Shouldn't you only boot the recovery and not flash it until one thats meant for the LTE Nexus comes out?
Galaxy Nexus Setup
Rom: My CM9 Kang
Kernel:
franco Nightly r156
Recovery: Team Win 2.1.2
"Swagger is nothing. Talent is everything"

#4 r2doesinc

r2doesinc

    Just here for teh bewbs

  • 843 posts

Posted 15 December 2011 - 04:44 PM

I think b16 mentioned something about that possibly being the cause of his brick.

OMFG
OMGB

OMX
I can't speel for shit and cus like a sailor. Deal with it.

Join us on #omfx on Freenode.

Posted Image


#5 birdman (OP)

birdman

    Super Amazing Elite Recognized Developer

  • 433 posts

Posted 15 December 2011 - 04:50 PM

the current recovery for gsm devices works fine. just dont be an idiot....ONLY flash things meant for the device YOU use.

#6 tcpsyn

tcpsyn

    Member

  • Members
  • 10 posts

Posted 15 December 2011 - 05:00 PM

View Postbirdman, on 15 December 2011 - 04:50 PM, said:

the current recovery for gsm devices works fine. just dont be an idiot....ONLY flash things ment for the device YOU use.

I registered an account just to be the douche that says...

... You mean like don't flash the GSM recovery on your CDMA phone?

#7 b16

b16

    Developer Relations

  • 1,321 posts

Posted 15 December 2011 - 05:02 PM

View Posttcpsyn, on 15 December 2011 - 05:00 PM, said:

I registered an account just to be the douche that says...

... You mean like don't flash the GSM recovery on your CDMA phone?

Quoted from Koush himself: It can be used.

Remember - Remain respectful to others as you would wish to be treated.
Please read the RULES before posting.


#8 birdman (OP)

birdman

    Super Amazing Elite Recognized Developer

  • 433 posts

Posted 15 December 2011 - 05:03 PM

View Posttcpsyn, on 15 December 2011 - 05:00 PM, said:

I registered an account just to be the douche that says...

... You mean like don't flash the GSM recovery on your CDMA phone?

lol, touche

the partitions that matter are all the same. i men't like flashing a gsm ROM on your CDMA phone. recovery works flawlessly for backup/restore and wipes.

#9 Mustang302LX

Mustang302LX

    Super Duper Moderator

  • 4,611 posts

Posted 15 December 2011 - 05:08 PM

Nevermind I'm dumb lol.
**Samsung Galaxy Nexus | AOKP | Faux 017 Ultimate-SR**
Please read the RULES before posting.

#10 GTvert90

GTvert90

    Average Android

  • Members
  • 280 posts

Posted 15 December 2011 - 05:10 PM

Having trouble running the clockwork image... working on windows comes back saying can not load clockwork.. blah blah blah. help? thanks!