Complete How-To Root, Busybox, Flash/Recovery, Framework-res.apk, custom boot ani...

Discussion in 'Android Hacks and Help' started by csmith197, Dec 14, 2009.

  1. csmith197
    Offline

    csmith197 New Member

    Joined:
    Nov 10, 2009
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Orlando fl
    An excellent post has been written on how to use ADB. I recommend people follow that post before attempting my methods.
    http://www.droidforums.net/forum/droid-hacks/6865-how-use-adb-all-commands-options.html

    Hello,
    I document everything I do and thought I would share the information I have compiled with you all. I have not written these individualy, but rather have used everyones advice in various forums to create a one stop shop tutorial. I cannot remember everyone I have gotten these from, so instead of issuing credit to everyone individually; I will just relinquish credit for myself. :D Enjoy!

    - Improve Call Audio Quality
    • Dial ##7764726 (##PROGRAM) and act as if you were going to call that number.
    • Enter 000000 for the SPC Password and then tap Verify
    • Tap on "04 Vocode"
    • Tap on EVRC-B than Apply
    • The phone should automatically reset a few seconds afterward. If not, power cycle the phone
    • Explanation - This changes how the phone compresses and decompressed the call audio which improves the quality.

    - Safe Mode
    • With the phone off, slide open the keyboard open
    • Press and hold the Power+Menu button (on the keyboard)
    • Continue to hold until the "Droid Eye" comes up and you feel the phone vibrate
    • Phone should start up and say "Safe Mode" in the bottom left-hand corner
    • Explanation - This starts only the core Android processes. This is best used for diagnosing if a 3rd party application is causing your phone to malfunction or if you cannot uninstall if when in regular mode.
    • TRY THIS FIRST if you are having any problems with your phone acting up, especially with the built-in Android apps (example - Messaging app is crashing. Boot in Safe Mode. If app doesn't crash when doing what you were doing in regular mode, it's most likely going to be a 3rd party app with access to messaging that is causing a problem.)
    • BE AWARE that after coming out of Safe Mode, 3rd party widgets might not display properly on the home screen. Press and hold on the widget and drag it down into the trash can, then readd it to the home screen. This will fix the "problem loading widget" error.
    ________________________________________
    Hax

    Root (2.0.1 only)
    1 - Download the droid-super_user.zip file from: http://alldroid.org/download/file.php?id=659
    (md5sum cf653352967253e99d967498ffd9ce69). Do not extract.
    2 - Rename the file to "update.zip".
    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 - Press the Vol+ and the Camera button together until you get 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.

    BusyBox
    download busybox binary to your adb tools directory
    http://www.alldroid.org/download/file.php?id=709
    cd to your adb tools directory
    adb push busybox /data/local/busybox
    adb shell
    su
    cd /data/local
    chmod 755 busybox
    ./busybox
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    mkdir /system/xbin
    /data/local/busybox cp /data/local/busybox /system/xbin
    /data/local/busybox cp /data/local/busybox /system/bin
    cd /system/xbin
    busybox --install .
    mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
    sync
    reboot

    Flash/Recovery image
    ::NOTE: This is not important atm, since there aren't any roms for us to install. However, once roms start comming out this will be how we get them on the phone. Additionally, I have left my link at 0.08 for stabilty reasons.
    Flash Image- http://cyanogen-files.carneeki.net/flash_image.zip
    Recovery image-SP Recovery Image with nandroid! | Sholes
    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
    mount -o remount,r -t yaffs2 /dev/block/mtdblock4 /system
    /system/bin/flash_image recovery /sdcard/use the recovery ROM in your sdcard
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    mv /system/recovery-from-boot.p /system/recovery-from-boot.old
    sync
    mount -o remount,r -t yaffs2 /dev/block/mtdblock4 /system

    Disable default Verizon crap
    su
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    cd /system/app
    mv Email.apk Email.bak
    mv VVMStub.apk VVMStub.bak
    mv com.amazon.mp3.apk com.amazon.mp3.bak
    mv CorpCal.apk CorpCal.bak
    mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
    sync
    reboot

    Change Framework-res.apk
    Use your desired framework-res.apk. I have not provided one.
    su
    mount -o rw,remount -t yaffs2 /dev/block/mtdblock4 /system
    mv /system/framework/framework-res.apk /system/framework/framework-res.bak
    cd sdcard
    busybox cp -R framework-res.apk /system/framework/
    mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
    sync
    reboot

    Custom Boot Animation ROOT IS NOT REQUIRED!!!
    Download desired bootanimation.zip to your adb tools directory.
    Code:
    adb push bootanimation.zip /data/local
    
    [​IMG]

    View attachment 714


    ::EDIT:: All scripts have been changed to reflect that the correct system partition is mtdblock4. mtdblock3 is often misqouted as the system partition and this is why.
    Last edited: Dec 21, 2009
  2. justreboot
    Offline

    justreboot New Member

    Joined:
    Nov 10, 2009
    Messages:
    291
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Central NJ-USA
    .: nice recap :. thanks
  3. tktouch12
    Offline

    tktouch12 New Member

    Joined:
    Nov 17, 2009
    Messages:
    1,242
    Likes Received:
    0
    Trophy Points:
    0
    thanks for putting it all together, that is very good
  4. Jebtrix
    Offline

    Jebtrix New Member

    Joined:
    Dec 14, 2009
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    Very nice indeed! Only thing I can think of it needs a section on keeping root to be complete. :D
  5. miglo
    Offline

    miglo New Member

    Joined:
    Nov 7, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    sticky worthy for sure
  6. csmith197
    Offline

    csmith197 New Member

    Joined:
    Nov 10, 2009
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Orlando fl
    Edited to reflect the fact that backing up the bootanimation.zip every time isn't very smart. :D

    Thank you, everyone. More to come soon.
  7. Erron
    Offline

    Erron Developer Developer

    Joined:
    Nov 8, 2009
    Messages:
    1,075
    Likes Received:
    0
    Trophy Points:
    0
    Very nice! Thanks
  8. M1dnite
    Offline

    M1dnite New Member

    Joined:
    Nov 6, 2009
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Walled Lake, MI
    niiiice! (10 characters)
  9. Aaron636r
    Offline

    Aaron636r New Member

    Joined:
    Nov 15, 2009
    Messages:
    403
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    So California
    download busybox binary to your adb tools directory

    Where exactly is this? Sorry. Im a nOOb
  10. stainless
    Offline

    stainless New Member

    Joined:
    Nov 10, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Oak Ridge, TN
    Hate to be a pain I am a noob at android, I used to tweaking a PPC not android.

    csmith197 posted

    Disable default Verizon crap
    su
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    cd /system/app
    mv Email.apk Email.bak
    mv VVMStub.apk VVMStub.bak
    mv com.amazon.mp3.apk com.amazon.mp3.bak
    mv CorpCal.apk CorpCal.bak
    mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
    sync
    reboot


    Where does all this take place ?
    Is this from the terminal app on the phone or from my PC ?
  11. csmith197
    Offline

    csmith197 New Member

    Joined:
    Nov 10, 2009
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Orlando fl
    From the default location in the terminal. I suggest using the adb as doing this on your thumbs is prolly suck. ;)
  12. csmith197
    Offline

    csmith197 New Member

    Joined:
    Nov 10, 2009
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Orlando fl
    you have to have the android sdk
    Android Developers
  13. Aaron636r
    Offline

    Aaron636r New Member

    Joined:
    Nov 15, 2009
    Messages:
    403
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    So California
    Ive downloaded it. Now its learning what to do next. I will keep reading...

    Thanks for your help. Appreciated
  14. Big Lou
    Offline

    Big Lou New Member

    Joined:
    Dec 3, 2009
    Messages:
    739
    Likes Received:
    0
    Trophy Points:
    0
    Excuse my noobness, how do I inupt all the code to do special things after I have root?
  15. cideas
    Offline

    cideas New Member

    Joined:
    Dec 7, 2009
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    0
    should make this a sticky, nice work
  16. Harrison_W1337
    Offline

    Harrison_W1337 New Member

    Joined:
    Nov 21, 2009
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    0
    I have a few questions before I consider doing anything. What is the failure/success rate of rooting. Will the phone screw up if you do a over the air update on a rooted phone? When rooting do you have to reprogram your phone number to your phone? When flashing do you have to reprogram your phone number to your phone? Un-root if you have problems and need to use the warranty? Will restoring system defaults require you to reprogram your phone number? Do you think we will ever be able to duel boot roms, one the stock system, and one a custom rom? Thanks in advanced.
    Last edited: Dec 15, 2009
  17. mrZoSo
    Offline

    mrZoSo New Member

    Joined:
    Dec 9, 2009
    Messages:
    412
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    GA from Philly PA
    There always seems to be variables with the commands to do the "same?" thing. Which is best to use for setting up the recovery? (other then the mtdblock3, mtdblock4, 4 being the correct one)
    The one listed in the OP's post:

    Or the one from this thread:
    http://www.droidforums.net/forum/droid-hacks/8526-custom-recovery-image.html

  18. stainless
    Offline

    stainless New Member

    Joined:
    Nov 10, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Oak Ridge, TN

    Ok I got how to do this but exactly what happens, and to what ?
    Corporate Calendar, Amazon
    What is VVMStub ?
    What email are we getting rid of.

    Where does it go. Can you get it back ?
  19. csmith197
    Offline

    csmith197 New Member

    Joined:
    Nov 10, 2009
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Orlando fl
    @mrZoso, You may choose to put it in bin or create xbin and put it there; either will work.

    @stainless, you are simply placing them in the same folder with the .bak extension to replace them do

    Code:
     
    su
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    cd /system/app
    mv Email.bak Email.apk
    mv VVMStub.bak VVMStub.apk
    mv com.amazon.mp3.bak com.amazon.mp3.apk
    mv CorpCal.bak CorpCal.apk
    mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
    sync
    reboot
    
    
  20. Big Lou
    Offline

    Big Lou New Member

    Joined:
    Dec 3, 2009
    Messages:
    739
    Likes Received:
    0
    Trophy Points:
    0
    VVMStub = Visual Voice Mail
    Email is the email app (you should just use Gmail)

    You aren't deleting them, simply renaming them so they don't show up in your apps list. If you one day need them, you can use the renaming code in reverse to retrieve them.
Search tags for this page
busybox apk
,
busybox recovery
,

busybox root

,
complete how root busybox flash recovery
,
custom busybox
,
flash busybox
,
how to root android with busybox
,
how to root using busybox
,
how to root with busybox
,
how to use busybox apk
,
install busybox via recovery
,
root with busybox