+- +-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

Author Topic: All things root related  (Read 2989 times)

Offline Rob

  • Administrator
  • Super Hero
  • *****
  • Posts: 1,457
  • Karma: +215/-0
    • Zell Networking
All things root related
« on: October 16, 2010, 05:00:07 PM »
All credit goes to Android Forums - View Profile: CRPercodani, Android Forums - View Profile: UBRocked, and Android Forums - View Profile: OMJ for this guide.


What you need to know first:

 
Benefits of Rooting

[spoiler]
Okay, so you know “how” to Root your phone… but why do it? What exactly can you get out of a Droid that has been rooted?
Well, aside from being cool and geeky, there are a few real benefits. Think of you Droid as a supercar. If you drive it only in subdivision streets, you aren’t really pushing it to its capabilities. However, if you take it to a track or maybe the Autobahn, you can open her up and unleash its power. Obtaining root is like taking your car to the Autobahn, except nerdier!
Enough of the analogies! Show me what I can do.

Most people want to root their phones for one reason: loading custom   ROMs. A ROM, when it is applied to smartphone operating systems, is a   fully customized image that alters the function and form of the device.  For instance, a ROM could be a port of the HTC SenseUI found on Android phones like the Eris and the Hero. A person with root could potentially   take this port, if made available, and put it on their Droid.  At this   time, there are no real custom ROMs for the Droid, though advancements are being made every week.
Another benefit of obtaining Root is the use of Root-only applications. Some applications require Superuser permissions in order to operate. You can think of “Superuser” as a limitless administrative role for the   Android OS. It is given full control over what can be done on the software level. Superuser requires Root, and thus, so do certain apps. You can download Terminal apps which allow you to enter Android OS code   to communicate with the system, Drocap2 which can take screengrabs   anywhere on the phone, Adfree which disables advertisements on the web and in other apps, etc... There are many very cool programs being created specific to Root users!

One of the richest abilities given to Root users is scripting and customization. Given a mix of apps, the SDK, and scripts, Root users can change the way their phone feels and operates. Things like skinning every aspect of the OS, upgrading features that aren’t yet released, and creating all new functionality altogether could not be possible without Root. There is so much capability at such an early phase (remember, the   Droid was first rooted only a few weeks ago), it’s an awesome time to be a part of the Root community. There will be groundbreaking discoveries and releases that will completely change the way you think about your Droid.

Rooting your phone is a fun, educational, and useful way of getting the most out of your device. But as always, there are risks involved every step of the way. Just be smart and careful, and don’t get ahead of   yourself. I created this site as a guide for the average Joe, but even a plain-English guide can seem daunting for the more advanced operations. You need to keep in mind that by Rooting your Droid, you are most definitely going against the Verizon TOS and will be breaking your warranty. Though there are ways to revert back to a completely Root-free   device, I can’t assure you this will not get you into trouble in the   future.[/spoiler]

Avoid Bricking
[spoiler]
If you simply take your time and do things right, you can eliminate much- -if not all- -of that risk!
Obviously, the goal around here isn’t to pile as many non-working Droid’s into landfills as possible. We want you to successfully enhance the ability of your phone! So here are a few tips to help keep you from the dreaded brick…

Bricking a droid is actually quite hard to accomplish because almost anything can be recovered with an sbf file.
   
  • Follow directions carefully, making sure to read through them before beginning.
  • Go slow and take your time on every detail.
  • Research the action you are about to perform; if you don’t know much about it, become educated.
  • Trust your instinct. If you are unsure about something, perhaps you shouldn’t try.
  • Follow instructions fully. If you forget a step or quit before you’re done, there may be problems.
So happy rooting! And remember, as always, we are not responsible for your mistakes.
[/spoiler]

Preliminary Skills:

USB Debugging
[spoiler]
USB Debugging is a common procedure used in Rooting and hacking the Droid. Simply said, it allows the Android Debugging Bridge to work its magic by allowing a seamless handshake between Droid and PC. We use this mode for copying data between the Droid and PC, installing apps, reviewing phone data, and for development purposes. It is very easy to setup, requiring only a system setting to be enabled.

Begin by connecting your Droid to a PC via USB. Go into the Droid settings and select Applications.
   
 
Select Development.
   
 
Ensure “USB debugging” is checked. You will be asked if you want to enable debugging, select yes.
   
 
And that is all there is to it. You now have a direct connection with ADB and your PC. We will do this to our phones most every time we need to transfer files via ADB.

