]> pere.pagekite.me Git - homepage.git/blobdiff - blog/index.rss
Generated.
[homepage.git] / blog / index.rss
index d077e17ba01da740b77682c62f8cff7587ec94be..2cc8fa6f3cbaa3c33281282a0065a197de29725b 100644 (file)
@@ -6,6 +6,91 @@
                 <link>http://people.skolelinux.org/pere/blog/</link>
                 <atom:link href="http://people.skolelinux.org/pere/blog/index.rss" rel="self" type="application/rss+xml" />
        
+       <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>
@@ -528,49 +613,5 @@ it is an important piece of the puzzle to get ZFS working.&lt;/p&gt;
 </description>
        </item>
        
-       <item>
-               <title>What is the best multimedia player in Debian?</title>
-               <link>http://people.skolelinux.org/pere/blog/What_is_the_best_multimedia_player_in_Debian_.html</link>
-               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/What_is_the_best_multimedia_player_in_Debian_.html</guid>
-                <pubDate>Sun, 8 May 2016 09:40:00 +0200</pubDate>
-               <description>&lt;p&gt;&lt;strong&gt;Where I set out to figure out which multimedia player in
-Debian claim support for most file formats.&lt;/strong&gt;&lt;/p&gt;
-
-&lt;p&gt;A few years ago, I had a look at the media support for Browser
-plugins in Debian, to get an idea which plugins to include in Debian
-Edu.  I created a script to extract the set of supported MIME types
-for each plugin, and used this to find out which multimedia browser
-plugin supported most file formats / media types.
-&lt;a href=&quot;https://wiki.debian.org/DebianEdu/BrowserMultimedia&quot;&gt;The
-result&lt;/a&gt; can still be seen on the Debian wiki, even though it have
-not been updated for a while.  But browser plugins are less relevant
-these days, so I thought it was time to look at standalone
-players.&lt;/p&gt;
-
-&lt;p&gt;A few days ago I was tired of VLC not being listed as a viable
-player when I wanted to play videos from the Norwegian National
-Broadcasting Company, and decided to investigate why.  The cause is a
-&lt;a href=&quot;https://bugs.debian.org/822245&quot;&gt;missing MIME type in the VLC
-desktop file&lt;/a&gt;.  In the process I wrote a script to compare the set
-of MIME types announced in the desktop file and the browser plugin,
-only to discover that there is quite a large difference between the
-two for VLC.  This discovery made me dig up the script I used to
-compare browser plugins, and adjust it to compare desktop files
-instead, to try to figure out which multimedia player in Debian
-support most file formats.&lt;/p&gt;
-
-&lt;p&gt;The result can be seen on the Debian Wiki, as
-&lt;a href=&quot;https://wiki.debian.org/DebianMultimedia/PlayerSupport&quot;&gt;a
-table listing all MIME types supported by one of the packages included
-in the table&lt;/a&gt;, with the package supporting most MIME types being
-listed first in the table.&lt;/p&gt;
-
-&lt;/p&gt;The best multimedia player in Debian?  It is totem, followed by
-parole, kplayer, mpv, vlc, smplayer mplayer-gui gnome-mpv and
-kmplayer.  Time for the other players to update their announced MIME
-support?&lt;/p&gt;
-</description>
-       </item>
-       
         </channel>
 </rss>