FORUMS
Remove All Ads from XDA

[TUT] Downgrade/Unbrick Ville S4

2,097 posts
Thanks Meter: 1,429
 
By mirGantrophy, Senior Member on 13th November 2012, 08:06 PM
Thread Closed Email Thread
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 TO DOWNGRADE IF YOU TOOK THE JB OTA. IT HAS BEEN REPORTED TO PERMANENTLY BRICK PHONES ON THE EVITA SIDE


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 adb and enable USB debugging (adb is in the android SDK, or search Google for a download)

3. Open your command line and type the following
Code:
$ adb shell
$ su
# dd if=/dev/block/mmcblk0p4 of=/sdcard/bakp4
# exit
$ exit
COPY bakp4 to a SAFE location ON YOUR COMPUTER and UNMOUNT your USB storage

4. Kill your phone
Code:
$ adb shell
$ su
# dd if=/sdcard/killp4 of=/dev/block/mmcblk0p4
# exit
$ exit
5. Reboot your phone. The charging light will no longer be on, and you should be stuck on a black screen.


Enumerating your partitions

Q: What does enumerate mean?
A:
Code:
enumerate - to specify one after another.
Synonym: list
Prerequisites: Ubuntu 12.04 or higher. 32/64 bit
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
3. Now, hold power down on your phone for about 10 seconds*,OR until you see (QDL mode) disappear and let go, Then go to your second window and repeatedly run the following command
*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*
You should go from seeing this..


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"
You should see "Qualcomm USB modem converter detected" as the last line of the output. If not, you can unplug and replug the USB cable or run...

Code:
$ sudo modprobe qcserial
to reload the driver

6. Reset the driver
Code:
$ sudo modprobe -r qcserial
7. create the block device
Code:
$ sudo mknod /dev/ttyUSB0 c 188 0
8. Open a third Terminal window and navigate to where you stored the ville folder. I saved it to my desktop, so my code is
Code:
$ cd Desktop/ville
$ chmod +x emmc_recover
9. Now we restore the hboot.. replace /sdc12 with your device location that we discovered in step 3 and 4
Code:
$ sudo ./emmc_recover -f ./hboot.nb0 -d /dev/sdc12 -c 24576
You can hit enter at all of the prompts here. If it stalls at "Waiting for /dev/sdc12, hold the power button down on your phone about 10 seconds, or until your see "Qualcomm. Inc. Gobi Wireless Modem (QDL mode) disappear from your terminal window, then release it. 10 seconds or less after you do this, emmc_recovery will see your phone and proceed. Flashing Hboot will take several minutes, as it has to load data in ~23K chunks followed by a reset after each.

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
10. Once that is finished. We have to reset the qcserial driver again.
Code:
$ sudo modprobe -r qcserial
11. And then recreate the block device
Code:
$ sudo mknod /dev/ttyUSB0 c 188 0
12. Now we restore the original mmcblk0p4 that you should have saved as "bakp4"
Code:
$ sudo ./emmc_recover -f ./bakp4 -d /dev/sdc4 -c 24576
13. Again, if it hangs, hold your phone's power button for about 10 seconds, then release. This file will flash very quickly (it's only 1K) and once it completes, you'll immediately notice that your charging light turns back on. You should see "Qualcomm, Inc." or "Qualcomm, Inc. Gobi Wireless modem (QDL mode) disappear from your terminal screen.

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)
Attached Files
File Type: zip ville.zip - [Click for QR Code] (720.3 KB, 3171 views)
The Following 124 Users Say Thank You to mirGantrophy For This Useful Post: [ View ] Gift mirGantrophy Ad-Free
 
 
13th November 2012, 08:07 PM |#2  
mirGantrophy's Avatar
OP Senior Member
Thanks Meter: 1,429
 
More
This is why it is easier on evita.. http://db.tt/kCeCpDAE
I made a version for you guys.. http://db.tt/ar4sbw6V


Place on your sdcard
open terminal emulator

Code:
$ su
# dd if=/sdcard/mmcblk0p23 of=/dev/block/mmcblk0p23
reboot to fastboot and lock your bootloader. And then run the RUU

