[Miscellaneous Android Development] sandnap:
CWM

Installing ClockworkMod 6.0.2.8 on your Pantech Discover

WARNING: Please review the Warning/Disclaimer in the original post before following this procedure!

Click "CLICK TO SHOW CONTENT" to proceed.

Prerequisites

You must have adb and fastboot installed and working on your computer. There are literally hundreds of tutorials on this so I won't go into it here.

Your phone must be rooted

Optional but recommended

If you are on Jellybean and you haven't already done so I recommend reverting to the unlocked (ICS) booloader. An unlocked bootloader will increase the ability to restore a "brick" substantially.

Ready, set, go!

Option 1 (Do this if you have the unlocked ICS bootloader this is much faster)

Download update_magnus_clockworkmod-6.0.2.8.zip and recovery-magnus.img and move them to a directory of your choosing hereafter known as <install-directory>

Turn off the phone, copy update_magnus_clockworkmod-6.0.2.8.zip to a micro sdcard and install it in the phone

Boot the phone in fastboot (bootloader) mode by holding down both volume buttons and power, once the menu appears use the volume keys to select fastboot, then hit power

Attach your phone to your computer

Open a cmd window (Windows) or terminal/shell (unix flavors) and type the following command (hit enter after each):

cd <install-directory>

Now boot to the magnus recovery by typing:

fastboot boot recovery-magnus.img

The phone should be booted to CWM, now select the menu options:

install zip from sdcard > choose zip from external sdcard​

Select update_magnus_clockworkmod-6.0.2.8.zip then hit power and confirm by choosing

Yes - Install update_magnus_clockworkmod-6.0.2.8.zip​

Once the install is finished choose

Go Back > reboot system now​

Enjoy!

Option 2 (Do this if you have the locked Jellybean bootloader and do not wish to revert it):

Attach your phone to your computer and make sure it is booted to Android

Download recovery-magnus.img and move it to a directory of your choosing hereafter known as <install-directory>

Open a cmd window (Windows) or terminal/shell (unix flavors) and type the following command (hit enter after each):

cd <install-directory>
adb push recovery-magnus.img /sdcard/
adb shell

In the adb terminal type:

cd /sdcard
ls

Verify that the recovery-magnus.img file is there and if so type:

su
mount -o rw,remount /system
dd if=recovery-magnus.img of=/dev/block/mmcblk0p20

You should see output indicating that the image was flashed (I'll try to update this with the exact text). If you get an error don't continue and when you reboot to Android the original recovery should be restored. Otherwise type:

mv /system/recovery_from_boot.p /system/recovery_from_boot.p.bak
exit
exit

You should be back in your computers terminal, type:

adb reboot recovery

You should be in CWM 6.0.2.8 after a minute or so. The first time you reboot CWM will ask if you want to prevent recovery from being overwritten, go ahead and say yes.

You can use the backup feature to backup your ROM.

What works

Backup/restore from sdcard and external sdcard (including advanced restore)

Delete backup (sdcard and external sdcard)

Choose default backup method

Install zip from sdcard (external)

Wipe cache

Wipe dalvik-cache

Wipe data/factory reset

Mounts - mounting and unmounting partitions

Key test

Show log

Fix permissions (I ran this and it completed and the phone boots but I haven't done exhaustive testing so I don't recommend it, shouldn't need this feature at this point)

What hasn't been tested yet

Install zip from sideload

Format partitions (not recommended)

Partition external sdcard

Report error

Bugs

Backups do not reflect the correct date (common issue that can be resolved eventually)