[HTC Desire C] addictz10:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
* Submitting bug reports on nightly builds is the leading
* cause of male impotence.
*/

Q: Why S-OFF?

A: So you can flash .img on recovery or within ROMs

Requirements:

- Unlocked bootloader: Download Here

- HTC Drivers: Download Here

- ADB and Fastboot Drivers: Download Here

- S-OFF App (RumRunner): Download Here

- TWRP Recovery: Download Here

- CM10 Build 3: Download Here

- GAPPS: Download Here

Steps:

1. First make sure that you've already unlocked your Bootloader.

2. Also make sure that you already have installed HTC, ADB, Fastboot drivers.

3. Boot into Fastboot and connect to PC

4. Run CMD from your adb folder created by adb and fastboot tool located in C:/adb then hold shift then right click in a blank space, click open command window here.

5. Flash TWRP recovery (rename the twrp recovery file as "recovery") and then type "fastboot flash recovery recovery.img" (without quotes), then hit enter.

(Make sure you already have nandroid backup from your custom recovery)

6. Before you flash do a FULL WIPE first. Full Wipe means format /system, /data, /cache. Go to Wipe option then go to advanced then choose data, cache, system then wipe.

7. Copy the CM10 and Gapps to your sd card and flash via twrp.

8. After you flashed the ROM do not power off, reboot to bootloader.

9. Extract boot.img from CM10 and flash via fastboot. Type: "fastboot flash boot boot.img" (without quotes).

10. Then type fastboot reboot.

11. Now your device is ready for S-OFF now.

12. Enable USB debugging then connect your device to PC

13. Extract rumrunner s-off kit to any new folder.

14. Run soju.exe type Yes and Yes wait 4-8mins to finish (If it error in checking update just turn off Anti-virus and Firewall)

15. If all goes well and no error, you can now reboot. You are now S-OFF'd, but not yet finished.

(These next steps needs 1.31 Hboot, Updating to 1.31 will be posted on Post #2)

16. Go to Fastboot and type: "fastboot oem writecid 11111111" (without quotes), output should be something like this

...

(bootloader) AMSS is ready

(bootloader) buf_addr:1FC300,buf_size:200,start_sector:1739D

(bootloader) HWIO_SDC1_MD_REG_ADDR=0xA86000A0

(bootloader) HWIO_SDC1_NS_REG_ADDR=0xA86000A4

(bootloader) HWIO_SDC3_MD_REG_ADDR=0xA86000B0

(bootloader) HWIO_SDC3_NS_REG_ADDR=0xA86000B4

(bootloader) phys_to_virt(HWIO_SDC1_MD_REG_ADDR)=0xB32000A0

(bootloader) phys_to_virt(HWIO_SDC1_NS_REG_ADDR)=0xB32000A4

(bootloader) phys_to_virt(HWIO_SDC3_MD_REG_ADDR)=0xB32000B0

(bootloader) phys_to_virt(HWIO_SDC3_NS_REG_ADDR)=0xB32000B4

(bootloader) HWIO_SDC1_MD_REG_ADDR=0xA86000A0

(bootloader) HWIO_SDC1_NS_REG_ADDR=0xA86000A4

(bootloader) HWIO_SDC3_MD_REG_ADDR=0xA86000B0

(bootloader) HWIO_SDC3_NS_REG_ADDR=0xA86000B4

(bootloader) phys_to_virt(HWIO_SDC1_MD_REG_ADDR)=0xB32000A0

(bootloader) phys_to_virt(HWIO_SDC1_NS_REG_ADDR)=0xB32000A4

(bootloader) phys_to_virt(HWIO_SDC3_MD_REG_ADDR)=0xB32000B0

(bootloader) phys_to_virt(HWIO_SDC3_NS_REG_ADDR)=0xB32000B4

(bootloader) sdcc_init_memory_device done

(bootloader) HWIO_SDC1_MD_REG_ADDR=0xA86000A0

(bootloader) HWIO_SDC1_NS_REG_ADDR=0xA86000A4

(bootloader) HWIO_SDC3_MD_REG_ADDR=0xA86000B0

(bootloader) HWIO_SDC3_NS_REG_ADDR=0xA86000B4

(bootloader) phys_to_virt(HWIO_SDC1_MD_REG_ADDR)=0xB32000A0

(bootloader) phys_to_virt(HWIO_SDC1_NS_REG_ADDR)=0xB32000A4

(bootloader) phys_to_virt(HWIO_SDC3_MD_REG_ADDR)=0xB32000B0

(bootloader) phys_to_virt(HWIO_SDC3_NS_REG_ADDR)=0xB32000B4

(bootloader) Finish write sector address 1739D ...

(bootloader) writecid: successfully

OKAY [ 0.635s]

finished. total time: 0.637s

And getvar all should display this

C:\Adb>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 1.31.0000

(bootloader) version-baseband: 1.19.98.02

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

(bootloader) serialno: HT25YW507936

(bootloader) imei: 352276050853779

(bootloader) product: golfu

(bootloader) platform: HBOOT-7225A

(bootloader) modelid: PL0110000

(bootloader) cidnum: 11111111

(bootloader) battery-status: good

(bootloader) battery-voltage: 4199mV

(bootloader) partition-layout: HTC

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-e118df77

(bootloader) hbootpreupdate: 12

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.013s

Note:

- After S-OFF there will be 7 vibrations, don't worry about that.

Credits:

- HTC for their S-ON Feature. smh

- xda-developers

- CyanogenMod (LineageOS)

- Team Win

- Snoop05

- gsmhosting

- jamesjerss

- CDMA_RASHID

- RumRunner devs

- cute_prince

- h1gh1

- dhakalanil81@gmail.com

- Arslankirmani

- Makerrr

- Gamers' Hub

- And all