You can download the edited version. USE WITH CAUTION
The Following 20 Users Say Thank You to mirGantrophy For This Useful Post: [ View ] Gift mirGantrophy Ad-Free
13th November 2012, 08:10 PM |#3  
Senior Member
Thanks Meter: 210
 
More
Just finished downgrading from 1.14 to 1.06.

I started with Jet and replaced the bakp4 after it was created with my own and replaced the hboot with the 1.06 version for the One S. Jet got stuck and kept giving me "Failed to flash hboot" so I jumped over to the manual instructions and finished it that way.

Thanks mikeyinid for bringing to my attention that we can do this and being the first guy to try it with the One S. Thanks absolutelygrim for all your hard work and instructions.
The Following 2 Users Say Thank You to dc211 For This Useful Post: [ View ] Gift dc211 Ad-Free
13th November 2012, 08:16 PM |#4  
mirGantrophy's Avatar
OP Senior Member
Thanks Meter: 1,429
 
More
Quote:
Originally Posted by dc211

Just finished downgrading from 1.14 to 1.06.

I started with Jet and replaced the bakp4 after it was created with my own and replaced the hboot with the 1.06 version for the One S. Jet got stuck and kept giving me "Failed to flash hboot" so I jumped over to the manual instructions and finished it that way.

Thanks mikeyinid for bringing to my attention that we can do this and being the first guy to try it with the One S. Thanks absolutelygrim for all your hard work and instructions.

Jet has a few bugs right now, some users have reported it working, I haven't gotten it to work for me. Failed at flashing hboot, manual method has always saved them
The Following 4 Users Say Thank You to mirGantrophy For This Useful Post: [ View ] Gift mirGantrophy Ad-Free
13th November 2012, 09:05 PM |#5  
Behold_this's Avatar
Senior Member
Flag Las Vegas
Thanks Meter: 4,543
 
Donate to Me
More
Nice work! This should be on the dev forum. Please request a moderator move it there where those in need have a better chance to find it.
The Following 4 Users Say Thank You to Behold_this For This Useful Post: [ View ] Gift Behold_this Ad-Free
13th November 2012, 09:12 PM |#6  
mikeyinid's Avatar
Senior Member
Flag Boise
Thanks Meter: 4,225
 
More
You should mention that Linux is needed earlier on in the OP so people don't brick then realize they can't unbrick cus they don't have Linux. People won't read the whole thing before they jump in.

Sent from my HTC One S using xda premium
The Following User Says Thank You to mikeyinid For This Useful Post: [ View ] Gift mikeyinid Ad-Free
13th November 2012, 09:18 PM |#7  
Rampage's Avatar
Senior Member
Flag Bremen
Thanks Meter: 637
 
Donate to Me
More
Quote:
Originally Posted by Behold_this

Nice work! This should be on the dev forum. Please request a moderator move it there where those in need have a better chance to find it.

And maybe sticked.

Send from a phone.
13th November 2012, 09:53 PM |#8  
which hboot does this downgrade to? i am currently on 1.14.001 can mine be downgraded?
13th November 2012, 09:57 PM |#9  
mirGantrophy's Avatar
OP Senior Member
Thanks Meter: 1,429
 
More
Quote:
Originally Posted by sherry478

which hboot does this downgrade to? i am currently on 1.14.001 can mine be downgraded?

It downgrades you to 1.06
13th November 2012, 10:04 PM |#10  
mikeyinid's Avatar
Senior Member
Flag Boise
Thanks Meter: 4,225
 
More
Quote:
Originally Posted by sherry478

which hboot does this downgrade to? i am currently on 1.14.001 can mine be downgraded?

Yes it can. I downgraded mine from 1.14 to 1.06.

Sent from my HTC One S using xda premium
The Following User Says Thank You to mikeyinid For This Useful Post: [ View ] Gift mikeyinid Ad-Free
13th November 2012, 10:36 PM |#11  
Darknites's Avatar
Senior Member
Thanks Meter: 2,586
 
More
How easy is this to do if you never used linux? and also can it be done in Virtualbox?
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes