View Single Post
  #2 (permalink)  
Old 12-23-2009, 11:51 AM
parkjam's Avatar
parkjam
Regular 'Geeker
Offline
Threadstarter
Location: O...H....They Blow
 
Join Date: Jan 2008
Posts: 487
Reputation: 1050
parkjam is halfway to VIP status based on repparkjam is halfway to VIP status based on repparkjam is halfway to VIP status based on repparkjam is halfway to VIP status based on repparkjam is halfway to VIP status based on repparkjam is halfway to VIP status based on repparkjam is halfway to VIP status based on repparkjam is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Howto: Root your droid

AS OF 1/10/2010, THE MOST CURRENT VERSION OF THE NANDROID RECOVERY IMAGE IS 0.99.2b. MAKE SURE THAT YOU FLASH THE LATEST VERSION AND KEEP IT UPDATED, ESPECIALLY IN THESE EARLY STAGES BEFORE A TRUE 1.0 RELEASE.


I take no credit for this tutorial, I just copied it from here. I made a few changes, but the bulk of the content was writtend by bootsdscoob at droidforums.net


I AM NOT RESPONSIBLE FOR ANYTHING. DAMAGE TO YOUR PHONE, WORLD WAR, STARVING KIDS IN AFRICA, OR BRICKED PHONES...DO NOT TRY THIS IF YOU DONT KNOW WHAT YOUR DOING!
that being said, this is all pretty simple

1) MANUALLY UPDATE TO 2.0.1(this can be used to unroot also)

1 - Download file. 2.0.1 android OS_update.zip
2 - Rename the file to "update.zip".DO NOT USE .zip if your using windows vista/7
3 - Plug your Droid into your computer via USB. On the Droid go to the Notifications bar and select "USB Connected" then press "Mount".
4 - Once the device is mounted, the SD card will show as a removable device on your computer
5 - Put the "update.zip" file you just renamed into the Root (top) directory of your SD Card.
6 - Unmount the device from your computer, and turn the Droid off.
7 - Hold down the "X" key on the physical keyboard and while doing so press the power button. Hold both of them down until you see a Triangle with an !.
8 - Hold the Vol+ button then press the camera button and you will see a menu.
9 - Using the D-pad on the physical keyboard, select the option to update with the update.zip file.
10 - This should take a little bit. Once it's done select the option to reboot the phone.
11 - The phone will take much longer than normal to boot, don't worry as it is normal.


2) ROOT (all in one file, doesnt require superuser permissions)

1 - Download file. root for droid.zip
2 - Rename the file to "update.zip" Make sure that you don't include the ".zip" extension if your computer is not displaying file extensions (Vista/Windows 7 doesn't show extensions by default)
3 - Plug your Droid into your computer via USB. On the Droid go to the Notifications bar and select "USB Connected" then press "Mount".
4 - Once the device is mounted, the SD card will show as a removable device on your computer
5 - Put the "update.zip" file you just renamed into the Root (top) directory of your SD Card.
6 - Unmount the device from your computer, and turn the Droid off.
7 - Hold down the "X" key on the physical keyboard and while doing so press the power button. Hold both of them down until you see a Triangle with an !.
8 - Hold the Vol+ button then press the camera button and you will see a menu.
9 - Using the D-pad on the physical keyboard, select the option to update with the update.zip file.
10 - This should take a little bit. Once it's done select the option to reboot the phone.
11 - The phone will boot. now you have root

3)blocking OTA updates

open terminal emulator (available in the android market)
enter exactly like this NOTE: Linux file and directory names are CASE SENSITIVE, mind your capitals and punctuation!!!

su (after typing this you will most likely get a popup asking you to allow root privelages to the program, allow them)
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
cd /system/etc/security
mv otacerts.zip otacerts.zip.bak (mv is the linux command for renaming a file, by just using mv, the file remains for you to restore later if you so choose)
mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system

sync
reboot


If you visit the link in the top, the tutorial continues on replacing your recovery image, which installs nandroid and allows you to make backups and flash custom ROMs. I would skip that and follow this tutorial which continues from here: http://alldroid.org/viewtopic.php?f=210&t=792

This gentleman has written a nice program that installs busybox (a linux command shell that includes a lot of commands that are needed for various things!), flash_image (the program used to flash images, imagine that!), and the patched recovery image for nandroid.

