Root [CWM] Updated 9/21/13 CWM recovery for all variants

D

Deleted User

Guest
This recovery is CWM for the One SV. It is fully working and has no problems. All variants are supported below

K2_CL (Boost Mobile) -> Boost Download

K2_PLC_CL (Cricket) -> Cricket Download

K2_UL (EU LTE) -> EU LTE Download

K2_U (EU NON-LTE) -> EU Non-LTE Download

Sources:
Boost Mobile Source
Cricket Source
EU LTE Source
EU Non-LTE Source

To build these recoveries on your own, simply follow the directions below:
Clone the CyanogenMod repo. See their wiki at http://wiki.cyanogenmod.org
create a local_manifests file by issuing the command `mkdir -p .repo/local_manifests/` then `gedit .repo/local_manifests/k2.xml`
inside this new document place the following lines

Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="device/htc/msm8960-common" name="CyanogenMod/android_device_htc_msm8960-common" />
    <project path="device/htc/s4-common" name="CyanogenMod/android_device_htc_s4-common" />

    <project path="device/htc/k2_cl" name="SimonSickle/android_device_htc_k2_cl" revision="cwm" />
    <project path="vendor/htc/k2_cl" name="SimonSickle/android_vendor_htc_k2_cl" revision="jellybean" />

    <project path="device/htc/k2_plc_cl" name="SimonSickle/android_device_htc_k2_plc_cl" revision="cwm" />
    <project path="vendor/htc/k2_plc_cl" name="SimonSickle/android_vendor_htc_k2_plc_cl" revision="jellybean" />

    <project path="device/htc/k2_ul" name="SimonSickle/android_device_htc_k2_ul" revision="cwm" />
    <project path="vendor/htc/k2_ul" name="SimonSickle/android_vendor_htc_k2_ul" revision="jellybean" />

    <project path="device/htc/k2_u" name="SimonSickle/android_device_htc_k2_u" revision="cwm" />
    <project path="vendor/htc/k2_u" name="SimonSickle/android_vendor_htc_k2_u" revision="jellybean" />

    <project path="kernel/htc/k2" name="SickleKernels/android_kernel_htc_k2" revision="htc_3.4" />
</manifest>

now run `repo sync` and wait for this to finish. It will take a long time
With any luck, you now have the source. Your computer should already be set up to build so just do the following commands
. build/envsetup.sh
now you will want to lunch the right device (see the download section as a guide)
lunch cm_k2_cl-userdebug
and finally the make command is as follows
make -j5 recoveryimage

at the end you will see a welcoming path to your new recovery. Flash it in fastboot or with dd and enjoy!
 
Everytime i try to fastboot flash the img it says cannot load 'CWMrecovery.img': no error. I also tried changing the name to recovery.img
 
Did you check your download. It's a 7mb file. And be sure your actually pointing to a valid file in the command
 
Did you check your download. It's a 7mb file. And be sure your actually pointing to a valid file in the command

Yes I have the file in the same folder as fastboot. I'm using the following command:
fastboot flash recovery CWMrecovery.IMG
And the file is 7,658kb I'll try downloading again.
 
Oh looked at your post again.. You had the wrong command. Proper is

fastboot flash recovery CWMrecovery.img

Edit shin you beat me to it by 10 seconds :)
 
Lol, that's was the first thing I noticed. And good work on the recovery. Pm me the status of CM10 my main issue was getting it past the HTC boot logo lol.
 
Is this a touch recovery? If so then I will build a non touch recovery. And maybe twrp if enough people want it.
 
Great job Simon! Do you happen to know why we cannot mount sd card while in recovery? its no biggie, but it is a nice little feature. Here's hoping you can get it working.
 
I already have twrp built and the touch will come from koush since I have it submitted for official :) I'm releasing after I try all the other functions tonight to know it doesn't brick
 
  • Like
Reactions: i2f and irishobo
Mine was working fine on the old phone and so far is working great, since last nights installation, on the new one.
 
Ok a different question, anyone flashing roms with either recovery? The new one works fine until you flash a rom then the recovery reboots the phone. it does it on both the new recovery and on the old one.
 
I don't have that issue either and I flash a lot of roms. I could see a bad updater script calling busybox to make the phone restart. That's a possibility
 
i cant get anything to flash, i think it is related to the cache partition. but, i cant flash anything. I select a zip and go to flash then boom the device restarts.
 
Well the partitions are correct in the fstab and it's working for me.. I guess my only other question is are you a cricket or boost model. Cat /proc/emmc