]> pere.pagekite.me Git - homepage.git/blobdiff - blog/archive/2016/07/07.rss
Generated.
[homepage.git] / blog / archive / 2016 / 07 / 07.rss
index 1984efd6cb9b7f3b474f0ead198b7603e80651be..6c6f2ba8d6b07188829593d61f46a96dbd3f1b0d 100644 (file)
@@ -6,6 +6,91 @@
                 <link>http://people.skolelinux.org/pere/blog/</link>
 
        
+       <item>
+               <title>Unlocking HTC Desire HD on Linux using unruu and fastboot</title>
+               <link>http://people.skolelinux.org/pere/blog/Unlocking_HTC_Desire_HD_on_Linux_using_unruu_and_fastboot.html</link>        
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Unlocking_HTC_Desire_HD_on_Linux_using_unruu_and_fastboot.html</guid>
+                <pubDate>Thu, 7 Jul 2016 11:30:00 +0200</pubDate>
+               <description>&lt;p&gt;Yesterday, I tried to unlock a HTC Desire HD phone, and it proved
+to be a slight challenge.  Here is the recipe if I ever need to do it
+again.  It all started by me wanting to try the recipe to set up
+&lt;a href=&quot;https://blog.torproject.org/blog/mission-impossible-hardening-android-security-and-privacy&quot;&gt;an
+hardened Android installation&lt;/a&gt; from the Tor project blog on a
+device I had access to.  It is a old mobile phone with a broken
+microphone The initial idea had been to just
+&lt;a href=&quot;http://wiki.cyanogenmod.org/w/Install_CM_for_ace&quot;&gt;install
+CyanogenMod on it&lt;/a&gt;, but did not quite find time to start on it
+until a few days ago.&lt;/p&gt;
+
+&lt;p&gt;The unlock process is supposed to be simple: (1) Boot into the boot
+loader (press volume down and power at the same time), (2) select
+&#39;fastboot&#39; before (3) connecting the device via USB to a Linux
+machine, (4) request the device identifier token by running &#39;fastboot
+oem get_identifier_token&#39;, (5) request the device unlocking key using
+the &lt;a href=&quot;http://www.htcdev.com/bootloader/&quot;&gt;HTC developer web
+site&lt;/a&gt; and unlock the phone using the key file emailed to you.&lt;/p&gt;
+
+&lt;p&gt;Unfortunately, this only work fi you have hboot version 2.00.0029
+or newer, and the device I was working on had 2.00.0027.  This
+apparently can be easily fixed by downloading a Windows program and
+running it on your Windows machine, if you accept the terms Microsoft
+require you to accept to use Windows - which I do not.  So I had to
+come up with a different approach.  I got a lot of help from AndyCap
+on #nuug, and would not have been able to get this working without
+him.&lt;/p&gt;
+
+&lt;p&gt;First I needed to extract the hboot firmware from
+&lt;a href=&quot;http://www.htcdev.com/ruu/PD9810000_Ace_Sense30_S_hboot_2.00.0029.exe&quot;&gt;the
+windows binary for HTC Desire HD&lt;/a&gt; downloaded as &#39;the RUU&#39; from HTC.
+For this there is is &lt;a href=&quot;https://github.com/kmdm/unruu/&quot;&gt;a github
+project named unruu&lt;/a&gt; using libunshield.  The unshield tool did not
+recognise the file format, but unruu worked and extracted rom.zip,
+containing the new hboot firmware and a text file describing which
+devices it would work for.&lt;/p&gt;
+
+&lt;p&gt;Next, I needed to get the new firmware into the device.  For this I
+followed some instructions
+&lt;a href=&quot;http://www.htc1guru.com/2013/09/new-ruu-zips-posted/&quot;&gt;available
+from HTC1Guru.com&lt;/a&gt;, and ran these commands as root on a Linux
+machine with Debian testing:&lt;/p&gt;
+
+&lt;p&gt;&lt;pre&gt;
+adb reboot-bootloader
+fastboot oem rebootRUU
+fastboot flash zip rom.zip
+fastboot flash zip rom.zip
+fastboot reboot
+&lt;/pre&gt;&lt;/p&gt;
+
+&lt;p&gt;The flash command apparently need to be done twice to take effect,
+as the first is just preparations and the second one do the flashing.
+The adb command is just to get to the boot loader menu, so turning the
+device on while holding volume down and the power button should work
+too.&lt;/p&gt;
+
+&lt;p&gt;With the new hboot version in place I could start following the
+instructions on the HTC developer web site.  I got the device token
+like this:&lt;/p&gt;
+
+&lt;p&gt;&lt;pre&gt;
+fastboot oem get_identifier_token 2&gt;&amp;1 | sed &#39;s/(bootloader) //&#39;
+&lt;/pre&gt;
+
+&lt;p&gt;And once I got the unlock code via email, I could use it like
+this:&lt;/p&gt;
+
+&lt;p&gt;&lt;pre&gt;
+fastboot flash unlocktoken Unlock_code.bin
+&lt;/pre&gt;&lt;/p&gt;
+
+&lt;p&gt;And with that final step in place, the phone was unlocked and I
+could start stuffing the software of my own choosing into the device.
+So far I only inserted a replacement recovery image to wipe the phone
+before I start.  We will see what happen next.  Perhaps I should
+install &lt;a href=&quot;https://www.debian.org/&quot;&gt;Debian&lt;/a&gt; on it. :)&lt;/p&gt;
+</description>
+       </item>
+       
        <item>
                <title>How to use the Signal app if you only have a land line (ie no mobile phone)</title>
                <link>http://people.skolelinux.org/pere/blog/How_to_use_the_Signal_app_if_you_only_have_a_land_line__ie_no_mobile_phone_.html</link>