Sometimes, people will have incompatible preloaded drivers on their computers. This may result in a “Device Not Found” error when following some guides. To remedy this, please refer to the USB Debugging Drivers guide.
[/spoiler]
 
Mounting The SD card to transfer files

[spoiler]
Since your MicroSD card is buried underneath your battery, it is silly to remove it and use a card reader every time you want to copy files over to it. Fortunately, the Droid allows you to easily mount the MicroSD card as a mass storage device, similar to a USB Thumbdrive. Though we may also use ADB to copy files from our PC to our MicroSD card, this requires no Command Prompt or code use.
   
Mounting the MicroSD Card:

[spoiler]
Connect your Droid to a PC via USB. You will be notified that there is a USB connection. Drag down the notification shade and select “USB connected.”
   
 
You will now see an option to mount your phone; do so at this time by selecting “Mount.”
   
 
This will turn your Droid into a mass storage device. Your computer should automatically recognize it and an autorun popup should appear on your desktop.
   
 
Browse the files so that you see the contents of your SD card. You are now ready to upload files onto the MicroSD card.
[/spoiler]

Turning Off MicroSD Mounting:
[spoiler]
Slide down the notification shade and select “Turn off USB storage.”
   
 
An option will popup allowing you to “Turn Off”–select this now.
   
 
If you haven’t closed the SD Card folder on your computer, the window should close automatically once you turn off USB storage.
[/spoiler][/spoiler]

ADB, command line bridge between the Android SDK and the Droid

[spoiler]
The Droid is a highly hackable device, and much of this is due to the rich developer support directly from Google. As many of you know, the Droid runs the Android operating system which has been developed and pushed by Google. Not only do they provide the end-user OS you use on the phone, but they have created a full-featured SDK for private developers.

An SDK, or Software Developer’s Kit, is a collection of scripts, code, programs, and knowledge bases that assist people in creating Android apps and working inside the OS. It is a completely free package and is   absolutely essential for higher level mods. You can read more about the SDK and download it from here:
Android SDK | Android Developers

There is also an in-depth installation guide. It does not matter where on your computer the SDK folder is located and installed to. Follow the   install guide before proceeding.

Inside of the SDK is the cornerstone of most Android mods: Android   Debug Bridge. It is located within the tools folder (android-sdk-windows/tools) and can be accessed through Windows Command Prompt. This small application is a bridge between your computer and the Android OS on your phone. It allows you to push, pull, copy, and delete files as well as advanced scripts that perform specific tasks directly on your phone. You can think of it as an interface which extends your computer’s keyboard and files to your Droid.
In most of the upcoming Root Your Droid guides, you will see me reference the use of ADB, command prompt, Superuser permissions, and Linux code. This will all center around the SDK and Android Debug   Bridge. But before you can use it, it’s important to learn what it is you’re doing.

How to access ADB through your Windows computer:
[spoiler]
The first thing to know is how you access ADB to be able to use it. If you notice, double clicking on adb.exe in the tools folder does not open or run anything. In order to run ADB, we must do it through the   Command Prompt.

To do this, go to your Start Menu and select “Run…”.
   
 
A Run dialogue will pop up; type “cmd” and hit OK.
   
 
This will open a new window called Windows Command Prompt.
   
 
This program is similar to DOS in that it allows you to input text-based commands in order to perform tasks. From here, we need to navigate to the tools folder inside of the Android SDK folder (where adb.exe is located). To do this, we need to know the exact file path of   the tools folder. Open up the tools folder and at the top of the Windows Explorer window is the address, or file path, of the folder.
   
 
For instance, my tools folder is on the Desktop of my XP machine.  Thus, the full file path of the folder is:

C:\documents and Settings\user\Desktop\android-sdk-windows\tools

