Introduction
This should work on the S4 version of the HTC One S. I do not recommend trying this on the S3 version..
Nobody is responsible for the outcome of your phone except you. You know the possible risks and you took them
DO NOT ATTEMPT UNLESS YOU ARE COMFORTABLE WITH THIS OR KNOW WHAT YOU ARE DOING
DO NOT ATTEMPT UNLESS YOU HAVE LINUX INSTALLED.. Ubuntu 12.04 or higher preferred - 32/64 bit!
You can use a livecd or wubi. No virtualbox
This guide assumes your Bootloader is unlocked, You have Recovery Installed, and USB Debugging is ENABLED. Please enable USB debugging before continuing
Creating the brick
Prerequisites: killp4.. included in the unbrick package
unbrick package: http://dl.dropbox.com/u/40181085/ville.zip
A backed up p4!
*MAKING A NANDROID BACKUP WILL DO NOTHING FOR YOU.. BUT I DO RECOMMEND HAVING ONE AT ALL TIMES*
1. Place killp4 on your /sdcard
2. Download terminal emulator on your phone if it isn't installed already
3. Open terminal emulator and type the following
Code:
$ su
# dd if=/dev/block/mmcblk0p4 of=/sdcard/bakp4
4. Kill your phone
Code:
$ su
# dd if=/sdcard/killp4 of=/dev/block/mmcblk0p4
Enumerating your partitions
Q: What does enumerate mean?
A:
Code:
enumerate - to specify one after another.
Synonym: list
unbrick package: http://dl.dropbox.com/u/40181085/ville.zip
A null p4 or the bakp4 you acquired earlier.
a null p4 is included in the unbrick package if you didn't save your backup.. you will need to hex edit your IMEI into this file. the offset is 0x21c, it's after 11111111, which is the SuperCID
1. Open up 3 terminal windows
2. On your first window, type
Code:
$ watch -n.1 lsusb
*On the HTC One X you have to hold power for 10 seconds, on the EVO 4G LTE it is ~30 seconds. This number may vary
Code:
$ ls /dev/sd*

to seeing this...

4. Make note of the following.
for me, my devices was listed as /dev/sdb, yours may be listed as /dev/sdc or even /dev/sdd.
make note of /dev/sd*4 and /dev/sd*12
5. Make sure Linux sees the phone
Code:
$ sudo dmesg | grep "qcserial"
Code:
$ sudo modprobe qcserial
6. Reset the driver
Code:
$ sudo modprobe -r qcserial
Code:
$ sudo mknod /dev/ttyUSB0 c 188 0
Code:
$ cd Desktop/ville
$ chmod +x emmc_recover
Code:
$ sudo ./emmc_recover -f ./hboot.nb0 -d /dev/sdc12 -c 24576
or you can open a new terminal window and run the following command IF AND ONLY IF the phone doesn't reset out of QDL mode
Code:
$ sudo ./emmc_recover -r
Code:
$ sudo modprobe -r qcserial
Code:
$ sudo mknod /dev/ttyUSB0 c 188 0
Code:
$ sudo ./emmc_recover -f ./bakp4 -d /dev/sdc4 -c 24576
14. Press the thanks button for yarrimapirate. As these are his tools/methods
special thanks to
beaups (for helping me understand how to enumerate the partitions)
18th.abn (for getting me the 1.09 hboot and also agreeing to help me)
and yarrimapirate (not only for the scripts which he made for the Evo 4G LTE, but also agreeing to help me in this project and buying a one x with his own money)