{"id":360505,"date":"2021-10-31T13:00:00","date_gmt":"2021-10-31T10:00:00","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-install-and-use-adb-the-android-debug-bridge-utility\/"},"modified":"2021-10-31T13:00:00","modified_gmt":"2021-10-31T10:00:00","slug":"how-to-install-and-use-adb-the-android-debug-bridge-utility","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-use-adb-the-android-debug-bridge-utility\/","title":{"rendered":"#How to Install and Use ADB, the Android Debug Bridge Utility"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a382ebb07ac4\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a382ebb07ac4\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-use-adb-the-android-debug-bridge-utility\/#Step_One_Download_Platform_Tools\" >Step One: Download Platform Tools<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-use-adb-the-android-debug-bridge-utility\/#Step_Two_Enable_USB_Debugging_on_Your_Phone\" >Step Two: Enable\u00a0USB Debugging on Your Phone<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-use-adb-the-android-debug-bridge-utility\/#Step_Three_Test_ADB_and_Install_Your_Phones_Drivers_if_Needed\" >Step Three: Test ADB and Install Your Phone\u2019s\u00a0Drivers\u00a0(if Needed)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-use-adb-the-android-debug-bridge-utility\/#Step_Four_Optional_Add_ADB_to_Your_System_PATH\" >Step Four (Optional): Add ADB to Your System PATH<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-use-adb-the-android-debug-bridge-utility\/#Useful_ADB_Commands\" >Useful ADB Commands<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to Install and Use ADB, the Android Debug Bridge Utility&#8221;<\/strong><\/p>\n<div>\n<img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage alignnone size-full wp-image-764832\" srcset=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2016\/10\/android-logo-adb.png?width=398&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 400w, https:\/\/www.howtogeek.com\/wp-content\/uploads\/2016\/10\/android-logo-adb.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 1200w\" sizes=\"auto, 400w, 1200w\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2016\/10\/android-logo-adb.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Android logo ADB\" width=\"1200\" height=\"675\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>ADB, Android Debug Bridge, is a command-line utility included with Google\u2019s Android SDK. ADB can control your device over USB from a computer, copy files back and forth, install and uninstall <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>s, run shell commands, and more.<\/p>\n<p>We\u2019ve covered some other tricks that require ADB in the past, including backing up and restoring your smartphone or tablet and installing Android apps to your SD card by default. ADB is used for a variety of geeky Android tricks.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Step_One_Download_Platform_Tools\"><\/span>Step One: Download Platform Tools<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-764863\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2016\/10\/2021-10-28_13-03-40.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Download Platform Tools.\" width=\"599\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Head to the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/developer.android.com\/sdk\/index.html\">Android SDK Platform Tools download page.<\/a>\u00a0Select the link for your operating system from the \u201cDownloads\u201d section. This will download a ZIP file, which you can\u00a0unzip wherever you want to store the ADB files\u2013they\u2019re portable, so you can put them anywhere you want.<\/p>\n<p>That\u2019s all we have to do for now. Just make sure to remember where you unzipped the files, we will need to access that later.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Step_Two_Enable_USB_Debugging_on_Your_Phone\"><\/span>Step Two: Enable\u00a0USB Debugging on Your Phone<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To use ADB with your Android device, you must enable a feature called \u201cUSB Debugging.\u201d Open your phone\u2019s app drawer, tap the Settings icon, and select\u00a0\u201cAbout Phone\u201d. Scroll all the way down and tap the \u201cBuild Number\u201d item seven times. You should get a message saying you are now a developer.<\/p>\n<p>Head back to the main Settings page, and you should see a new option in the \u201cSystem\u201d section called \u201cDeveloper Options.\u201d Open that, and enable \u201cUSB Debugging.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-764862 size-full\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2016\/10\/Screenshot_20211028-130124.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Enable USB Debugging.\" width=\"450\" height=\"211\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Later on, when you connect your phone to your computer, you\u2019ll see a popup entitled \u201cAllow USB Debugging?\u201d on your phone. Check the \u201cAlways allow from this computer\u201d box and tap OK.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Step_Three_Test_ADB_and_Install_Your_Phones_Drivers_if_Needed\"><\/span>Step Three: Test ADB and Install Your Phone\u2019s\u00a0Drivers\u00a0(if Needed)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Open the Command Prompt and change the directory to where you unzipped the file earlier. You can do this by entering the command below. Replace the file destination with your own:<\/p>\n<p><code>CD C:Program Filesplatform-tools<\/code><\/p>\n<p>To test whether ADB is working properly, connect your Android device to your computer using a USB cable and run the following command:<\/p>\n<pre>adb devices<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" style=\"background-image: none; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/10\/image34.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"650\" height=\"134\" border=\"0\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You should see a device in the list. If your device is connected but nothing appears in the list, you\u2019ll need to install the appropriate drivers.<\/p>\n<p>In the vast majority of cases, your PC will automatically detect your phone and set it up with the appropriate drivers. If that doesn\u2019t happen, you can usually find the drivers for your device from the\u00a0<em><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/forum.xda-developers.com\/\">XDA Developers<\/a><\/em>\u00a0forums.<\/p>\n<p>If you download the drivers manually, you\u00a0may have to force Windows to find them on your device. Open the Device Manager (click Start, type \u201cDevice Manager\u201d, and press Enter), locate your device, right-click it, and select Properties. You may see a yellow exclamation mark next to the device if its driver isn\u2019t installed properly.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" alignnone\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/10\/image36.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Right-click on your device in Windows Device Manager and select &quot;Properties&quot;\" width=\"490\" height=\"601\" border=\"0\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>On the Driver tab, click \u201cUpdate Driver.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" alignnone\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/10\/image37.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Click the &quot;Update Drive&quot; button in the Drive tab\" width=\"546\" height=\"562\" border=\"0\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Use the Browse my computer for driver software option.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" alignnone\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/10\/image38.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Click on the &quot;Browse my computer for driver software&quot; button\" width=\"650\" height=\"533\" border=\"0\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Find the drivers you downloaded for your device.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" alignnone\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2012\/10\/image39.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Locate the drivers you downloaded and select &quot;Next&quot;\" width=\"709\" height=\"581\" border=\"0\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Once you\u2019ve installed your device\u2019s drivers,\u00a0plug in your phone and try the adb devices command again:<\/p>\n<pre>adb devices<\/pre>\n<p>If all went well, you should see your device in the list, and you are ready to start using ADB!<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Step_Four_Optional_Add_ADB_to_Your_System_PATH\"><\/span>Step Four (Optional): Add ADB to Your System PATH<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>As it stands, you have to navigate to ADB\u2019s folder and open a Command Prompt there whenever you want to use it. However, if you add it to your Windows System PATH, that won\u2019t be necessary\u2013you can just type <code>adb<\/code> from the Command Prompt to run commands whenever you want, no matter what folder you\u2019re in.<\/p>\n<p>The process is a bit different on Windows 11, 10, and 7, so check out our full guide to editing your System PATH for the steps required to do this.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Edit Your System PATH for Easy Command Line Access in Windows<\/em><\/strong><\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Useful_ADB_Commands\"><\/span>Useful ADB Commands<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In addition to the variety of tricks that require ADB, ADB offers some useful commands:<\/p>\n<blockquote><p><strong>adb install <em>C:package.apk<\/em><\/strong>\u00a0\u2014 Installs the package located at C:package.apk on your computer on your device.<\/p>\n<p><strong>adb uninstall <em>package.name<\/em><\/strong>\u00a0\u2014 Uninstalls the package with package.name from your device. For example, you\u2019d use the name com.rovio.angrybirds to uninstall the Angry Birds app.<\/p>\n<p><strong>adb push\u00a0<em>C:file \/sdcard\/file<\/em><\/strong>\u00a0\u2014 Pushes a file from your computer to your device. For example, the command here pushes the file located at C:file on your computer to \/sdcard\/file on your device<\/p>\n<p><strong>adb pull <em>\/sdcard\/file C:file <\/em><\/strong>\u2014 Pulls a file from your device to your computer \u2014 works like adb push, but in reverse.<\/p>\n<\/blockquote>\n<blockquote><p><strong>adb logcat<\/strong> \u2014 View your Android device\u2019s log. Can be useful for debugging apps.<\/p>\n<\/blockquote>\n<blockquote>\n<p><strong>adb shell<\/strong> \u2014 Gives you an interactive Linux command-line shell on your device.<\/p>\n<p><strong>adb shell <em>command<\/em><\/strong> \u2014 Runs the specified shell command on your device.<\/p>\n<\/blockquote>\n<hr\/>\n<p>For a full guide to ADB, consult the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/developer.android.com\/tools\/help\/adb.html\">Android Debug Bridge page<\/a> on Google\u2019s Android Developers site.<\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong>\n<\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/125769\/how-to-install-and-use-abd-the-android-debug-bridge-utility\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Install and Use ADB, the Android Debug Bridge Utility&#8221; ADB, Android Debug Bridge, is a command-line utility included with Google\u2019s Android SDK. ADB can control your device over USB from a computer, copy files back and forth, install and uninstall apps, run shell commands, and more. We\u2019ve covered some other tricks that require&#8230;<\/p>\n","protected":false},"author":1,"featured_media":360506,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2016\/10\/android-logo-adb.png?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-360505","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/360505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=360505"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/360505\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/360506"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=360505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=360505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=360505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}