{"id":717,"date":"2011-10-05T17:47:18","date_gmt":"2011-10-05T17:47:18","guid":{"rendered":"http:\/\/budiyono.net\/?p=717"},"modified":"2026-01-06T03:02:26","modified_gmt":"2026-01-06T03:02:26","slug":"android-how-to-enter-diag-mode-on-aosp-rom","status":"publish","type":"post","link":"https:\/\/budiyono.net\/blog\/index.php\/2011\/10\/05\/android-how-to-enter-diag-mode-on-aosp-rom\/","title":{"rendered":"[Android] How to Enter Diag Mode on AOSP ROM"},"content":{"rendered":"<p>Okay, here&#8217;s a little background :<\/p>\n<ol>\n<li>We love Android (and maybe hate Apple), and HTC is a manufacturer with great device built.<\/li>\n<li>Here in Indonesia, data speed with GSM is usually horrible most of the time! And by means horrible I mean its fucking sluggish make you wanna throw your phone for fuck sake!<\/li>\n<li>So simply use CDMA then? Okay, but not that easy. Almost all Android CDMA devices out there are using inject system with no <a title=\"RUIM\" href=\"http:\/\/en.wikipedia.org\/wiki\/Removable_User_Identity_Module\">RUIM (SIM Card)<\/a>, so we need to manually inject our DN (phone number information) to our phone.<\/li>\n<p><!--more--><\/p>\n<li>HTC makes it happen by providing &#8220;Diag Mode&#8221; in their ROM so we can connect HTC phone to our PC and configure its inject parameters.<\/li>\n<li>Problem : Diag mode is only possible with phone running HTC&#8217;s own ROM (with HTC Sense interface)<\/li>\n<\/ol>\n<p>Sense is good. You&#8217;ll see that HTC is really good at drawing cloud and rain (LOL), but there are bunch of other ROMs out there which is a lot faster and snappier than Sense ROM, they based on <a href=\"http:\/\/http:\/\/source.android.com\/\" title=\"Android Open Source Project\">AOSP<\/a>. One AOSP ROM that outstanding among others is <a title=\"MIUI\" href=\"http:\/\/miui.us\">MIUI<\/a>. it&#8217;s clean, beautiful, fast and constantly updated. The down part of MIUI are maybe it&#8217;s made in chinese and it&#8217;s closed source.<\/p>\n<p>So how to enter Diag mode on AOSP rom? here&#8217;s the catch:<\/p>\n<ol>\n<li>Install HTC Diag Driver on your PC (Windows OS) and make sure it recognize your HTC Phone.<\/li>\n<li>Enable USB Diagnostic on your HTC Phone. If You don&#8217;t understand step 1 and step 2 then forget it, you&#8217;re not ready for this yet.<\/li>\n<li>Install adb tool on your PC (just copy paste it to an easy accessed directory on your pc. i.e <code>c:adb<\/code><\/li>\n<p> No, you don&#8217;t need Android SDK, or JRE, etc, You just need this tool, about 500Kb in package. Google for it!<\/p>\n<li>Enter the abd mode <code>c:adb&gt; adb shell<\/code><\/li>\n<li>You need to alter the value of <code>enable<\/code> file located in your phone (<code>\/sys\/devices\/virtual\/usb_composite\/diag\/enable<\/code>) file from 0 to 1. here&#8217;s how :<br \/>\nfull path :<br \/>\n<code>echo 1 &gt; \/sys\/devices\/virtual\/usb_composite\/diag\/enable<\/code><br \/>\nyou don&#8217;t have to remember that. You can enter each dir manually and if you forget the next dir you can simply command <code>ls<\/code> to list directory and file available. After you reach the last dir (<code>\/diag<\/code>) then you can execute the <code>echo &gt; 1 enable<\/code> command.<\/li>\n<li>Voila, you enter HTC Diag mode on AOSP ROM.<\/li>\n<\/ol>\n<p>Now do what you have to do! cheers.<br \/>\nP.S : I&#8217;m not responsible for anything happen to your device. If you blame me, I will point finger and laugh at you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Okay, here&#8217;s a little background : We love Android (and maybe hate Apple), and HTC is a manufacturer with great device built. Here in Indonesia, data speed with GSM is usually horrible most of the time! And by means horrible I mean its fucking sluggish make you wanna throw your phone for fuck sake! So [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":942,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[13,65,68],"class_list":["post-717","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology-talk","tag-android","tag-technology","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/budiyono.net\/blog\/index.php\/wp-json\/wp\/v2\/posts\/717","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/budiyono.net\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/budiyono.net\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/budiyono.net\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/budiyono.net\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=717"}],"version-history":[{"count":1,"href":"https:\/\/budiyono.net\/blog\/index.php\/wp-json\/wp\/v2\/posts\/717\/revisions"}],"predecessor-version":[{"id":1695,"href":"https:\/\/budiyono.net\/blog\/index.php\/wp-json\/wp\/v2\/posts\/717\/revisions\/1695"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/budiyono.net\/blog\/index.php\/wp-json\/wp\/v2\/media\/942"}],"wp:attachment":[{"href":"https:\/\/budiyono.net\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/budiyono.net\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/budiyono.net\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}