Ok so here are some steps that should help people do all of this on Linux. I went through the entire process on my phone on Nov. 8, 2012. I put the following notes together from everything I have read in this thread and some issues I experienced while trying to do this. It should be as simple as following the steps below to fully unlock (S-OFF and root) this phone on Linux.
I initially planned on using Ubuntu 32-bit 12.04 (since I have such a partition lying around on my hard drive), but for some reason the fastboot command would just hang on "waiting for device" when I was trying to unlock the bootloader at htcdev.com. I couldn't explain why this was happening, verified that USB debugging was ON and that fastboot was OFF, tried many times, and couldn't get it to work. Eventually I just restarted my computer and booted up into my Ubuntu 12.10 64-bit partition. The fastboot command worked perfectly fine there. One possible explanation why it might have failed was that I had Sun (Oracle) Java7 installed on Ubuntu 12.04, but still have Java6 installed on my 12.10 partition. Maybe Java7 causes problems? I don't know...I googled the problem and several other people had this issue, including Windows users but there doesn't seem to be a consensus on what the fix is...
For 64-bit users just be sure that you install the ia32-libs package (covered in step 3 of the original post of this thread but essentially just means you should run the command "sudo apt-get install ia32-libs" from your terminal).
1. Install Java if you don't already have it
You can get Java7 from the webupd8 PPA:
Code:
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer
2. Download the Android SDK
Get it at
Android SDK | Android Developers
3. Launch the Android utility from the SDK
Open a terminal (CTRL+ALT+T), cd into the Downloads directory (or whatever directory you saved the file in), unpack the tar, and execute the android binary:
Code:
$ cd ~/Downloads
$ tar -xzf android<press tab key> (NOTE: the tab key should autocomplete the filename for you)
$ cd android-sdk-linux/tools
$ ./android
EDIT on December 5, 2012: Recently it seems that Google is now uploading .zip files for the SDK instead of .tar.gz files. If you happen to get a zip file then simply replace the second command (tar -xzf) with the command unzip without any arguments. An example can be found in step 8 when unzipping the zedomax.zip file.
4. Install the platform tools package
Put a checkmark next the platform tools and click OK to install that 1 package. You can install other stuff if you want it at a later time. Once the installation is done, go ahead and close this program.
5. Configure your path to easily run adb and fastboot
Go into the platform-tools directory and then configure your path so that adb and fastboot are found automatically (without having to type the fully qualified path to them each time you want to use them). Note that this is only applicable for the currently open terminal, so if you wish to want to have the platform-tools directory in your path permanently, then follow the optional step below:
Code:
$ cd ../platform-tools
$ export PATH=$PATH:$PWD
Optional -- Update your PATH variable so that the adb and fastboot commands are always found when you open a new terminal in the future:
Code:
echo "export PATH=\$PATH:$PWD" >> ~/.bashrc
6. Clear google wallet to prevent any issues
This is done by opening the Google Wallet app. Then choose menu > settings > reset Google Wallet.
I tried doing this on mine but I guess my software version was so old that I simply got a message that Google Wallet wasn't enabled on my device and it promptly exited. I therefore moved on to the next step.
7. Unlock the bootloader
Do this via
Welcome to HTCdev. Ample instructions are included on their web site so I won't include them here, but adb and fastboot commands should now be in your PATH per step 5 so they should just work.
One tip I would offer is to copy and paste the entire unlock token into gedit. From there you can use CTRL+H and replace all instances of "(bootloader) " with the empty string (meaning that you should not enter anything in the "replace with" field).
8. Flash superuser and busybox
This is basically covered in the "zedomax" method in step 2 of the original post for this thread (just make sure you have USB debugging enabled and your USB connection is set to "charge only"). You really don't need to do much here, just download the zedomax.zip file (attached to this post since the original link doesn't seem to work any longer) and then run the commands below to unzip it and execute the runmelinux.sh script:
Code:
$ cd ~/Downloads
$ unzip zedomax.zip
$ cd zedomax
$ chmod +x *linux*
$ ./runmelinux.sh
9. Flash TWRP recovery
This is also covered in step 2 of the original post of this thread. Essentially, just download the openrecovery-twrp-2.2.1-jewel.img file attached to the original post and then reboot your phone into the bootloader, select fastboot, and run these commands:
Code:
$ cd ~/Downloads
$ fastboot flash recovery openrecovery-twrp-2.2.1-jewel.img
10. Run LazyPanda
This is covered quite thoroughly in step 3 of the original post of this thread. There is really no need to repeat it here.
11. Upgrade to LazyPanda 1.12.2222
This is covered in step 4 of the original post of this thread. Again, no need to repeat it here.
12. Run RegawMOD bootloader customizer
This step is optional and requires a Windows system (if you have one handy). You can use it to customize the banner message in hboot and/or to remove watermark and make it look like phone is still locked.
It turns out that you cannot install the .NET 3.5 framework using wine (older versions could be installed using winetricks) so unfortunately you will need a Windows machine for this to work.