How to Set up ADB on Windows Platform

Android Debug Bridge (ADB) is a tool that gives you options to modify, tweak, or debug your Android device. The ADB establishes a connection between your PC and Android device or emulator (for development purposes) through a built-in server. For debugging purposes, you can connect to your device with a USB data cable or over a wireless connection. This guide will give you 2 options for setting up an ADB terminal on your Windows computer, as well as how to establish a wireless connection between device and PC.

Requirements:

Minimal ADB and Fastboot

If you only want to run adb commands to debug or test your device but do not exactly want to go into developing for Android, this light ADB command line program is sufficient. This allows you to push and pull files from your Android device, extract and read logs, sideload, etc.

  1. Download and run the installer.

Download Link

  1. Click on Next at the Welcome and Information prompts.
  2. Take note of the installation destination folder.

ADB-7

4. Select whether or not to add a Start Menu folder and click Next.

5. Select whether or not to create a shortcut and click Next.

6. The summary of options will show. Click Install.

ADB-6

7. In order to run adb commands from anywhere in your PC, you will need to add the installation folder to environment paths to make the adb commands known throughout your computer.

a. Go to your PC’s main folder. (My Computer for Windows 7 and earlier or This PC for Windows 8/8.1)

b. Right click on a white space and click on Properties.

ADB-5

c. In the System Settings window, click Advanced system settings on the left hand pane.

ADB-4

d. In the System Properties window, click on Environment Variables.

ADB-3

e. Scroll and find the Path variable in System variables.

f. Highlight the Path line and click on Edit.

ADB-2

g. Go to the end of the line of path variables. Type in a semicolon immediately after the last character and type in the installation folder path you took note of in step 3 above. (i.e. ;C:\Program Files (x86)\Minimal ADB and Fastboot)

ADB-1

h. Click OK on all preceding windows.

i. Run a command prompt window as administrator. Your computer will now recognize all adb commands, without requiring you to open the command window from the Minimal ADB and Fastboot installation location.

ADB-12

Android Stand Alone SDK Tools

If you will eventually be going into developing apps, it would be worth it to get the complete Android SDK Toolkit. This guide focuses on getting the ADB terminal working.

  1. Download the appropriate (32-bit or 64-bit) SDK Installer Package

32-bit Download

64-bit Download

  1. Unpack the downloaded zip file.
  2. Run the SDK Manager and check that the sdk platform tools are already installed.

ADB-13

4. Take note of the folder path indicated in the SDK Manager.

5. Go to the file folder. Shift+Right Click on any white space of the folder window. Click on Open command window here.

ADB-11

6. You may now type in adb commands in the terminal that opens.

 How to Use ADB Shell Without A Data Cable

If you don’t want to go through the hassle of a data cable to use ADB, you can set up a wireless connection between your device and PC. This enables you to send ADB commands as if your device was physically connected to your PC.

Requirements:

  • Rooted Android device
  • Common network connection of your device and computer
  1. Install ADB Wireless on your Android Device from Play Store.
  2. Run the app and push the big red button.

ADB-14

3. Take note of the address shown (i.e. 192.168.1.148).

ADB-15

4. Open an adb window on your PC and type in the following command: adb connect <address> (i.e. adb connect 192.168.1.148)

5. The service will confirm the successful connection.

ADB-8

You can now type in ADB commands through the terminal. When you are done, just push the big green button on your device to disable the link and kill the server on the ADB window with adb kill-server.

Connecting wirelessly has security risks, of course. It is recommended to use this over a private and secured network connection.

