Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Among the files needed to root an Android device (such as superuser.apk and su), an unsecured boot image is also required (boot.img) to allow for the installation of the superuser and su.

I understand the theory behind the unsecured boot image (ro.secure=0 set in the ramdisk) - is it possible for me to make this file myself? Or at the least, where can I download it independently of the zip packages that it usually comes with? I'd prefer to create it myself or download the file from the source rather than rely on zipped packages (for version tracking and change logs).

Thanks!

share|improve this question
add comment

1 Answer 1

You generally don't need to edit the boot.img to root your phone. What's your phone model, so we can give you the instructions?

Edit: To root a Galaxy Nexus, first you have to unlock the bootloader, which is really easy since the GNex is a dev phone, just google how to unlock the bootloader, and follow the instructions. I recommend droid-lifes tutorial, but anyone should do. Then all that's left is the rooting.

  • First you have to download this zip file
  • Then unzip the file anywhere on you computer, like C:\gnex\
  • Install the Samsung drivers that are in the zip
  • After you have installed the drivers, turn the phone of and connect the USB to your computer and phone.
  • Open a command prompt from the start menu, then move to the directory you unzipped the file to (e.x. cd C:\gnex)
  • Now you have to boot your phone into fastboot mode, by pressing and holding both the volume-UP and volume-DOWN buttons and then press the power button.
  • Next, type fastboot devices into the command prompt you opened earlier, and check that your phone is in the list.
  • Now we have to soft-boot an insecure boot image by typing fastboot boot boot.img into the command prompt
  • When the phone has rebooted, open settings, and go to Settings -> Applications -> Development and check in the USB debbuging option.
  • Now execute all of these following commands, after each other, in the command prompt:

    1. adb root
    2. adb remount
    3. adb push su /system/bin
    4. adb push Superuser.apk /system/app
    5. adb shell chmod 06755 /system/bin/su
    6. adb shell chmod 06755 /system/app/Superuser.apk
  • Now your device should be rooted and ready.

share|improve this answer
    
I'm using a Galaxy Nexus. –  kaspnord Jan 23 '12 at 1:12
    
@kaspnord try that, if there's something you don't understand, or that doesn't work, email me at demizide@gmail.com, and I'll try my best to help you. –  kyrias Jan 25 '12 at 17:13
    
I know how to root my device, but thanks for the taking the time to write them out. My question pertains specifically to the creation of the unsecured boot.img file needed for the rooting process. –  kaspnord Jan 27 '12 at 17:18
    
you don't need to create an unsecure boot.img to root, you just need to unlock the bootloader, as i sais in my answer. –  kyrias Jan 28 '12 at 20:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.