Where “user” is the username of your computer. Copy your file path for use in the Command Prompt.
Back to the Command Prompt, we now need to point to the file path we copied. To do this, we need to type: “cd” for change directory, then add a space. This will preceed the file path of the folder. Right click   inside Command Prompt and select Paste. You cannot use a keyboard shortcut to paste into Command Prompt, this will simply type out the keystrokes you used. Once we have typed in “cd ” and then pasted the file path, your Command Prompt should look like this:
   
 
Press enter and you will notice that where “c:” use to be is now replaced with the full file path of the tools folder.
   
 
If Command Prompt alerts you that “The system cannot find the path specified”, you probably have not pasted the correct or full path of the folder.<blockquote>Tip: Windows Vista and 7 users may go into their tools folder, highlight the full address and simply replace it with   “cmd”. Press enter and Command Prompt will open and will be pointed at the folder.
</blockquote>Once you have pointed Command Prompt to your tools folder, you may test to see if you have everything in order by typing “adb” and   hitting enter.
If all went well, Command Prompt should display a long list off available commands and descriptions. Here is an explanation for the most commonly used ADB commands:
  • adb push – Copies a file from the computer onto the Droid.
  • adb pull – Copies a file from the Droid to the computer.
  • adb shell – Emulates Unix terminal so that you may issue Unix Commands from the Command Prompt. (Learn more about Unix Commands for Droid modding)
  • adb reboot – Reboots the Droid. 
There are many more commands as you can see from the list Command Prompt gave you. These are simply the most common commands used in these guides. The guides will go more in depth as you go along. To use these commands, you must ensure your directory in Command Prompt is pointed to your tools folder.

You must be made aware that when accessing your Rooted phone through ADB, that you may be prompted to accept a Superuser Permission. To avoid seeing this in the future, simply select “Always” when this pops up. If you do not accept the permission, it will fail ADB.
[/spoiler][/spoiler]

Basic commands used within ADB
[spoiler]
While working with a Rooted Droid and ADB, you will notice that   there is an extensive use of code. Much of this code may be unfamiliar   to you, but it shouldn’t be scary.

When you see lines such as:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
cat /sdcard/flash_image > /system/bin/flash_image
chmod 755 /system/bin/flash_image
sync

You may feel like you are in over your head. But it’s a lot simpler than it looks!What you see above is called Unix commands. These commands are recognized by the base Linux kernel which controls the Android OS. Linux is an open source computer operating system; Google uses it to create Android. So these Unix commands are similar to the Windows Command Prompt commands we learned about in the Android Debug  Bridge guide except they are used for different systems.

When using Unix commands in future guides, it is important to read through them carefully and copy them exactly. Though a mistake will most likely return an error message and cause no harm, it is possible to miss a character and do some damage. Caution and deliberation is key! Here are a few common Unix commands used for Droid modding purposes. These certainly aren’t all of them, and all commands will be described   within individual guides.
  • su – (Substitute User) Used to change to “root user” to perform Superuser Permission commands.
  • mount – Readies a file system for use; allows the user to perform commands to a directory.
  • cd – (Change Directory) Changes to the proceeding directory.
  • chmod – (Change Mode) Changes the mode of files and directories; commonly used to change permissions.
  • mkdir – (Make Directory) Makes a new directory for files.
  • mv – (Move) Moves a file or directory from one place to another.
  • sync – Synchronizes all data which has been scheduled for writing.
As I’ve stated, there are many more commands which may be used while sending commands to your phone. Don’t fret; they will be described fully as you go along.

One important consideration to make is that after EACH line of Unix commands, you must hit enter to run the command before going on to the next line. You may not copy and paste multiple lines into Command Prompt at once.

I bet you’d never guessed you would be learning a new programming language while working on your Droid! Though you are far from mastering the Unix system, I hope this has familiarized you with some of the necessary commands needed for advanced root-related functions.
[/spoiler]

PC Drivers needed for the Droid
[spoiler]
Some people are having problems with getting their Droids to connect to ADB after enabling USB Debugging. The reason for this problem may be incompatible USB drivers. To manually install the correct Droid USB Debugging drivers, please go to this link:
Motorola USB Drivers
Simply download the Windows drivers that pertain to your system (32 or 64 bit), extract the installer, and install the drivers. Then, reconnect   the Droid via USB and enable USB Debugging.
This will solve some of the “Device Not Found” problems people are having.
[/spoiler]

Installing apps not found in the market
[spoiler]
Sometimes we want to install an app that has not been downloaded from the market. When we download an app from a developer or website directly, this is called an “Unsigned App”. Sometimes while hacking, we   need to use an app that isn’t in the market. For this reason, we need to enable the installation from unknown sources.

Begin by connecting your Droid to a PC via USB. Go into the Droid settings and select Applications.
 