Setting Up ADB on Windows and Connecting Wirelessly to Androidhttp://www.gizbeat.com/wp-content/uploads/2014/10/ADB-12-450x228.jpghttp://www.gizbeat.com/wp-content/uploads/2014/10/ADB-12-150x150.jpg Nicky Arriola AndroidHow ToRecentTutorials
How to Set up ADB on Windows Platform Android Debug Bridge (ADB) is a tool that gives you options to modify, tweak, or debug your Android device. The ADB establishes a connection between your PC and Android device or emulator (for development purposes) through a built-in server. For debugging purposes,...
<h3>How to Set up ADB on Windows Platform</h3> Android Debug Bridge (ADB) is a tool that gives you options to modify, tweak, or debug your Android device. The ADB establishes a connection between your PC and Android device or emulator (for development purposes) through a built-in server. For debugging purposes, you can connect to your device with a USB data cable or over a wireless connection. <span id="more-5705"></span>This guide will give you 2 options for setting up an ADB terminal on your Windows computer, as well as how to establish a wireless connection between device and PC. Requirements: <ul> <li>Android device with <a title="Ultimate China Clone USB ADB VCOM Drivers for MTK MediaTek" href="http://www.gizbeat.com/4713/ultimate-china-clone-usb-adb-drivers-for-mtk-mediatek/">properly installed drivers</a></li> </ul> <h4>Minimal ADB and Fastboot</h4> If you only want to run adb commands to debug or test your device but do not exactly want to go into developing for Android, this light ADB command line program is sufficient. This allows you to push and pull files from your Android device, extract and read logs, sideload, etc. <ol> <li>Download and run the installer.</li> </ol> <p style="padding-left: 60px;"><a href="http://click.xda-developers.com/api/click?format=go&jsonp=vglnk_14132592828556&key=f0a7f91912ae2b52e0700f73990eb321&libId=1ea6062e-8d53-47d1-8142-9f95297846cc&loc=http%3A%2F%2Fforum.xda-developers.com%2Fshowthread.php%3Ft%3D2317790&v=1&out=https%3A%2F%2Fdocs.google.com%2Ffile%2Fd%2F0B1S0LCuXCnnmSWh6NGJmSE1BUWc%2Fedit%3Fusp%3Dsharing&ref=http%3A%2F%2Fwww.google.com.ph%2Furl%3Fsa%3Dt%26rct%3Dj%26q%3D%26esrc%3Ds%26source%3Dweb%26cd%3D1%26ved%3D0CB0QFjAA%26url%3Dhttp%253A%252F%252Fforum.xda-developers.com%252Fshowthread.php%253Ft%253D2317790%26ei%3Dn508VJ70E5GA8gXQkYHIAQ%26usg%3DAFQjCNE5eKkJC3q4-C49AD3wKxuFOhSRRw%26sig2%3DnFfTXC2fcr7kw1gmFlGgfg%26bvm%3Dbv.77161500%2Cd.dGc&title=%5BTOOL%5DMinimal%20ADB%20and%20Fastboot%20%5B7-18-13%5D%20%7C%20Android%20Development%20and%20Hacking%20%7C%20XDA%20Forums&txt=Download%20Version%201.1.3%20Here" target="_blank">Download Link</a></p> <ol start="2"> <li>Click on <strong>Next</strong> at the Welcome and Information prompts.</li> <li>Take note of the installation destination folder.</li> </ol> <a href="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-7.jpg"><img class="wp-image-5706 aligncenter" src="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-7.jpg" alt="ADB-7" width="320" height="250" /></a> <p style="padding-left: 30px;">4. Select whether or not to add a Start Menu folder and click <strong>Next</strong>.</p> <p style="padding-left: 30px;">5. Select whether or not to create a shortcut and click <strong>Next</strong>.</p> <p style="padding-left: 30px;">6. The summary of options will show. Click <strong>Install</strong>.</p> <a href="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-6.jpg"><img class="wp-image-5707 aligncenter" src="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-6.jpg" alt="ADB-6" width="359" height="280" /></a> <p style="padding-left: 30px;">7. In order to run adb commands from anywhere in your PC, you will need to add the installation folder to environment paths to make the adb commands known throughout your computer.</p> <p style="padding-left: 90px;">a. Go to your PC’s main folder. (<strong>My Computer</strong> for Windows 7 and earlier or <strong>This PC</strong> for Windows 8/8.1)</p> <p style="padding-left: 90px;">b. Right click on a white space and click on <strong>Properties</strong>.</p> <p style="padding-left: 30px;"><a href="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-5.jpg"><img class="wp-image-5708 aligncenter" src="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-5.jpg" alt="ADB-5" width="458" height="280" /></a></p> <p style="padding-left: 90px;">c. In the System Settings window, click <strong>Advanced system settings</strong> on the left hand pane.</p> <a href="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-4.jpg"><img class="wp-image-5709 aligncenter" src="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-4.jpg" alt="ADB-4" width="396" height="280" /></a> <p style="padding-left: 90px;">d. In the System Properties window, click on <strong>Environment Variables</strong>.</p> <a href="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-3.jpg"><img class="wp-image-5710 aligncenter" src="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-3.jpg" alt="ADB-3" width="250" height="280" /></a> <p style="padding-left: 90px;">e. Scroll and find the Path variable in System variables.</p> <p style="padding-left: 90px;">f. Highlight the <strong>Path</strong> line and click on <strong>Edit</strong>.</p> <a href="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-2.jpg"><img class="wp-image-5711 aligncenter" src="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-2.jpg" alt="ADB-2" width="252" height="280" /></a> <p style="padding-left: 90px;">g. Go to the end of the line of path variables. Type in a semicolon immediately after the last character and type in the installation folder path you took note of in step 3 above. (i.e. <strong>;C:\Program Files (x86)\Minimal ADB and Fastboot</strong>)</p> <a href="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-1.jpg"><img class="size-full wp-image-5712 aligncenter" src="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-1.jpg" alt="ADB-1" width="356" height="153" /></a> <p style="padding-left: 90px;">h. Click <strong>OK</strong> on all preceding windows.</p> <p style="padding-left: 90px;">i. Run a command prompt window as administrator. Your computer will now recognize all adb commands, without requiring you to open the command window from the Minimal ADB and Fastboot installation location.</p> <a href="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-12.jpg"><img class="aligncenter wp-image-5721" src="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-12.jpg" alt="ADB-12" width="591" height="300" /></a> <h4>Android Stand Alone SDK Tools</h4> If you will eventually be going into developing apps, it would be worth it to get the complete Android SDK Toolkit. This guide focuses on getting the ADB terminal working. <ol> <li>Download the appropriate (32-bit or 64-bit) SDK Installer Package</li> </ol> <p style="padding-left: 60px;"><a href="https://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip">32-bit Download</a></p> <p style="padding-left: 60px;"><a href="https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip">64-bit Download</a></p> <ol start="2"> <li>Unpack the downloaded zip file.</li> <li>Run the SDK Manager and check that the sdk platform tools are already installed.</li> </ol> <a href="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-13.jpg"><img class="wp-image-5716 aligncenter" src="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-13.jpg" alt="ADB-13" width="422" height="300" /></a> <p style="padding-left: 30px;">4. Take note of the folder path indicated in the SDK Manager.</p> <p style="padding-left: 30px;">5. Go to the file folder. Shift+Right Click on any white space of the folder window. Click on <strong>Open command window here</strong>.</p> <a href="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-11.jpg"><img class="wp-image-5717 aligncenter" src="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-11.jpg" alt="ADB-11" width="450" height="300" /></a> <p style="padding-left: 30px;">6. You may now type in adb commands in the terminal that opens.</p> <h3> How to Use ADB Shell Without A Data Cable</h3> If you don't want to go through the hassle of a data cable to use ADB, you can set up a wireless connection between your device and PC. This enables you to send ADB commands as if your device was physically connected to your PC. Requirements: <ul> <li>Rooted Android device</li> <li>Common network connection of your device and computer</li> </ul> <ol> <li>Install ADB Wireless on your Android Device from Play Store.</li> <li>Run the app and push the big red button.</li> </ol> <a href="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-14.jpg"><img class="aligncenter wp-image-5718" src="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-14.jpg" alt="ADB-14" width="228" height="350" /></a> <p style="padding-left: 30px;">3. Take note of the address shown (i.e. <strong>192.168.1.148</strong>).</p> <p style="text-align: center;"><a href="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-15.jpg"><img class="alignnone wp-image-5719" src="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-15.jpg" alt="ADB-15" width="217" height="320" /></a></p> <p style="padding-left: 30px;">4. Open an adb window on your PC and type in the following command: <strong>adb connect <address></strong> (i.e. <strong>adb connect 192.168.1.148</strong>)</p> <p style="padding-left: 30px;">5. The service will confirm the successful connection.</p> <a href="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-8.jpg"><img class="wp-image-5720 aligncenter" src="http://www.gizbeat.com/wp-content/uploads/2014/10/ADB-8.jpg" alt="ADB-8" width="564" height="200" /></a> You can now type in ADB commands through the terminal. When you are done, just push the big green button on your device to disable the link and kill the server on the ADB window with <strong>adb kill-server</strong>. Connecting wirelessly has security risks, of course. It is recommended to use this over a private and secured network connection.



Related Posts

RIP Yongning Wu. China daredevil dies in his last attempt

RIP Yongning Wu. China daredevil dies in his last attempt

Ultimate newbie root Vernee Mix 2 TWRP

Ultimate newbie root Vernee Mix 2 TWRP

Is Ulefone T1 faking SoC? Showing MT6757CD@2.6GHz instead of MT6757CH@2.39GHz

Is Ulefone T1 faking SoC? Showing [email protected] instead of [email protected]

New trailer and 15 rumors about The Last Jedi

New trailer and 15 rumors about The Last Jedi

Manual focus lock and fixing continuously auto focusing problems

Manual focus lock and fixing continuously auto focusing problems

Icy moon Enceladus, which has hydrothermal vents

20 year Saturn space mission ends for Cassini