Updated for 14.0 recovery and added better instructions.
This version will remain here on alldroid and get small updates constantly(I will do my best to keep up with new recovery.img's especially) but I have put a full version on the marketplace that has more features like numerous theme change buttons multiple boot animation and font change buttons so you can change quick but still have that one you really like lol.... I will be updating the full version constantly as well but it will be more features added instead of just keeping up with the recovery, if there is something you would like to see added to it please don't hesitate to ask.



I have made an app for rooted droids to assist in installing busybox,flash_image and such.To use the app though you must have root first found here and have the the folder named Tools on the root of your sdcard (the folder and all files needed are included in the .zip file attached.) You must have the box in settings checked to allow install of apps from unknown sources (settings/applications)

Instructions for use:
Download attached Droid root helper.zip and unzip it, now copy the folder named Tools to the root of your sdcard.
Next install the DroidRootHelper.apk to your phone.
Now run DroidRootHelper...The first time you run it it will ask for su access then it will probably freeze(seems to be a problem with most apps requiring su access) give it a second or two and if a force close dialogue pops up click force close.Now re-enter the app and as long as you checked to always allow root access it wont have any more problems.


Now for the fun stuff first, mount the system
Next install busybox, then you can move on to install flash_image.
Now that you have flash_image working you can flash SirPsycoS's 0.14.0 recovery.img but dont forget to click Rename recovery-from-boot.p before rebooting to avoid the default recovery being re-flashed upon reboot.(as lot of people have already found out if you wanna flash a different recovery and I haven't updated this just put the recovery you want in the Tools folder on your sd card but rename it to the same name as the one in there. Example:The current recovery in the folder is recovery-0.14.0.img if you have recovery-1.13.5.img rename it to recovery-0.14.0.img and stick it in the Tools folder then use the flash recovery button.This method will work for alot of the new options like flash skull theme if theres a themed Launcher.apk and framework-res.apk made for the droid you want it installed put them in the skulltheme folder located inside the tools folder. )


Once done with that I would suggest to click reboot recovery and make a Nandroid backup by using the volume up/down buttons to highlight selection camera button chooses highlighted selection and the power button backs out of submenu's.

A breakdown of the buttons and what they do:
Mount = mounts the system read/write with the command: mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
Unmount = unmounts the system with the command: mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
Sync = syncs system with the command: sync
Rename recovery-from-boot.p = renames the recovery from boot patch to recovery-from-boot.old so your recovery is not overwritten by the default one on reboot.
Install and chmod busybox = Installs busybox to /system/bin and chmods it by running the busybox.sh in the Tools folder.
Install and chmod flash_image = Installs flash_image to /system/bin and chmods it by running the flashimage.sh in the tools folder
Flash 14.0 recovery = Installs the recovery-0.14.0.img with the command: flash_image recovery /sdcard/Tools/recovery-0.12.0.img
Install Skull Theme = Installs the Launcher.apk and framework-res.apk from the skulltheme folder inside the Tools folder by running theme.sh
Install Default Theme = Installs the Launcher.apk and framework-res.apk from the defaulttheme folder inside the Tools folder by running theme1.sh
Flash bootanimation.zip = Installs the bootanimation.zip from the bootanimation folder inside the Tools folder to /data/local
Reboot = reboots the phone with the command: reboot
Reboot Recovery = reboots the phone into recovery with the command: reboot recovery
Most of these options require the phone to be mounted so the files can be written to the system folders.Example:Install skull theme if you click this and the phone is not mounted the only command from the .sh its using that will work is reboot as the commands to copy the themed .apks reqire the system to be mounted.

Update version 5 adds user friendly tips.
If you have any questions and I am not responding quick enough here please feel free to email me at crotalusfreak@gmail.com
As with all apps and themes of this nature I accept no responsibility for any bricked or damaged devices you use this at your own risk!Attachment:
Droid root helper.zip [19.48 MiB]
Downloaded 1572 times





Attachments:

3.png [ 87.37 KiB | Viewed 1437 times ]


2.png [ 71.92 KiB | Viewed 1437 times ]




Hopefully this provides the information necessary to get the task done. If you have any questions, post em up and we can try to get them answered!

EDIT: After that is all done, go to the market and download the free app AdFree, which will modify your hosts file (the file that tells linux what internet sites are ok to connect to) and block most ad servers across the net, making it so you don't have to look at ads in your free ad based apps!

EDIT: As it seems that crotalusfreak has not updated his program in a while, I am going to explain how to updgrade your recovery image manually. This little tutorial assumes you have followed all the steps above and now have the 0.14 recovery image installed. Download the latest version of recovery image at http://sholes.info. As of 1/10/10, that version is 0.99.2b. Place that file (recovery-0.99.2b.img) in the root of your SD card. Now, in your favorite terminal program (adb shell on the PC or Terminal Emulator on your phone for example), type the following commands

su
This command allows you root privileges
flash_image recovery /sdcard/recovery-0.99.2b.img This command flashes the file to the recovery partition
reboot recovery This command reboots the phone into recovery mode, much easier than holding 'x' while powering on

At this point the phone will have rebooted into recovery mode, and you can verify proper installation by looking at the version number at the top of the screen.
__________________
Quote:
Originally Posted by turbochris View Post
I really need to stop f'n with this phone. I've stopped eating, stopped watching Tv and lost interest in jumping in the sack with the wife. I need an intervention.
Why donate to one person, when you can support the site that makes it all possible instead





Last edited by parkjam; 01-10-2010 at 08:53 AM. Reason: More information
Reply With Quote
This post has been thanked 7 times.