Join Today
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Location
    Etawah the city of grt. DACOITS
    Posts
    4,897

    Post [Idiot's Guide] Back to Stock, no su, no BusyBox, etc.

    Idiot's guide to getting back to stock:
    Tested and works!
    Safe for 2.1, thanks to Sholes!

    Plug your phone into the computer and mount your sdcard so you can see it in your Operating System on the computer (turn on USB storage)

    Download http://alldroid.org/download/file.php?id=651 and unzip it. Copy the boot.img and recovery.img to your sdcard.
    Download http://www.sholes.info/wp-content/up...oem-backup.zip and unzip it. Copy it to the nandroid folder on the sdcard.

    Safely remove the card from your Operating System (Right click on the drive and hit Eject for you Windows users)

    Turn off USB storage on the phone now

    Reboot into recovery
    Pick Backup/Restore > Advanced Nandroid Restore > Backup
    Select the virginoem-backup
    Select Perform restore
    When it's finished, select Reboot system now.

    Once the phone is back on, open terminal or an ADB shell

    Copy and paste the following if using an ADB shell, or type it all in if using a terminal emulator on the phone:
    (if using adb shell, don't forget to put phone in USB debugging mode)

    su
    flash_image recovery /sdcard/recovery.img
    flash_image boot /sdcard/boot.img


    Reboot into recovery (press x on the physical k/b + power button) and verify that you have to press Vol+ and Camera to be able to get to the menu.
    If the nandroid recovery menu comes up, you'll need to try the above steps again.

    If it is the stock recovery, reboot

    REMAINING IS IN 2ND POST
    Last edited by shantanu; 01-09-2010 at 05:11 AM.
    LG OPTIMUS 2X : MY INDROID EVOLUTION RC3
    SAMSUNG GALAXY SL : MY ANDROID EVOLUTION
    HTC ELFIN : MY DARIUS 6.5 ROM
    SONY ERICSSON X10 MINI : MINI EVOLUTION

    http://www.motorolafans.com/forums/signaturepics/sigpic64563_36.gif
    "GONE FOREVER TO MAKE A COME BACK"

  2. #2
    Join Date
    Aug 2008
    Location
    Etawah the city of grt. DACOITS
    Posts
    4,897

    Default

    CONTINUE

    Once you are back in the OS, you still have root and busybox installed, because the nandroid backup you restored has those.

    So the next step is to either open a terminal on the phone or go into ADB shell and run the following commands:
    su
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    rm /system/bin/busybox
    rm /system/xbin/busybox
    rm /system/app/Superuser.apk
    cd /
    mv recovery-from-boot.old recovery-from-boot.p

    if you receive "error failed on 'recovery-from-boot.old' - No such file or directory" don't worry, it's ok, just go to the next step.
    From there you still have su left, and you have 2 options for getting rid of it.

    a) Since you are already root, just run rm /system/bin/su .. I personally don't like this option because the phone by default has a su binary that just doesnt allow you access.
    After you do the above do this:

    mount -o remount,ro -t yaffs2 /dev/block/mtdblock4 /system
    sync
    reboot

    b)- (prefered method)
    Download the official https://android.clients.google.com/u...0.84263456.zip , which will replace the 2.0.1 su binary.
    Rename it to update.zip
    Copy it to sdcard
    Reboot phone in to recovery(hold x + power button, at the /!\ hold the volume+ and camera button.
    Select apply sdcard:update.zip, you might see an error but it should complete.
    Reboot when finished.

    Once you are done with all of that you are back at a stock image.
    To test if su is gone, download Android Terminal Emulator and do an su, you should get a permission denied response.If you want to take an extra step, which isn't really needed, do a factory reset.
    Now go download at least a couple of the apps you use so your phone looks like it's actually been used.

    THANKS TO SPEEFDYMON
    Last edited by shantanu; 01-09-2010 at 05:14 AM.
    LG OPTIMUS 2X : MY INDROID EVOLUTION RC3
    SAMSUNG GALAXY SL : MY ANDROID EVOLUTION
    HTC ELFIN : MY DARIUS 6.5 ROM
    SONY ERICSSON X10 MINI : MINI EVOLUTION

    http://www.motorolafans.com/forums/signaturepics/sigpic64563_36.gif
    "GONE FOREVER TO MAKE A COME BACK"


 
+ Reply to Thread

Similar Threads

  1. Replies: 2
    Last Post: 12-30-2011, 08:27 PM
  2. [guide] English FAQ , install guide
    By muromec in forum Qt Extended
    Replies: 54
    Last Post: 08-03-2010, 06:57 AM
  3. Complete Idiot's Guide To Flashing & Programs For E
    By jezmaster in forum E680i General Chat
    Replies: 119
    Last Post: 05-04-2009, 06:48 PM
  4. [Guide] Z6 Menu Back-Up
    By InsecureSpike in forum ROKR Z6
    Replies: 0
    Last Post: 07-24-2008, 04:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1