Ensure “Unknown Sources” is checked. You will be asked if you want to enable debugging, select yes.
 
You have now allowed your Droid to install apps not downloaded from the market.
[/spoiler]
 
Now onto the good stuff.....

 
How to Root 2.1 from Windows without losing app data
[spoiler]
Most of the following was written by svt_gEEk
 
This method is meant for use with 2.1.  It will work with other versions of android but the kernel will have to be changed to a kernel that is for that version of android.
 
Windows Instructions:

  • Download 2.1 SP Recovery sbf to your C: root directory (C:\)
  • Download md5sum
  • Place md5sum in c:\windows\system32
  • Download in install RSDLite 4.6 for this file you may need an un-zip tool like WIN RAR
  • Download and install the correct motorola drivers for your windows   machine (32 for XP, 32 or 64 for Vista depending on Vista version)Current Motorola Drivers
  • Run command prompt (Start->Run then type "cmd" and hit enter)
  • Change directories to your C:\ root directory (cd c:\)
  • Type in "md5sum SPRecovery_ESE81.sbf"
  • Make sure the sum of the image is EXACTLY 9b6a336cd8f067d4487935468c758d89
  • Connect phone via USB and reboot, while rebooting hold UP on the dpad
  • Run RSD Lite 4.6
  • Windows 7 64 Bit Users See Hidden Instructions
      [spoiler]
      1. Navigate to the install folder which is usually C:\Program Files\Motorola\RSD Lite
      2. Right click on SDL.exeClick
      3. run as administrator
      [/spoiler]
  • Select the SPRecovery 2.1 SBF file
  • Click Start and wait for RSD Lite to flash the SPRecovery image onto phone and then wait on phone to reboot.
  • Download this update.zip
  • Mount your droid and place the update.zip in the root of your sd card.
  • Power off your droid
  • Power on your droid while holding X
  • Now you are in SPRecovery.  Click on install (Note you can use the   volume rocker to navigate and the camera button to select.)
  • Press allow update.zip Installation
  • Press Install /sdcard/update.zip (deprecated)
  • Once that is complete use the power button to get back to the main menu.
  • Press reboot system now
  • Go to the Market and Download Titanium Backup
  • Open titanium backup.  This will bring up a superuser request. Press Allow
  • Titanium backup will now give you an error.  Press ok then press Problems?
  • Press Yes, do it.
  • This will kick you out of titanium backup. Click on the notification you got from titanium.
  • Now that you are back in titanium press menu then batch.
  • Now press Backup all user apps
  • Press Run the batch operation
 
You can now install custom roms without fear of loosing your app data.
[/spoiler]

How to Root from Linux
[spoiler]
Under Construction
[/spoiler]

How to perform a nandroid backup
[spoiler]

How to perform a nandroid backup with SPRecovery
[spoiler]
  1.) Boot into recovery by holding X while powering on the phone
  2.) Click backup/restore
  3.) Press Simple Nandroid backup
  4.) Once the nandroid is complete press power to get back to the main menu
  5.) Reboot

That’s it
[/spoiler]

How to perform a nandroid backup with Clockworkmod Recovery
[spoiler]
  1.) Boot into recovery by holding X while powering on the phone
  2.) Click nandroid
  3.) Press Backup
  4.) Once the nandroid is complete press power to get back to the main menu
  5.) Reboot

That’s it
[/spoiler]
[/spoiler]

How to Flash a custom rom
[spoiler]
There are two ways roms are distributed and one is not common anymore at all. For now this is just covering the most commonly used form which is update.zip. Instructions for roms distributed as nandroid   backups will come later.
 
How to Flash a custom rom with SPRecovery
[spoiler]
  1.)    Download the rom
  2.)    Place the file in the root of your sdcard.(Not in any folder just on the sd card.)
  3.)    Rename the rom to update.zip. Be sure that you are only naming it update.zip. Windows often does not show file extensions and you will end up with files named update.zip.zip.  Renaming files with Astro File   Manager once they are on your sd card is a good solution to this.
  4.)    Power off your droid
  5.)    Boot into recovery by holding X while powering on the phone
  6.)    Perform a nandroid backup (always sound practice although this is not required)
  7.)    Wipe data/factory reset (Again not required all the time but unless you are sure it will work without wiping its smart to do so.)
  8.)    Wipe Cache Partition (Again not required all the time but unless you are sure it will work without wiping its smart to do so.)
  9.)    Click on install (Note you can use the volume rocker to navigate and the camera button to select.)
  10.)   Press allow update.zip Installation
  11.)   Press Install /sdcard/update.zip (deprecated)
  12.)   When the install is complete use the power button to go back to the main menu
  13.)   Reboot
