[HowTo] Root, Deodex, and Theme Droid Froyo 2.2 FRG22D

Pir8Bob

Member
Joined
Sep 10, 2010
Messages
39
Reaction score
0
Let me start by saying that I didn’t come up with any of this. I’ve borrowed everything from the following Android community blog posts or forum threads:
How to: Root Motorola DROID Running Android 2.2 FRG22D | Droid Life: A Droid Community Blog
[HOW-TO] Manually deodex your phone. - Droid X Releases - AllDroid Public Board - [HOW-TO] Manually deodex your phone. - Droid X Releases - AllDroid Public Board - AllDroid.org > Home
http://www.droidforums.net/forum/droid-themes/66626-htc-status-bar-theme-froyo-frg22.html

This post shows another method to root:
Another Android 2.2 FRG22D Rooting Method for the Motorola DROID | Droid Life: A Droid Community Blog

Ok, so I’m new to the forums, but I realized that there are a lot of people rooting their Droids, applying themes, and then wondering why their clock is still black. I know when I started, I just wanted to root and get my phone to have a custom dock and a black status bar. This guide should be an all-in-one guide to accomplish that and should be helpful if you ever need to deodex with a custom rom too. You will need a computer, and Windows, to complete this whole guide.

If you want to see the end result of all my efforts with my phone, scroll down to the attachments at the bottom of this post.

I was able to root my phone, deodex, and theme all with a Mac and Windows 7 running in VMWare. You only need windows for the deodexing. If you don’t have Windows, find a friend that does. For the first step (rooting) I give the commands for both Windows and Mac/Linux. But after that, I’ll just do commands for the terminal commands as though adb is in your path. So if you see “adb shell” and you’re using a Mac or Linux and don't have adb in your path, just type “./adb shell” instead (you will need to first cd to the tools directory).

I have tried to be very detailed. This may be verbose to advanced users or anyone with even a little experience with Unix/Linux. But this guide is for everyman. If you don’t need the explanation of commands, just skip it. If you don’t know what the commands “rm”, “mv”, “cp”, or “su” do, please read the explanations so that you understand what you are doing to your phone. This guide is pretty simple, so if you get lost, that might be a good time to make friends with someone who has already rooted their phone successfully. I didn’t create any of the files that you will use to root/deodex/theme your device. But I did use them with my Motorola Droid, so I can tell you that they at least worked for me.

Let’s get started.


Step Zero: DISCLAIMER

I’m not liable for you breaking your phone. I didn’t break my phone. I did this with a Mac, which is harder than using a PC, but maybe easier than using Linux. However, if at any point you aren’t sure what a command does or how to accomplish a step, you should reconsider rooting your device. Reasons? After you root your device, you unlock the ability to seriously screw up your phone (with the added bonus that you’ve voided your warranty so Verizon won’t care that your phone is now only good as a door stop). If you follow this guide, you should finish with a rooted phone that still works. But if you decide to take things into your own hands later (or during), you might be starting a thread of your own hoping for someone to save your bacon. So bottom line: do this at your own risk, don’t type commands unless you know what they do, and read the whole guide before you start, rereading each step before starting it.

With that covered, on to the fun.


Step One: Let’s Root!

The benefits to rooting are tons, and it’s easy. I’ll repeat what was said on DroidLife: this may look confusing and long, but it takes about 5 minutes once you get the SDK. The longest part is waiting. First, let’s get everything you’ll need:

You will need the Motorola USB Drivers if you are running Windows. I didn’t need them for my Mac, and I imagine it’s the same story for Linux. 32-bit or 64-bit -- pick your flavor.

You need the Android SDK. Here. Follow the instructions there. On my Mac, I didn’t bother with the path, I just ran from the download folder. I’ll include those instructions too. On Windows, you actually download an SDK manager. You’ll need Java (get that here, if needed). I assume Linux is more like the Mac download. Whatever you're using, just get the SDK installed. This is the most time consuming part of rooting.


NEW! One-script rooting! (Mac/Linux)

