Jump to content


Photo

How To Root 4.0.4 (.20X) Leaks From Linux


  • Please log in to reply
6 replies to this topic

#1 shobon

shobon

    Member

  • Developer
  • 89 posts
  • Twitter:shobon

Posted 05 June 2012 - 09:52 AM

Since I couldn't find a guide or anything like this online, I had to figure it out myself. So let me share the knowledge! This is for anyone who flashed a .20x leak without a rootkeeper and is on a "stock" ICS leak. This procedure will not delete anything on your phone (as far as apps and personal data are concerned).

Things you need to have prior to rooting:
  • Basic knowledge of the Linux terminal/command line
  • A Linux computer with adb already installed and working and in your PATH variable, as well as sudo enabled and configured for your user (I know that Ubuntu has sudo enabled by default, and I think Fedora does aswell, if you run into problems, replace "sudo" with "su -c" in the commands)
  • The boot image for the leak you're running (it should be called boot20#.img, just download Matt's unstuck tool for your leak and steal it from there)
  • This zip:

    Please Login or Register to see this Hidden Content

NOTE: I didn't include adb in the zip since there's a procedure you have to go through if you're running a 64-bit system. Do some research (such as googling "adb on {your distro}" or "android sdk on {your distro}") and get it installed, it's not that hard.

STEP -1: READ THIS FIRST
This is the root method used in Matt's RAZR Utility 1.6, with the relevant files all zipped up for ease of use. This method worked for me on .209, so I can't verify that it'll work on past for future leaks, but it should work on any 20x leak. By following these instructions, you're doing so by your own free will, and anything that happens to your phone is not my fault. This worked flawlessly for me the first time. If you run into any problems, it's your duty to try and solve it yourself. I'll try my best to help, but the best advice I can give is to make sure everything is plugged in.

STEP 0: getting everything setup
Extract the zip and put the leakroot directory somewhere in your home directory. Take the boot20#.img (note: the # should represent the number of the leak you're running) from the unstuck tool and move it into the leakroot directory. Now from the terminal/command line, move into the leakroot directory. If you're running a 32-bit version of Linux, execute the following commands:

Please Login or Register to see this Hidden Content


STEP 1: flashing the .85 boot image
Turn off your phone and connect it to your computer. Once it's completely powered down, hold both the volume buttons and the power button until you get to the menu. Enter Fastboot AP mode. It should say your device is locked, but just ignore that, it's normal. Execute the following command and make sure your devices is detected:

Please Login or Register to see this Hidden Content


If you see your device listed, you're good to go! If not, make sure you're in Fastboot AP mode on your phone, and that your usb cable is properly plugged in to both your phone and computer.

Run this command to flash the .85 boot image on to your device:

Please Login or Register to see this Hidden Content


Once completed, press the power button to turn off your phone. Hold both volume buttons (again) while powering on the phone, and when you get to the menu goto BP Tools. Your phone should boot like normal.

STEP 2: rooting your phone
Once your phone is booted, make sure you have USB debugging enabled (in Settings > Development). Execute the following to restart adb and check for your device:

Please Login or Register to see this Hidden Content


If you see your device, you're still good to go! If not, try unplugging/replugging your phone to your computer.

Execute the following commands and wait for the phone to reboot:

Please Login or Register to see this Hidden Content


Once your phone reboots, execute this commands and wait for your phone to reboot a second time:

Please Login or Register to see this Hidden Content


Once the phone is booted type adb shell, and if you see a # in there somewhere, things are going as they're supposed to. Type exit to leave the shell. Now execute the following and allow your phone to reboot for the third time:

Please Login or Register to see this Hidden Content


You should now be rooted and have Superuser installed! Download Root Checker from the market if you want to make sure.

Step 3: flash the correct boot image
Now that you're happy and rooted, you'll want to flash the correct boot image back on your phone, and not the old and crusty .85 one. Power off your phone and put it into Fastboot AP mode like you did in step 1. Make sure moto-fastboot can detect your device, then execute:

Please Login or Register to see this Hidden Content


Then press the power button to turn off your phone. Unplug your phone and boot it like normal and you should be all set! Now you can install Safestrap and install some AOSP roms (which, too be quite honest, is the only reason I rooted the phone. I used to only root to debloat the phone, but with ICS's disable feature, I didn't even need to root to debloat!).
  • mattlgroff likes this

#2 mattlgroff

mattlgroff

    The Dark Knight

  • Developer
  • 2,298 posts

Posted 05 June 2012 - 11:17 AM

Nice tutorial :D
  • shobon likes this

Please do not Personal Message me for help or troubleshooting. They will be ignored. Post in threads or start one in Q&A sections.

If you feel the need to donate to me, click here.


#3 tucstwo

tucstwo

    www.drdevs.com

  • Administrator
  • 14,435 posts
  • Twitter:tucstwo
  • Google+:tucstwo@gmail.com
  • LocationNJ
  • Current Device(s):LG G3 VS985, Nexus 7 (flo)

Posted 05 June 2012 - 12:11 PM

I would assume very similar commands could be done through terminal on a Mac.

Visit DRDevs.com hosting site for all official Droidrzr.com ROMs, Apps, GApps and other mods/files!!
Please PM me if you need help!
I will be hosting AOSP-Based ROM GApps packages!
Download the most Up-to-Date GApps Packages for AOSP ROMs from me here!


#4 shobon

shobon

    Member

  • Developer
  • 89 posts
  • Twitter:shobon

Posted 05 June 2012 - 12:20 PM

I would assume very similar commands could be done through terminal on a Mac.


As long as you have adb and moto-fastboot, this will work on any *nix system. Just use OS X's moto-fastboot rather than the one provided.

#5 cconcepts

cconcepts

    Member

  • Members
  • PipPip
  • 195 posts

Posted 05 June 2012 - 01:16 PM

Nice writeup !

Sent from my DROID RAZR using Tapatalk
  • shobon likes this

#6 shawnlee6184

shawnlee6184

    Member

  • Members
  • PipPip
  • 118 posts

Posted 22 June 2012 - 07:18 PM

Anything on the 211 leak and can we use terminal emulator

#7 shawnlee6184

shawnlee6184

    Member

  • Members
  • PipPip
  • 118 posts

Posted 23 June 2012 - 12:51 PM

Got rooted used utility 1.7





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users