[/spoiler]

How to Flash a custom rom with Clockworkmod Recovery
[spoiler]
  1.)    Download the rom
  2.)    Put the file anywhere on your sdcard.
  3.)    Power off your droid
  4.)    Boot into recovery by holding X while powering on the phone
  5.)    Perform a nandroid backup (always sound practice although this is not required)
  6.)    Wipe data/factory reset (Again not required all the time but unless you are sure it will work without wiping its smart to do so.)(This also wipes your cache partition so no reason to do that as well.)
  7.)    Press install zip from sdcard
  8.)    Press Choose zip from sd card
  9.)    Navigate to the file and click on it.
  10.)   When the install is complete press the power button to get back to the main menu
  11.)   Reboot
[/spoiler]
[/spoiler]
 
How to Flash a kernel
[spoiler]

How to Flash a custom kernel with SPRecovery
[spoiler]
  1.) Download the kernel
  2.) Place the file in the root of your sdcard.(Not in any folder just on the sd card.)
  3.) Rename the kernel to update.zip. Be sure that you are only naming   it update.zip.  Windows often does not show file extensions and you will   end up with files named update.zip.zip. Renaming files with Astro File Manager once they are on your sd card is a good solution to this.
  4.) Power off your droid
  5.) Boot into recovery by holding X while powering on the phone
  6.) Perform a nandroid backup (always sound practice although this is   not required.  Its actually not necessary at all if you have a kernel that you know works well somewhere on your sdcard.)
  7.) Click on install (Note you can use the volume rocker to navigate and the camera button to select.)
  8.) Press allow update.zip Installation
  9.) Press Install /sdcard/update.zip (deprecated)
  10.) When the install is complete use the power button to go back to the main menu
  11.) Reboot
[/spoiler]

How to Flash a custom kernel with Clockworkmod Recovery
[spoiler]
  1.) Download the kernel
  2.) Put the file anywhere on your sdcard.
  3.) Power off your droid
  4.) Boot into recovery by holding X while powering on the phone
  5.) Perform a nandroid backup (always sound practice although this is not required. Its actually not necessary at all if you have a kernel that you know works well somewhere on your sdcard.)
  6.) Press install zip from sdcard
  7.) Press Choose zip from sd card
  10.) Navigate to the file and click on it.
  11.) When the install is complete press the power button to get back to the main menu
  12.) Reboot
[/spoiler]
[/spoiler]
 
How to change recoveries
[spoiler]

Changing Recoveries with Rom Manager
[spoiler]
  1.) Go into Rom Manager
  2.) To Flash the current Clockworkmod Recovery press flash Clockworkmod Recovery
  3.) You will be asked to confirm phone model which should be Motorola Droid (CDMA) if it is not then do no proceed.
  4.) To Flash SPRecovery scroll to the bottom and press Flash Alternate Recovery
  5.) To Flash a Clockworkmod other than the current one scroll to the bottom and press All Clockworkmod Recoveries
  6.) Select the Clockworkmod Recovery that you wish to flash and press ok.
[/spoiler]

Changing Recoveries with Terminal
[spoiler] 
The current clockworkmod recovery can be downloaded Here

SPRecovery .99.3b can be found Here

Which ever recovery you are using should be in the root of your sd card.

You will also need Terminal Emulator from the market. I use the one by the dev Jack Palevich

To make this clearer I am going to put what you should actually type red.

I will be using SPRecovery as the example here but the process is the same for Clockworkmod just change the filename from recovery-0.99.3b.img to recovery-clockwork-2.5.0.1-sholes.img or whatever the name of the current clockworkmod recovery file is.

  1.) Start Terminal Emulator
  2.) type su then press enter
  3.) type cd sdcard then press enter
  4.) type flash_image recovery recovery-0.99.3b.img then press enter
  5.) you are done but I would suggest typing reboot recovery then press enter so you can be sure it worked.
[/spoiler]

Changing Recoveries with ADB
[spoiler]
The current clockworkmod recovery can be downloaded Here

SPRecovery .99.3b can be found Here

Which ever recovery you are using should be in the root of your sd card.

You will need the Android SDK so you have Android Debug Bridge SDK can be found Here

To make this clearer I am going to put what you should actually type red.

I will be using SPRecovery as the example here but the process is the same for Clockworkmod just change the filename from recovery-0.99.3b.img to recovery-clockwork-2.5.0.1-sholes.img or whatever the name of the current clockworkmod recovery file is.

  1.) Start command prompt if you are in windows or terminal emulator if you are in Linux
  2.) cd to the adb tools director
  3.) type adb shell then press enter
  4.) type su then press enter
  5.) type cd sdcard then press enter
  6.) type flash_image recovery recovery-0.99.3b.img then press enter
  7.) you are done but I would suggest typing reboot recovery then press enter so you can be sure it worked.
[/spoiler]
[/spoiler]

How to revert back to Stock 2.0, 2.0.1, 2.1, or 2.2
[spoiler]
*I just want everyone to know that I didn't write this guide, just the first paragraph. You can thank ikithme for the guide.
 
Now that a .sbf file has been released for our Droid's we can always recover them using RSD Lite. it is pretty easy to use this. Of course if you physically break your phone it won't help, but if you screw anything up software wise you are covered.
 
 If you unplug your phone while doing this it will break it beyond repair, Verizon will not be able to fix it. DO NOT ATTEMPT THIS UNLESS YOU ABSOLUTELY NEED TO USE IT!
 
Here is a guide.
Requirements
  A. A stock sbf file
  2.0 VZW_A855_ESD20_QSC6085BP_C_01.3B.01P_SW_UPDATE.sbf
  2.0.1 VZW_A855_ESD56_QSC6085BP_C_01.3E.01P_SW_UPDATE_03.sbf
  2.1VZW_A855_ESE81_QSC6085BP_C_01.3E.03P_SW_UPDATE_02.sbf
  2.2 (FRG01BVZW_A855_FRG01B_QSC6085BP_C_01.43.01P_SW_UPDATE.sbf
  2.2 (FRG22D) VZW_A855_FRG22D_QSC6085BP_C_01.4..sbf
 
  B. http://androidoverdrive.com/downloads/RSDLite4.6.7z  (RSDLite 4.6)
 
  C. Current Motorola Drivers
 
  Make sure you download the correct drivers for your system either 32bit or 64bit
 
  Instructions:
  1.  Download all of the files above including the 32-bit OR 64-bit Motorola USB Drivers.
  2. Install RSDLite AND the 32-bit or 64-bit Motorola USB Drivers (Depends on your system most will need 32-bit some will need 64-bit)
  3. Connect your phone to USB and turn it off then turn it back on, while your phone is booting hold up on the DPAD. (Some users have said it is easier to hold the volume down button and camera button instead.)
  4. Run RSD Lite 4.6 as Administrator (For all you Vista and 7 folks out there. If you are using XP you may not need to run as Administrator)
  5. Click the ...  next to the filename box and browse to where you saved the .sbf file and  double click the .sbf file.
  6. Hit start and below it should give you completion progress and all of that.
  7. Once your phone is done being flashed (It may take a while so don't   unplug it) it will reboot and you will be back at stock no root.
  8. Done
 
Credits:
dordodim  for the sbf file. ikithme for guide.
Motorola for the awesome phone, usb drivers and  RSDLite.
[/spoiler]

Basebands
[spoiler]
Install these the same way you would any rom or kernel.
Original Baseband Credit to Billgalbreath for the zip
  C_01.3E.01P
 
Second Baseband Credit to tehsteve for the zip
  C_01.3E.03P
 
Third Baseband Credit to P3Droid for the zip
  C_01.41.00R
 
Fourth Baseband Credit to P3Droid for the zip (Note flashing this baseband requires C_01.41.00R is already on your phone.
  C_01.43.01P
[/spoiler]

Installing Flash_image
[spoiler]
Flash_image can be downloaded Here make sure it is in the root of your sd card.
Note that most roms will already have flash_image in place.
For this you will need to use either adb or terminal emulator. For   terminal emulator I recommend the one on the market by Jack Palevich.
What you should actually type will be in red.  Make sure it is typed exactly with all spaces included or it will not work.
 
Directions for Terminal
[spoiler]
  1.) Type su then press enter
  2.) Type mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system then press enter
  3.) Type dd if=/sdcard/flash_image of=/system/bin/flash_image then press enter
  4.) Type chmod 755 /system/bin/flash_image then press enter
  5.) Type sync then press enter
[/spoiler]

Directions for ADB
[spoiler]
  1.) Open command prompt and cd to your adb tools directory
  2.) Type adb shell then press enter
  3.) Type su then press enter
  4.) Type mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system then press enter
  5.) Type dd if=/sdcard/flash_image of=/system/bin/flash_image then press enter
  6.) Type chmod 755 /system/bin/flash_image then press enter
  7.) Type sync then press enter
[/spoiler]
[/spoiler]

Installing Busybox
[spoiler]
This guide is for use with ADB. You can download Busybox Here place this in your adb tools folder.
Note that most roms will already have this installed.
What should actually be typed in adb will be in red.
  1.) cd to your adb tools directory
  2.) Type adb push busybox /data/local/busybox then press enter
  3.) Type adb shell then press enter
  4.) Type su then press enter
  5.) Type cd /data/local then press enter
  6.) Type chmod 755 busybox then press enter
  7.) Type ./busybox then press enter
  8.) Type mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system then press enter
  9.) Type /data/local/busybox cp /data/local/busybox /system/xbin then press enter
  10.) Type cd /system/xbin then press enter
  11.) Type busybox --install . then press enter
  12.) Type mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system then press enter
  13.) Type sync then press enter
  14.) Type reboot then press enter
[/spoiler]

  Video Guides by The Unlockr
[spoiler]
How To Setup ADB -
[spoiler]
How To: Set Up ADB/USB Drivers for Android Devices | TheUnlockr
[/spoiler]

How To Load a Theme -
[spoiler]
How To: Load a Theme on an Android Phone | TheUnlockr
[/spoiler]

How To Flash a New Recovery Image -
[spoiler]
How To: Flash a New Recovery Image (If You Are Already Rooted) | TheUnlockr
[/spoiler]

How To Switch to a Different SD Card (for use with Swap, Hero ROMs, etc.) -
[spoiler]
How To: Switch to a Different MicroSD Card on Android (When Using Swap, Hero and/or Apps2SD) | TheUnlockr
[/spoiler]

How To Backup/Restore Your Android Phone -
[spoiler]
How To: Backup and Restore Your Android Phone | TheUnlockr
[/spoiler]

How To: Root the Verizon Droid -
[spoiler]
How To: Root the Motorola Droid (Android 2.0.1 & 2.1) | TheUnlockr
[/spoiler]

How To: Load a Custom ROM on the Verizon Droid -
[spoiler]
How To: Load a Custom ROM on the Motorola Droid (Android 2.0.1 & Android 2.1) | TheUnlockr
[/spoiler]
[/spoiler]
« Last Edit: October 17, 2010, 08:41:02 AM by Rob »
**** As always, please flash responsibly. I am not responsible if you brick, break, screw-up, throw, or otherwise destroy your phone. Make sure you understand the consequences along with the benefits of the modifications you make to your phone. And finally, ALWAYS MAKE A NANDROID BACKUP FIRST. ****

Don't forget to press the "Thank You" button if someone helps you!

If someone has been extra helpful in a post, click the "Helpful" button under Karma. If they were not being helpful, click the "Not Helpful" button under karma.

[img width=100 height=45]http://www.speedtest.net/result/5441223394.

 

+-Recent Topics

[How-To] "Merg" Microsoft Outlook .pst files by bellsmith
October 09, 2018, 07:03:53 AM

pst merge by simallean
July 31, 2018, 05:29:00 AM

Slow Cooker Ribs by Rob
January 30, 2016, 02:31:45 PM

Fallout New Vegas by Nolesneda
April 07, 2015, 10:29:12 PM

Task Killers- All the info in one place by Nolesneda
April 07, 2015, 10:28:06 PM

wow by Pridgenita
January 27, 2015, 10:31:36 PM

[How To] Install SuperSu and remove Superuser by Pridgenita
January 27, 2015, 10:30:50 PM

Spiced Pumpkin Seeds by Rob
October 25, 2014, 04:52:34 PM

Alton Brown's "Taco Potion #19" by Rob
October 12, 2014, 04:27:59 PM

Homemade Taco Seasoning by Rob
September 27, 2014, 02:40:41 PM

Powered by EzPortal