{"id":100,"date":"2014-02-04T17:39:32","date_gmt":"2014-02-04T17:39:32","guid":{"rendered":"http:\/\/visualgdb.com\/w\/?p=100"},"modified":"2015-09-09T22:04:51","modified_gmt":"2015-09-10T05:04:51","slug":"android-usbdebug","status":"publish","type":"post","link":"https:\/\/visualgdb.com\/tutorials\/android\/usbdebug\/","title":{"rendered":"Setting up USB debugging for your Android device"},"content":{"rendered":"<p>This tutorial explains how to prepare your Android device for USB debugging.<\/p>\n<ol>\n<li>If yon don&#8217;t have <a href=\"\/android\/install_redir?item=SDK\">Android SDK<\/a> installed, please install it first.<\/li>\n<li>Plug in your Android device. Go to <strong>Settings-&gt;Develop Option<\/strong> on it and enable <strong>USB Debugging<a href=\"http:\/\/visualgdb.com\/w\/wp-content\/uploads\/tutorials\/android\/usbdebug\/dbgsettings.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/tutorials\/android\/usbdebug\/dbgsettings.png\" alt=\"dbgsettings\" width=\"700\" height=\"611\" \/><\/a><\/strong><\/li>\n<li>Ensure that the USB connection type is <strong>not<\/strong> set to &#8220;Internet pass-through&#8221;. Otherwise you won&#8217;t be able to debug your device. For simplicity, you can set it to &#8220;Charge only&#8221;.<a href=\"http:\/\/visualgdb.com\/w\/wp-content\/uploads\/tutorials\/android\/usbdebug\/chargeonly.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/tutorials\/android\/usbdebug\/chargeonly.png\" alt=\"chargeonly\" width=\"540\" height=\"960\" \/><\/a><\/li>\n<li>Now we will install the Android USB driver. Download <a href=\"\/UsbDriverTool\/\">UsbDriverTool<\/a>, unpack and run it.<\/li>\n<li>Select your device in the list, right-click on it and select &#8220;Install Android ADB Driver&#8221;:<a href=\"http:\/\/visualgdb.com\/w\/wp-content\/uploads\/tutorials\/android\/usbdebug\/androidphone.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/tutorials\/android\/usbdebug\/androidphone.png\" alt=\"androidphone\" width=\"607\" height=\"448\" \/><\/a>UsbDriverTool will ask you whether you want to update the <strong> adb_usb.ini<\/strong> file. Normally you don&#8217;t need to update it, however if you encounter problems with ADB finding your devices, select &#8220;yes&#8221; at this point.<\/li>\n<li>Now it&#8217;s the time to test the driver. Open the Android SDK directory (<strong>C:\\Program Files (x86)\\Android\\android-sdk<\/strong>) in Explorer.<\/li>\n<li>Hold the Shift button and right-click on the <strong> platform-tools<\/strong> folder. Select &#8220;Open command window here&#8221; from the menu. <a href=\"http:\/\/visualgdb.com\/w\/wp-content\/uploads\/tutorials\/android\/usbdebug\/14-shell.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/tutorials\/android\/usbdebug\/14-shell.png\" alt=\"14-shell\" width=\"734\" height=\"385\" \/><\/a><span class=\"warning\">If you do not hold SHIFT while right-clicking, you won&#8217;t see the &#8220;Open command window here&#8221; option.<\/span><\/li>\n<li>Type &#8220;adb devices&#8221; in the command window:<a href=\"http:\/\/visualgdb.com\/w\/wp-content\/uploads\/tutorials\/android\/usbdebug\/15-test.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/tutorials\/android\/usbdebug\/15-test.png\" alt=\"15-test\" width=\"677\" height=\"342\" \/><\/a>If the driver has been installed correctly, you will see your device in the list. If not, try <a href=\"http:\/\/visualgdb.com\/KB\/usbdebug-manual\/\"> installing the driver manually<\/a>.<\/li>\n<\/ol>\n<p><!--Now when you have setup the USB debugging successfully, you\ncan <a href=\"\/tutorials\/android\/\">follow this tutorial to create\nyour first native Android project.<\/a>\n\n--><\/p>\n<p>Want to learn more about Android debugging? Check out these tutorials:<\/p>\n<ul>\n<li><a href=\"\/tutorials\/android\/\">Develop and Debug C++ Android apps with Visual Studio<\/a><\/li>\n<li><a href=\"\/tutorials\/android\/vs-android\/\">Easily debug vs-android projects<\/a><\/li>\n<li><a href=\"\/tutorials\/android\/codebug\/\">Co-debug your Android app with Eclipse and Visual Studio<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial explains how to prepare your Android device for USB debugging. If yon don&#8217;t have Android SDK installed, please<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[31],"_links":{"self":[{"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/posts\/100"}],"collection":[{"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/comments?post=100"}],"version-history":[{"count":1,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":773,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/posts\/100\/revisions\/773"}],"wp:attachment":[{"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/media?parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/categories?post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/tags?post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}