{"id":1100,"date":"2014-05-30T08:59:24","date_gmt":"2014-05-30T13:59:24","guid":{"rendered":"http:\/\/www.threshold-zero.com\/cblog\/?p=1100"},"modified":"2016-02-02T10:32:34","modified_gmt":"2016-02-02T16:32:34","slug":"unlockingrooting-the-htc-one-on-linux","status":"publish","type":"post","link":"https:\/\/www.threshold-zero.com\/cblog\/2014\/05\/unlockingrooting-the-htc-one-on-linux\/","title":{"rendered":"Unlocking\/Rooting the HTC One on Linux"},"content":{"rendered":"<p>I recently bought a used HTC One that I intend on using on <a href=\"http:\/\/ting.com\">Ting<\/a> &#8212; it&#8217;s a phone I&#8217;ve been wanting to use for about a year. It&#8217;s one of the nicest Android phones, with hardware quality approaching that of an iPhone. (Not to mention a software skin much more &#8220;professional&#8221; looking than a lot of other Android hardware manufacturers out there.)<\/p>\n<figure style=\"width: 236px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.htc.com\/managed-assets\/shared\/desktop\/smartphones\/htc-one\/Product_Detail-Large_OneDimensions.jpeg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.htc.com\/managed-assets\/shared\/desktop\/smartphones\/htc-one\/Product_Detail-Large_OneDimensions.jpeg\" alt=\"HTC One Dimensions Picture\" width=\"236\" height=\"273\" \/><\/a><figcaption class=\"wp-caption-text\">Isn&#8217;t it beautiful?<\/figcaption><\/figure>\n<p>I didn&#8217;t want to flash or even necessarily root my HTC One, however, the only way to restore some apps (like the Google Authenticator) require rooting, so I had to do it.\u00c2\u00a0 What&#8217;s strange is that most tutorials and utilities I&#8217;ve found are for Windows (like this one from <a href=\"http:\/\/theunlockr.com\/2013\/05\/05\/how-to-root-the-htc-one-toolkit-method-video\/\">theunlockr<\/a>) &#8212; I guess it shouldn&#8217;t be too surprising, considering most PC&#8217;s are Windows, but I&#8217;d figure that there would at least be <em>some<\/em> tutorials for Linux, considering Android&#8217;s origins.<\/p>\n<p>Well, the good thing is that unlocking\/rooting your HTC One on Linux isn&#8217;t really that hard at all, if you&#8217;re comfortable with the command-line, and familiar with using the android sdk tools (fastboot, etc.).<\/p>\n<p>I&#8217;m not going to go into how to set up the Android sdk, etc, since if you&#8217;re doing something like manually unlocking your bootloader, you should already be familiar with it!<\/p>\n<h2>Unlocking\/Rooting Your HTC One (M7) on Linux<\/h2>\n<p>Prerequisites:<\/p>\n<ul>\n<li>android sdk<\/li>\n<li>htcdev.com account<\/li>\n<li>Latest recovery .img file from <a href=\"https:\/\/www.clockworkmod.com\/rommanager\">CWM<\/a><\/li>\n<li>Superuser Hack .zip file: <a href=\"http:\/\/download.chainfire.eu\/supersu\">SuperSU<\/a> (make sure and get whatever is the latest version of the SuperSU flashable zip &#8212; earlier versions found in other tutorials no longer work to root the later versions of Sense)<\/li>\n<\/ul>\n<p>Unlock Bootloader<\/p>\n<ul>\n<li>Boot into bootloader and select Fastboot<\/li>\n<li>Run command &#8220;fastboot oem get_identifier_token&#8221;<\/li>\n<li>Copy token as explained on the <a href=\"http:\/\/www.htcdev.com\/bootloader\/unlock-instructions\/page-3\/\">htcdev page<\/a>, and await your Unlock_code.bin file in email<\/li>\n<li>Copy Unlock_code.bin file to your working directory in Linux<\/li>\n<li>Run command &#8220;fastboot flash unlocktoken Unlock_code.bin&#8221;<\/li>\n<li>Follow prompts on screen to unlock\/reset your phone<\/li>\n<\/ul>\n<p>Flash Recovery<\/p>\n<ul>\n<li>Boot into bootloader and select Fastboot<\/li>\n<li>Run command &#8220;fastboot flash recovery &lt;recovery.img&gt;&#8221; (replace with .img file downloaded from CWM site)<\/li>\n<li>Reboot<\/li>\n<\/ul>\n<p>Root<\/p>\n<ul>\n<li>Copy SuperSU .zip file to phone&#8217;s internal memory<\/li>\n<li>Reboot into recovery<\/li>\n<li>Flash SuperSU .zip file<\/li>\n<li>Reboot and enjoy<\/li>\n<\/ul>\n<h6>Other Useful Links<\/h6>\n<ul>\n<li>Sprint HTC One Stock Recovery: <a href=\"http:\/\/forum.xda-developers.com\/showthread.php?t=2236418\">http:\/\/forum.xda-developers.com\/showthread.php?t=2236418<\/a><\/li>\n<li>Latest Sense 6 Flashable .zip for HTC One (M7): <a href=\"http:\/\/forum.xda-developers.com\/showthread.php?t=2766604\">http:\/\/forum.xda-developers.com\/showthread.php?t=2766604<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I recently bought a used HTC One that I intend on using on Ting &#8212; it&#8217;s a phone I&#8217;ve been wanting to use for about a year. It&#8217;s one of the nicest Android phones, with hardware quality approaching that of an iPhone. (Not to mention a software skin much more &#8220;professional&#8221; looking than a lot [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[105,18],"tags":[],"class_list":["post-1100","post","type-post","status-publish","format-standard","hentry","category-android","category-programming"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2ZUZG-hK","_links":{"self":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts\/1100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/comments?post=1100"}],"version-history":[{"count":1,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts\/1100\/revisions"}],"predecessor-version":[{"id":2070,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts\/1100\/revisions\/2070"}],"wp:attachment":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/media?parent=1100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/categories?post=1100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/tags?post=1100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}