HTC Desire S S-OFF hboot 2.00.002

How to downgrade the hboot in order to be able to use revolutionary.io. The main source for this post was an article on miui-germany.de. You will need adb and fastboot. If you don’t want to install the full Android SDK you can download them from miui-germany.de or from here.

1. Put the phone in debug mode:
- disable fastboot Settings -> Power -> Fastboot or Settings -> Applications -> Fastboot.
- enable USB debugging Settings -> Applications -> Development -> USB debugging.

2. Unlock the bootloader:
- you will need to login on htcdev.com. If you don’t have an account create one.
- go to www.htcdev.com/bootloader.
- choose All Other Supported Models and follow the instructions.

3. Root and change version:
- start the phone in fastboot mode and connect the usb cable.
- run fastboot oem lock. Reboot the phone.
- download zergRush from miui-germany.de or from here.
- extract the content of zergRush.zip in the same folder as adb.exe.
- run
adb push zergRush /data/local/tmp
adb push misc_version /data/local/tmp
adb shell chmod 777 /data/local/tmp/zergRush
adb shell chmod 777 /data/local/tmp/misc_version
adb shell /data/local/tmp/zergRush

At this point the adb shell should close and restart with root permissions.
- run adb shell /data/local/tmp/misc_version -s 1.27.405.6.

4. Downgrade hboot:
- download RUU_Saga_HTC_Europe_1.28.401.1.
- run the RUU and follow the instructions on your PC screen.
- after 5 – 10 min the RUU will install Android 2.3.3, HBOOT 0.98.0000, S-ON.

5. Go to revolutionary.io and follow the instructions here to S-OFF your phone.


Self signed certificate, fast and easy

Use certtool instead of openssl. It is less flexible but much more user friendly.

1. Installation:
Certtool is part of GnuTLS. On debian-based distributions you have to install the gnutls-bin package.

2. Create a private key:

# certtool -p --outfile server.key.pem

3. Generate the self signed certificate:

# certtool -s --load-privkey server.key.pem --outfile server.crt.pem

You will get a prompt to enter various informations required for a certificate. For a server certificate you only need to fill common name with the server name (e.g. http://www.server.com) and validity period.

For some applications, like openvpn, you may need your own certificate authority (CA). These are the steps required:
- create a CA key
- create a self signed certificate for the CA. Say yes to the questions: “Does the certificate belong to an authority?” and “Will the certificate be used to sign other certificates?”
- create a key
- create a certificate using the CA key, CA certificate and the above key. For openvpn the common name is the user name.

# certtool -p --outfile ca.key.pem
# certtool -s --load-privkey ca.key.pem --outfile ca.crt.pem
# certtool -p --outfile user.key.pem
# certtool -c --load-privkey user.key.pem --load-ca-privkey ca.key.pem --load-ca-certificate ca.crt.pem --outfile user.crt.pem


Cisco vpn client on Linux

These are the steps required to instal the Cisco vpn client ver. 4.8.02.0030 on Ubuntu 11.10 (it should work on any kernel above 2.6.38):

1. Download the necessary software:

- Cisco vpn client.
- patch 01. Get details about this patch here.
- patch 02. Get details here.
- optionally patch 03. This is a patch I wrote and it enables dkms for building and installing the cisco_ipsec kernel module.

2. Apply patches:

# tar -xzvf vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
# cd vpnclient
# patch -p1 < ../vpnclient-01-a-fseitz.patch
# patch -p1 < ../vpnclient-02-joergensen.patch
# patch -p1 < ../vpnclient-03-dkms.patch


3. Install:

# ./vpn_install

 


Follow

Get every new post delivered to your Inbox.