Showing posts with label root. Show all posts
Showing posts with label root. Show all posts

Monday, June 25, 2012

Do not Factory Reset your Rooted Android Phone (and how to fix it)

So I did it; I hit Settings -> Privacy -> Factory Reset on my rooted LG Optimus V Android 2.2.1 phone (despite having read that one should never ever do this to a rooted Android phone).  Phone tried to reboot, but got stuck in a loop at the Custom Recovery (a bootup menu).  In other words, I bricked the phone - or at least softly so, because there is a solution, which is particularly easy if you have/had a Custom Recovery installed.  This is what I did:
  1. Powered off the phone.
  2. Moved the SD card from the phone to my notebook.
  3. Downloaded Xionia_CWMA_12518.6_VM_Recovery-signed.zip [5,068,663 bytes]
  4. Copied the above ZIP file to the root of the SD card.
  5. Moved the SD card back to the phone.
  6. Start the phone by holding down Home + Volume Down, and then the Power button (until LG logo appears).  This will boot the phone into recovery mode.
  7. In the recover menu, select 'install zip from sdcard' (navigate with Volumn Up/Down, Back and Camera keys).
  8. Select 'choose zip from sdcard'.
  9. Select 'Xionia_CWMA_12518.6_VM_Recov[...]'.
  10. Confirm the installation by selecting 'Yes - Install  Xionia_CWMA_12[...]'.
  11. Phone will now be reflashed (fast; a few seconds) while displaying:
    -- Installing: SDCARD:Xionia_CWM
    A_12518.6_VM_Recovery-signed.zip
    Finding update package...
    Opening  update package...
    Verifying update package...
    Installing update...
    *-* Flashing Xionia CWMA 12518.4 VM Recovery *-*
    -------------------
    Done!
    Install from sdcard complete.
  12. Hit Back key and select 'advanced'.
  13. Select 'Fix Recovery Boot Loop'.  Screen will go black and phone will reboot.
  14. Phone will start up the default Android image.
Although it's the default Virgin Mobile LG setup, everything works, i.e. WiFi, 3G and phone calls. Phew!

Since I've previously done a full Nandroid backup using the Custom Recovery, I could also restore the ROM image to the most recent backup I've done by:
  1. Power off the phone.
  2. Boot up the phone in Recovery mode (Home + Volume Down & Power buttons).
  3. Select 'backup and restore' in the Recovery menu.
  4. Select 'Restore'.
  5. Select '2012-05-13.03.52.34/' (that was my last backup)
  6. Confirm by selecting 'Yes - Restore'.
  7. This will reflash the phone (taking a few minutes) while displaying:
    Xionia CWMA v1.2518.6
    Checking MD5 sums...
    Erasing boot before restore...
    Restoring boot image...
    Restoring system...
    Restoring data...
    Restoring .android_secure...
    Restoring cache...
    sd-ext.img not found. Skipping r
    estore of /sd-ext/
    Restore complete!
  8. In the recovery menu, select 'reboot system now'.
  9. The phone will startup with the ROM and settings you had when you did the backup.
Awesome!  Phone is back to what it used to be.

Thursday, December 22, 2011

Samsung Galaxy Gio (S5660): Root

There are many reason for acquiring root access ("run as adminstrator") to your Android phone, e.g. remove all ads (AdFree), backup all apps and their settings (Titanium Backup) and unlock the phone so it works with any network provider.

To root my Samsung Galaxy Gio (S5660) with Android 2.3.3 (Gingerbread; firmware KPS), I did the following:

A. "Installed" SuperOneClick on Windows 7 Ultimate 64-bit:
  1. Downloaded SuperOneClick (v2.3.2) and extracted to a directory, e.g. SuperOneClick/.
B. Rooted the phone following instructions by AddictiveTips:
  1. Enable USB debugging on the phone by enabling Menu > Settings > Applications > Development > 'USB Debugging'.
  2. Connected the phone to the computer via USB cable.
  3. Started the Android SDK Manager.
  4. Run SuperOneClick.exe.
  5. In SuperOneClick, click 'Root' (in the 'General' tab).
  6. Wait a couple of minutes. You'll see lots of log entries being printed. Mine ended with the three lines: '[+] Rush did it ! It's a GG, man !', '[+] Killing ADB and restarting as root... enjoy!' and '+++ LOG: write failed (errno=14)'.
  7. Your phone is rooted. It will probably reboot by itself.
C. Verified that the phone was truly rooted:
  1. Start the phone.
  2. Find the 'Superuser' app. If it exists, it is rooted, but you can also start it to make sure; at first you should see an empty list of apps with superuser rights under 'Allow'. Later this list will be populated with apps you allow to run as "superuser", e.g. AdFree and Titanium Backup.