UPDATE 9/29/10: I stumbled upon this little gem today: xda-developers - View Single Post - Easier 1-2-3 Droid 2 Root for Windows / Linux / Mac
And I made some tweaks of my own so it works on Droid 1. (Tested on my wife's previously-stock, now-rooted Droid.) :)

  1. All you need to do now is download doroot.sh to your Android SDK 'tools' directory. (The Droid2Root files you need to root will be automatically downloaded.)
  2. cd to your 'tools' directory: "cd ~/Downloads/android-sdk-mac_x86/tools"
  3. Run "chmod 755 doroot.sh"
  4. Type "./doroot.sh"
--or--
  1. You can also download View attachment 20600, which includes the Droid2Root files you need to root.
  2. Extract the zip and move the files in the created directory into your Android SDK 'tools' directory.
  3. cd to your 'tools' directory: "cd ~/Downloads/android-sdk-mac_x86/tools"
  4. Run "chmod 755 doroot.sh"
  5. Type "./doroot.sh"

Sorry Windows users, this is a bash script -- Linux and Mac only. (Maybe you could run it in cygwin?)

Because I've made the files available on Dropbox (if you download just the script, not the complete zip), I'm going to make a shameless plug. If you don't have Dropbox, I recommend you get it. Using this link will give me "bonus space" if you install the client, so if you don't already have it, get it here: http://www.dropbox.com/referrals/NTE2MDM4ODQ5 . Hopefully this doesn't create too much traffic (that's why I've included an attachment with everything you need)--if anyone is willing to host the files for download by the script, that'd be awesome.

Once you get the message "Congratulations, you should now be rooted." you can wait for the reboot and start move on to step 2.

Manual rooting

You will need Droid2Root.rar. You will also need WinRar or UnRarX.
Before you do the actual rooting, here are the commands you’ll enter, with some explanation. These are the Mac commands. (More advanced users, just skip this because you probably already know them better than I do.)

adb devices #This starts the connection daemon and lists devices. This should list a device as a long number. If it doesn't something is wrong. (You likely forgot to enable debugging on your device.)
adb push ~/Downloads/droid2root/rageagainstthecage-arm5.bin /data/local/tmp #This pushes the Rage binary that will allow you to gain root shell access before you have installed su.

adb shell #Connects to your device with a shell.

cd /data/local/tmp #Changes the working directory to where you put the Rage binary.

chmod 0755 rageagainstthecage-arm5.bin #Changes the binary to be executable.

./rageagainstthecage-arm5.bin #Executes the binary. Wait until you are returned to your computer terminal or command prompt. If you don’t wait (yes, it’s painful to wait, but better safe than sorry), then you didn’t follow directions very well and should probably stop messing with your phone. It takes a while, but it will finally finish and return to “hostname:tools username$” or “C:\android-sdk-windows\tools>”. Just have the TV on and time will go faster.
adb devices #Checks to make sure your device is still being seen and reestablishes a connection.

adb shell #Opens the shell again. But now instead of a $ you should see a #. That’s root access. :)

mount -o remount,rw /dev/block/mtdblock4 /system #Remounts your /system directory with read/write access. I’ve removed the file system type argument because it’s unnecessary for remounting. (Nerd note: actually, the argument specifying the device to mount is ignored--”/dev/block/mtdblock4”--but still required. The system only changes the mount flags for the mount point /system. Remount does not actually unmount and remount.)

exit #Go back to your computer’s terminal
.
adb push ~/Downloads/droid2root/Superuser.apk /system/app #Pushes the Superuser app to your phone.

adb push ~/Downloads/droid2root/su /system/bin #Pushes the su binary executable to your phone.

adb push ~/Downloads/droid2root/busybox /system/bin #Pushes busybox to your phone. Not needed to root, but very handy. Recommended.

adb shell #Reopen shell on phone.

chmod 4755 /system/bin/su #Change su permissions to be executable.
chmod 4755 /system/bin/busybox #Change busybox permissions to be executable.
mv /system/recovery-from-boot.p /system/recovery-from-boot.p.disabled #I think this keeps your phone from rejecting the rooting process.

mount -o remount,ro /dev/block/mtdblock4 /system #Remounts /system with read-only permissions.
rm /data/local/tmp/rageagainstthecage-arm5.bin #Removes the Rage binary from your phone.
exit #Exits the phone shell.


Now that you know what you’re about to do, you can do the actual rooting.

  1. Extract Droid2Root.rar to C:\droid2root or ~/Downloads/Droid2Root/
  2. Enable usb debugging on your device.

  3. Connect your phone to the computer via USB cable.

  4. Open up a terminal window (the command prompt for Windows).

  5. cd to your Android SDK tools directory (there should be a file called adb or adb.exe):
    For most the command would look like this "cd C:\android-sdk-windows\tools" or "cd ~/Downloads/android-sdk-mac_x86/tools/"
  6. Now enter the following commands:

    Windows:
    Code:
    adb devices
    adb push c:\droid2root\rageagainstthecage-arm5.bin /data/local/tmp
    
adb shell

    cd /data/local/tmp
    
chmod 0755 rageagainstthecage-arm5.bin

    ./rageagainstthecage-arm5.bin 
    adb devices

    adb shell
    mount -o remount,rw /dev/block/mtdblock4 /system

    exit
    
adb push c:\droid2root\Superuser.apk /system/app

    adb push c:\droid2root\su /system/bin

    adb push c:\droid2root\busybox /system/bin
    
adb shell

    chmod 4755 /system/bin/su

    chmod 4755 /system/bin/busybox

    mv /system/recovery-from-boot.p /system/recovery-from-boot.p.disabled

    mount -o remount,ro /dev/block/mtdblock4 /system

    rm /data/local/tmp/rageagainstthecage-arm5.bin
    
exit
    Mac (I’m assuming you didn’t want to bother changing your path):
    Code:
    ./adb devices 
    ./adb push ~/Downloads/droid2root/rageagainstthecage-arm5.bin /data/local/tmp

    ./adb shell
    
cd /data/local/tmp

    chmod 0755 rageagainstthecage-arm5.bin

    ./rageagainstthecage-arm5.bin 
    ./adb devices
    
./adb shell

    mount -o remount,rw /dev/block/mtdblock4 /system
    
exit
    
./adb push ~/Downloads/droid2root/Superuser.apk /system/app

    ./adb push ~/Downloads/droid2root/su /system/bin
    
./adb push ~/Downloads/droid2root/busybox /system/bin

    ./adb shell

    chmod 4755 /system/bin/su
    
chmod 4755 /system/bin/busybox
    
mv /system/recovery-from-boot.p /system/recovery-from-boot.p.disabled

    mount -o remount,ro /dev/block/mtdblock4 /system

    rm /data/local/tmp/rageagainstthecage-arm5.bin

    exit
  7. Done! Reboot your phone for good measure. You are now rooted.

It will probably take more time to read this post than your actual rooting. It has definitely taken more time to write than it did to root. For those of you who just want to root, you can be done. Download some great apps from the App Market. Here’s some that I’ve tried and recommend:

Rom Manager -- Should be your first stop after you reboot. This will allow you to install custom roms and theme, but most importantly, will allow you to back up and restore your phone. Install this, then use it to flash ClockworkMod Recovery to your phone before you continue this guide.
SetCPU for Root Users -- Allows you to set your phone’s CPU minimum and maximum depending on conditions such as temperature and battery charge. Helps maximize battery life.
Barnacle Wifi Tether -- Share your 3G connection through Wifi. Who doesn’t want to do that?
drocap2 for root users -- takes screen shots. Another similar app is ShootMe, but drocap2 has a smaller install size, so I chose it.


Step Two: Deodex those System Files.

If you want to theme your Droid without installing a custom rom, you’re going to need to deodex your system files. What does deodexing do? Well, from what I’ve learned, your stock applications come as packed .apk files that also come with .odex files. These .odex files contain a checksum of the .apk files. So you can’t change the .apk files without having some problems. But most importantly, deodexing lets you replace your system.jar file and change your text colors (like your clock from black to white). That’s right. You’re about to spend an hour just so you can change some text color. Some have said that it also makes your phone snappier. I have no proof of that.

You need to be rooted. This step is more risky than the last. So you may want to kiss your device before you start, just in case. But don’t worry. Install Rom Manager and ClockworkMod Recovery then back up your current rom before you start. If you do something bad, you can pull out your battery, pop it back in, start your phone holding the X key, and start into recovery. From there, you can use nandroid to restore your backup. (Always, always, always back up before you do anything like this, including installing custom roms and themes.)

So, again, let’s get the files you’ll need. If you’re doing this on a Mac or Linux machine, reboot to Windows or fire up that virtual machine. You’ll need the Android SDK for Windows as well as the Motorola drivers (32-bit or 64-bit).
You also need xUltimate (now at 2.2.2).

Here’s the process:
  1. Unzip xUltimate v2.2, and launch "Main.exe"
  2. If everything goes well you xUltimate should recognize the phone and make a connection. You now should see a list of options. (If you’re running a virtual machine, make sure that you’ve “connected” your phone device to the virtual machine.)
  3. Choose option 5. (The guide I followed was for Droid X and required doing options 1-4 individually. But I didn’t have a “guava.odex” in my origi_frame folder, so in the end I just ran option 5 and it ran fine.)
  4. While you are here, run option 6. This will take your origi_app and origi_frame folders and zip them up for backup. If you ever need to restore your original system files and have deleted your backup rom, you just need to change the following directions to copy the original files back.
  5. Exit xUltimate, and put the phone in USB mass storage.
  6. Go back into the xUltimate folder and copy "done_frame" and "done_app" and move them to the root of the sdcard.
  7. Unmount the sdcard from your computer (eject) if you are running on Mac/Linux.
  8. Turn off USB mass storage mode.
  9. Open a command prompt (to your android-sdk/tools directory--you can do this on your native machine now, no more Windows required, just remember to disconnect the device from the virtual machine), and do the following:
    Code:
    adb shell
    su
    stop
    mount -o remount,rw /dev/block/mtdblock4 /system
    cp /sdcard/done_app/* /system/app/
    cp /sdcard/done_frame/* /system/framework/
    rm /system/app/*.odex
    rm /system/framework/*.odex
    mount -o remount,ro /dev/block/mtdblock4 /system
    reboot

Explanation of commands:

adb shell #Connects to the phone.
su #Grants superuser access. You’ll need to allow it on your phone the first time you do this from the adb shell. Tip: choose to Remember (and Allow). If you do this, you can shell into your phone if you have trouble booting and issue a reboot command without pulling out the battery--you just need debugging enabled (always a good idea when messing with your phone).
stop #Stops your phone. From what I can tell, it basically stops your phone from doing anything phone-ish and frees up the system for you to work in with the shell. The command “start” starts your phone back up again, but the beginning of the boot, but I prefer “reboot”. Whenever you want to replace anything in your system directory, use “stop” first.
mount -o rw,remount /dev/block/mtdblock4 /system #Remounts /system with read/write permissions.
cp /sdcard/done_app/* /system/app/ #Copies the deodexed applications to your phone. Note: don’t be tempted to use mv--it doesn’t work because the files are on different physical devices (sdcard vs. flash memory).
cp /sdcard/done_frame/* /system/framework/ #Copies the deodexed framework files to your phone.
rm /system/app/*.odex #Removes the .odex checksums for apps.
rm /system/framework/*.odex #Removes the .odex checksums for the framework files.
mount -o ro,remount /dev/block/mtdblock4 /system #Remounts /system as read-only.
reboot #Reboots :)


Your phone should reboot as if you have done nothing. It’s not very satisfying at this point, but keep going and you’ll see that you actually did something.


Step Three: Purify

At this point, I’m going to take a moment to teach another very handy trick that you now have access to: deleting stock applications. For me, I was tired of Twitter running in the background whether or not I had actually opened it or even signed in. I was also tired of Verizon’s Virtual Voicemail app being on my phone. This is how you go about deleting them:

Code:
adb shell
su
stop
mount -o remount,rw /dev/block/mtdblock4 /system
cd /system/app/
rm Facebook.apk
rm Twitter.apk
rm VVMStub.apk
cd /
mount -o remount,ro /dev/block/mtdblock4 /system
reboot
Most of those commands should seem familiar from step 2. The only new one is rm, and for those familiar with Linux, you already know what we’re doing. For those of you who are new to all of this, rm removes the files (deletes them). Here are the stock apps that I don’t mind saying it’s ok to delete:

com.amazon.mp3.apk -- The Amazon MP3 store. If you don’t like it on your phone, delete it.
Facebook.apk -- Stock Facebook app. This doesn’t mean you can’t download it from the store, just that you can actually uninstall it.
Twitter.apk -- Stock Twitter app. Same as Facebook as far as implications.
VVMStub.apk -- Verizon’s stub application for virtual voicemail. If you have Google Voice, you’ve probably wanted this gone from day 1 (or even if you don’t have Google Voice).

I wouldn’t recommend deleting any other apps. You can always hide them with LauncherPro anyway. But if you know it’s safe, go ahead (it's your phone after all). Just back up before you do, and don't blame me if it breaks.

Speaking of backing up, you should do that now. After deodexing and deleting bloatware, it’s a good idea to create a clean stock backup.


Step Four: Your First Theme.

For this step, we’re going to use MotaBoy’s HTC Status Bar Theme for Froyo FRG22.

All you need is this file.

  1. Copy it to your sdcard. You can even send it via Bluetooth (that’s how I did it) or download it directly with your phone.
  2. Start ROM Manager.
  3. Select “Reboot into Recovery”
  4. At the recovery menu, select “install zip from sdcard” (5th option down).
  5. Select “choose zip from sdcard” (2nd option).
  6. Browse to the downloaded zip. If you downloaded it in your phone’s browser, it’s in download/; if you sent it via Bluetooth, it’s in bluetooth/. If you used your USB cable, you should know where you put it.
  7. Select yes to apply the .zip file.
  8. After applying the theme, press the delete key on the keyboard (on the Droid) to go back to the root recovery menu.
  9. Select “reboot system now” to reboot the device.
  10. Enjoy your first theme. If you don’t like it, you can use ROM Manager to restore the backup that I hope you just made. You can use the advanced restore menu to just restore the /system directory (because that’s all you changed with this theme).


Step Five: Other Ways to Customize

Get LauncherPro. I’m not affiliated with the guy that made this app, but I did buy it from the App Market, and it’s worth it. Customizing the dock is a very nice addition to the Android. There’s a free version, so try it out. If you really like it, buy the unlock code. (Bonus: you don't need root do use this app, so if you're nervous about rooting, or have a friend that's nervous about rooting, you/they can use this app.

I pretty much copied a screen shot I saw on DroidLife for my first customization. You can see the results in the attachments below.

I got my dock icons from the goodies download on this thread.

Now you should have all the tools you need to theme and go crazy. Just remember that themes are devices specific. No matter how many times or ways you try copying that theme for the Droid X to your Droid, it’s only going to put you in a reboot cycle that makes you glad you had ClockworkMod Recovery installed. (The link I just gave you is a theme for the Droid X--you can't install it on a Droid--I speak from experience...)

Ok... I hope that was helpful to somebody. Now a few last words.

Please don’t skip to theming before you deodex and then ask me why the clock color is still black. And I’m not trying to endorse any app/process/website. I’m just providing all the information I wish I had had when I rooted into a single thread in hopes that someone finds it useful.

If you find any typos, please send me a private message instead of posting a reply to this thread. If you have a good question that you think others might want the answer to, that’s a good reason for a reply, or to help out a fellow forum member, and also to add anything awesome.

Thanks and credit go out to koush (ClockworkMod), Kellex (DroidLife), Webst3r, xeudoxus (xUltimate), MotaBoy (Sense theme), Manup456 (my dock icons), and darkonion & facelessuser (originally creating the root script) for all the info, previous guides, apps, and themes I've used. Plus the developers of the apps I mentioned. Also plus those that helped develop any rooting tools used here.

Happy rooting, deodexing, and theming!

UPDATE 9/16/10: I corrected some missing line breaks. I typed this up in Pages (iWork) and when I copied it into the post form, a bunch of line breaks were missing. I thought I had gotten them all, but there were a few missing still in the Windows rooting commands. I also changed "./adb shell" in steps > 1 to "adb shell" for simplicity.

UPDATE 9/29/10: I started wondering if anyone had successfully used this guide (I've only had people asking for help with problems), so I've added a poll to the top to see how useful this guide is. I'm hoping that most people using the guide have had little to no trouble; thus, they haven't felt the need to post replies on the thread. Just wanted to find out if hours of typing was a good way to spend my time. Oh, and I added a one-command root script for Mac (and presumably Linux).

UPDATE 11/19/10: Made just the doroot.sh script downloadable. Removed reference to "PC Mode" in the script. (It doesn't exist for Droid users.) I haven't been receiving emails to update me that others have posted. Maybe it's the poll? Or gremlins? But either way, I apologize that I haven't posted or updated in a month. Thankfully, issues are few. I hope most have little to no trouble.
 
Last edited:

Abe21599

Super Moderator
Rescue Squad
Joined
Dec 22, 2009
Messages
6,322
Reaction score
31
Location
Ohio
nice all-in-one.

might i add for un-experienced users with the terminal: its really not as complicated as it looks. just read each step twice and make sure u put in the right command.

and it never hurts to ask before doing something :)
 

hooahu

New Member
Joined
Sep 16, 2010
Messages
1
Reaction score
0
hey guys, i'm uber noob at this. any help would be appreciated. i followed this guide and its instructions exactly. i keep getting a "cp: not found" on the cp /sdcard/done_app/* /system/app/ line. what is happening? what does this mean? does it matter that i'm on a windows xp pc?
 

txter

Member
Joined
Aug 19, 2010
Messages
223
Reaction score
0
ive got to step 9 but i cant get any farther. i opened my command prompt by going to start and searching cmd and opened that program.
i cant do any of this. what am i missing or not doing or not typing in correctly...? if you could, could you type out what i should be inputting so i can see where im going wrong. this is how my cmd prompt window starts out....
C:\Users\Gary>

this is where im stuck..
9.) Open a command prompt (to your android-sdk/tools directory--you can do this on your native machine now, no more Windows required, just remember to disconnect the device from the virtual machine), and do the following:

Code:
./adb shellsustopmount -o rw,remount /dev/block/mtdblock4 /systemcp /sdcard/done_app/* /system/app/cp /sdcard/done_frame/* /system/framework/rm /system/app/*.odexrm /system/framework/*.odexmount -o ro,remount /dev/block/mtdblock4 /systemreboot
 
OP
P

Pir8Bob

Member
Joined
Sep 10, 2010
Messages
39
Reaction score
0
hey guys, i'm uber noob at this. any help would be appreciated. i followed this guide and its instructions exactly. i keep getting a "cp: not found" on the cp /sdcard/done_app/* /system/app/ line. what is happening? what does this mean? does it matter that i'm on a windows xp pc?

It means that there isn't a executable "cp" in your path. Type the following, and you should get the same output (don't type the $):
Code:
$ ls -l /system/bin/cp
lrwxrwxrwx root     root            2010-09-10 00:55 cp -> /system/bin/busybox
$

If instead you see:
Code:
$ ls -l /system/bin/cp
/system/bin/cp: No such file or directory
$
You probably don't have busybox installed and there is no default cp on your device.

If you have busybox (test the command "busybox" and you should get a lot of output), you can use the following commands to setup a symbolic link:
Code:
su
mount -o rw,remount /dev/block/mtdblock4 /system
cd /system/bin
ln -s /system/bin/busybox cp
mount -o ro,remount /dev/block/mtdblock4 /system
That will create a link to busybox.

If you don't have busybox installed to your device already, these commands might just work (assuming you have files set up like step 1) starting from within your Windows prompt:
Code:
adb shell
su
mount -o remount,rw /dev/block/mtdblock4 /system

chmod 777 /system/bin
exit
exit
adb push c:\droid2root\busybox /system/bin

adb shell

su
chmod 4755 /system/bin/busybox

chmod 755 /system/bin
mount -o ro,remount /dev/block/mtdblock4 /system


exit
exit

UPDATE: added chmod commands to allow pushing to /system/bin

I realize that's a lot of info, so I'll stop there. Let me know if any of that helps, and we'll go from there. It looks like busybox is needed to use cp, so see if you have it or can get it pushed to your device.
 
Last edited:
OP
P

Pir8Bob

Member
Joined
Sep 10, 2010
Messages
39
Reaction score
0
ive got to step 9 but i cant get any farther. i opened my command prompt by going to start and searching cmd and opened that program.
i cant do any of this. what am i missing or not doing or not typing in correctly...? if you could, could you type out what i should be inputting so i can see where im going wrong. this is how my cmd prompt window starts out....
C:\Users\Gary>

this is where im stuck..
9.) Open a command prompt (to your android-sdk/tools directory--you can do this on your native machine now, no more Windows required, just remember to disconnect the device from the virtual machine), and do the following:

Code:
./adb shellsustopmount -o rw,remount /dev/block/mtdblock4 /systemcp /sdcard/done_app/* /system/app/cp /sdcard/done_frame/* /system/framework/rm /system/app/*.odexrm /system/framework/*.odexmount -o ro,remount /dev/block/mtdblock4 /systemreboot

Your commands should be something like this:
Code:
cd C:\android-sdk-windows\tools [COLOR="Orange"](or where you extracted your Android SDK folder)[/COLOR]
adb shell
su
stop
mount -o rw,remount /dev/block/mtdblock4 /system
cp /sdcard/done_app/* /system/app/
cp /sdcard/done_frame/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
mount -o ro,remount /dev/block/mtdblock4 /system
reboot

Your cd command might also be something like "cd Downloads\android-sdk_r07-windows\android-sdk-windows\tools". It's hard to tell with Windows.
 
Last edited:

txter

Member
Joined
Aug 19, 2010
Messages
223
Reaction score
0
ive got to step 9 but i cant get any farther. i opened my command prompt by going to start and searching cmd and opened that program.
i cant do any of this. what am i missing or not doing or not typing in correctly...? if you could, could you type out what i should be inputting so i can see where im going wrong. this is how my cmd prompt window starts out....
C:\Users\Gary>

this is where im stuck..
9.) Open a command prompt (to your android-sdk/tools directory--you can do this on your native machine now, no more Windows required, just remember to disconnect the device from the virtual machine), and do the following:

Code:
./adb shellsustopmount -o rw,remount /dev/block/mtdblock4 /systemcp /sdcard/done_app/* /system/app/cp /sdcard/done_frame/* /system/framework/rm /system/app/*.odexrm /system/framework/*.odexmount -o ro,remount /dev/block/mtdblock4 /systemreboot

Your commands should be something like this:
Code:
cd C:\android-sdk-windows\tools [COLOR=orange](or where you extracted your Android SDK folder)[/COLOR]
adb shell
su
stop
mount -o rw,remount /dev/block/mtdblock4 /system
cp /sdcard/done_app/* /system/app/
cp /sdcard/done_frame/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
mount -o ro,remount /dev/block/mtdblock4 /system
reboot

Your cd command might also be something like "cd Downloads\android-sdk_r07-windows\android-sdk-windows\tools". It's hard to tell with Windows.

this is what i get...

c:\android-sdk-windows\tools>adb shell
$ su
su
Permission denied
 
OP
P

Pir8Bob

Member
Joined
Sep 10, 2010
Messages
39
Reaction score
0
this is what i get...

c:\android-sdk-windows\tools>adb shell
$ su
su
Permission denied

The first time you use su from the adb shell, your phone should have a superuser request pop up. It's useful to enable the development menu option "Stay Awake" during this step. When you accept the superuser request on your phone, the shell should give you root access.
 

txter

Member
Joined
Aug 19, 2010
Messages
223
Reaction score
0
i have super user access. i am rooted. my screen never stayed on during this process. mabey ill try to start over tomarrow. off to work now.
oh ya...i should be in PC Mode for the usb for this thing right?

im new to android. been a WM user for years so this is new to me.
 

portermac

Member
Joined
Jun 10, 2010
Messages
323
Reaction score
1
Location
Birmingham, AL
So Im thinking this is was what I was waiting for to root. I will be using a Mac and I have a Motorola Droid.
1) I noticed the Droid2Root.rar. This is what I need to root a Motorola droid? Im just making sure I get this right.
2) Also, WinRar or UnRarX. I will get WinRar?
I was rooted with easyroot until the update. I have BusyBox,Terminal Emulator and Rom Manager still installed.
3) Should I uninstall these before I root?
Again, just want to get this right the first time hopefully without problems.
 
OP
P

Pir8Bob

Member
Joined
Sep 10, 2010
Messages
39
Reaction score
0
oh ya...i should be in PC Mode for the usb for this thing right?

You want to have USB debugging on the whole time, yes. You want to turn on mass storage to copy the files from your computer to the sdcard and turn it off in order to copy them from you sdcard to the system folders.
 
OP
P

Pir8Bob

Member
Joined
Sep 10, 2010
Messages
39
Reaction score
0
So Im thinking this is was what I was waiting for to root. I will be using a Mac and I have a Motorola Droid.
1) I noticed the Droid2Root.rar. This is what I need to root a Motorola droid? Im just making sure I get this right.
2) Also, WinRar or UnRarX. I will get WinRar?
I was rooted with easyroot until the update. I have BusyBox,Terminal Emulator and Rom Manager still installed.
3) Should I uninstall these before I root?
Again, just want to get this right the first time hopefully without problems.

  1. Yeah, Droid2Root.rar has busybox, su, Superuser.apk, and the rageagainstthecage binary--everything you need to root.
  2. UnRarX is a Mac application. It's what I used.
  3. I don't think you should have to uninstall anything. You probably don't need to reinstall BusyBox either. I have BusyBox v1.16.0, so if you have the same version, I would just skip installing it. You can always install it later anyway. Check with ROM Manager after you have rooted to re-flash ClockworkMod Recovery if necessary.
 

Candytoo

New Member
Joined
Sep 23, 2010
Messages
3
Reaction score
0
Help please!

I cannot even pass step one... I kept on saying "No such file or directory". I followed the instruction to download Droid2root and Android SDK and extract them to my Download folder. Do I have to do any extra step in the AdHere is what I typed in the Terminal:


computer:~ babetrang$ cd ~/Downloads/android-sdk-mac_x86/tools/
computer:tools babetrang$ ./adb devices
List of devices attached
040388900B01601D device

computer:tools babetrang$ ./adb push ~/Downloads/droid2root/rageagainstthecage-arm5.bin /data/local/tmp

cannot stat '/Users/babetrang/Downloads/droid2root/rageagainstthecage-arm5.bin': No such file or directory
computer:tools babetrang$


What did I do wrong? Could you explain more in details what you meant by "You need the Android SDK. Here. Follow the instructions there. On my Mac, I didn’t bother with the path, I just ran from the download folder"? I am running on Mac and not sure what else I need to do after downloading Android SDK.

Thanks!
 
OP
P

Pir8Bob

Member
Joined
Sep 10, 2010
Messages
39
Reaction score
0
What did I do wrong? Could you explain more in details what you meant by "You need the Android SDK. Here. Follow the instructions there. On my Mac, I didn’t bother with the path, I just ran from the download folder"? I am running on Mac and not sure what else I need to do after downloading Android SDK.

I wonder if your disk isn't formatted as case-sensitive. When I extracted Droid2Root.rar, the folder was called "Droid2Root", but my disk format is case-insensitive and it gave me no problems. That's the only reason I can think of for the computer not finding the file. When you type out the path, use the tab key to complete your folder and file names, and that should help you make sure they're typed correctly. Because it sounds like you've done everything right.

What I meant with the SDK was that I simply downloaded the tools, extracted the zip, but didn't bother placing any tools into a directory in my PATH. I did just what you were doing--I changed my directory to ~/Downloads/android-sdk-mac_x86/tools/ then ran adb by prefixing it with "./" to run them.

It looks like adb is running fine on your Mac. It found your device fine, so it shouldn't have any trouble pushing the file. It looks like adb just isn't finding the rageagainstthecage-arm5.bin file correctly. I think it's just a case-sensitivity issue. If your disk is case-insensitive (Disk Utility will report the disk as "Mac OS Extended (Journaled)") then I'll try and think of what else might be causing the issue. Meanwhile, check and see if using "Droid2Root" as the directory name instead of "droid2root" fixes the problem. Let me know if you still run into trouble.
 

Candytoo

New Member
Joined
Sep 23, 2010
Messages
3
Reaction score
0
It looks like adb is running fine on your Mac. It found your device fine, so it shouldn't have any trouble pushing the file. It looks like adb just isn't finding the rageagainstthecage-arm5.bin file correctly. I think it's just a case-sensitivity issue. If your disk is case-insensitive (Disk Utility will report the disk as "Mac OS Extended (Journaled)") then I'll try and think of what else might be causing the issue. Meanwhile, check and see if using "Droid2Root" as the directory name instead of "droid2root" fixes the problem. Let me know if you still run into trouble.

My disk is case-insensitive (Disk Utility says Mac OS Extended (Journaled). I haven't tried what you suggested yet, I will still try it anyway and let you know if it works...
 
Top