• 首页
  • 索引
  • 留言板
  • 关于.

Fox-jimmy 's Blog.

游弋中记录平淡的点滴…
  • 首页
  • 索引
  • 留言板
  • 关于.
Home  /  IT  /  How to Install ADB
studio-homepage-hero
15 7月 2018

How to Install ADB

Written by Fox-jimmy
2018年7月15日 IT ADB, Android, Android Debug Bridge, 安卓 Leave a Comment

转载自XDA:https://www.xda-developers.com/install-adb-windows-macos-linux/

How to Install ADB on Windows, macOS, and Linux

Lately here at XDA we have been writing a number of tutorials to show you how to access certain features of the Android platform that simply are not visible to the user. These have generally been done with the help of some command line Android Debug Bridge (ADB) commands, a tool that Google offers for developers to debug various parts of their applications or the system, but which we can use for all kinds of neat and hidden tricks. Using the command line isn’t something that everyone is comfortable with, though, so in an attempt to teach everyone how to do these tweaks (no matter what skill level you’re at), we have been including some basic steps about how to install ADB in each of our tutorials where necessary.

Well, the number of our tutorials has ballooned in quantity lately, so we have decided to exclude those steps from future tutorials to avoid redundancy. However, we still want all future tutorials we write to be easy to understand for as many people as possible, so that will be the point of today’s guide. Having a dedicated step by step tutorialon how to install and setup ADB on your computer (no matter what operating system you use) will be great for those who may not have it set up already.

This will also let us include a link to this guide in the future tutorials we write that require you to have ADB setup and installed on your computer. So when one of our new tutorials comes out that requires ADB, you can click through the link to learn how to install ADB or you can simply ignore it and move onto the next step. Since ADB can be used on a variety of operating systems, we’ll be covering some basic instructions for Windows, macOS and Linux.


How to Setup the Android Debug Bridge (ADB)

Note: Setting up ADB on the computer is just half the equation since you’ll also need to do some things on the smartphone or tablet to accept the ADB commands.

Phone Setup

  1. Launch the Settings application on your phone.
  2. Tap the About Phone option generally near the bottom of the list (this is hidden behind the “System” option in Google’s latest Android Oreo version).
  3. Then tap the Build Number option 7 times to enable Developer Mode. You will see a toast message when it is done.
  4. Now go back to the main Settings screen and you should see a new Developer Options menu you can access.
  5. Go in there and enable the USB Debugging mode option.
    install adb
  6. You are partially done with the phone setup process. Next up, you will need to scroll below and follow the rest of the instructions for your particular operating system.

Microsoft Windows ADB Setup

  1. Download the ADB ZIP file for Windows
  2. Extract the contents of this ZIP file into an easily accessible folder (such as C:\adb)
  3. Open Windows explorer and browse to where you extracted the contents of this ZIP file
  4. Then open up a Command Prompt from the same directory as this ADB binary. This can be done by holding Shift and Right-clicking within the folder then click the “open command prompt here” option. (Some Windows 10 users may see “PowerShell” instead of “command prompt”.)install adb
  5. Connect your smartphone or tablet to your computer with a USB cable. Change the USB mode to “file transfer (MTP)” mode. Some OEMs may or may not require this, but it’s best to just leave it in this mode for general compatibility.
  6. In the Command Prompt window, enter the following command to launch the ADB daemon: adb devices
  7. On your phone’s screen, you should see a prompt to allow or deny USB Debugging access. Naturally, you will want to grant USB Debugging access when prompted (and tap the always allow check box if you never want to see that prompt again).install adb
  8. Finally, re-enter the command from step #6. If everything was successful, you should now see your device’s serial number in the command prompt. Yay! You can now run any ADB command on your device! Now go forth and start modding your phone by following our extensive list of tutorials!

How to Install ADB on macOS

  1. Download the ADB ZIP file for macOS
  2. Extract the ZIP to an easily-accessible location (like the Desktop for example).
  3. Open Terminal.
  4. To browse to the folder you extracted ADB into, enter the following command: cd /path/to/extracted/folder/
  5. For example, on my Mac it was this:cd /Users/Doug/Desktop/platform-tools/
  6. Connect your device to your Mac with a compatible USB cable. Change the USB connection mode to “file transfer (MTP)” mode. This is not always required for every device, but it’s best to just leave it in this mode so you don’t run into any issues.
  7. Once the Terminal is in the same folder your ADB tools are in, you can execute the following command to launch the ADB daemon: adb devices
  8. On your device, you’ll see an “Allow USB debugging” prompt. Allow the connection.install adb
  9. Finally, re-enter the command from step #7. If everything was successful, you should now see your device’s serial number in macOS’s Terminal window. Congratulations! You can now run any ADB command on your device! Now go forth and start modding your phone by following our extensive list of tutorials!

How to Install ADB on Linux

  1. Download the ADB ZIP file for Linux
  2. Extract the ZIP to an easily-accessible location (like the Desktop for example).
  3. Open a Terminal window.
  4. Enter the following command: cd /path/to/extracted/folder/
  5. This will change the directory to where you extracted the ADB files.
  6. So for example:cd /Users/Doug/Desktop/platform-tools/
  7. Connect your device to your Linux machine with your USB cable. Change the connection mode to “file transfer (MTP)” mode. This is not always necessary for every device, but it’s recommended so you don’t run into any issues.
  8. Once the Terminal is in the same folder your ADB tools are in, you can execute the following command to launch the ADB daemon: adb devices
  9. Back on your smartphone or tablet device, you’ll see a prompt asking you to allow USB debugging. Go ahead and grant it.install adb
  10. Finally, re-enter the command from step #8. If everything was successful, you should now see your device’s serial number in the Terminal window output. Congrats! You can now run any ADB command on your device! Now go forth and start modding your phone by following our extensive list of tutorials!

Some Linux users should be aware that there can be an easier way to install ADB on their computer. The guide above will certainly work for you, but those own a Debian or Fedora/SUSE-based distro of Linux can skip steps 1 and 2 of the guide above and use one of the following commands. . .

  • Debian-based Linux users can type the following command to install ADB: sudo apt-get install adb
  • Fedora/SUSE-based Linux users can type the following command to install ADB: sudo yum install android-tools

Just to cover all of our bases here, Linux users may need to put a ./ in front of the ADB commands we list in future tutorials. This is something that is likely known by any Linux user already, but again, we want as many people as possible to understand how to do these tweaks for Android no matter how much of your operating system you know.

Bonus: For those who want to take this a step further, you can follow this new tutorial we put together that will walk you through how to setup ADB so that you can use the command from any directory on a Windows or Linux desktop.

Share on :
Fox-jimmy

superbia invidia ira acedia avaritia gula luxuria.

 Previous Article 观月记录
Next Article   VEGAS桥接Frameserver渲染

Leave a Reply

取消回复

:wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :-| :-x :-o :-P :-D :) :( 8-O 8)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据。

标签

1703 AMD Android Chrome cisco Dark Souls Dedicated Server Google HP IT Lenovo linux Lumen MRTG msi Natalia Clavier OST Radeon SONY SteamCMD SyncBack SyncBackFree ThinkPad Vega win10 windows10 Xperia XZ Premium 下载 分享 同步软件 壁纸 序 建服 影视 思科 暗战 点滴细语 网络 谷歌 软件 配置 音乐 黑暗之魂 黑暗之魂2

友情链接

  • Easy Linux
  • Otichi
  • SeaD Special Operation Group.
  • 低调的风
  • 大席的博客
  • 小居实验室
  • 爱在发烧
  • 阿福的杂货铺

还没友链

  • Betty
  • 一个孤独的猫
  • 中国分布式计算总站
  • 我为朝露谁苦多
  • 牛牛博客
  • 钉子の次元

有用的

  • ARMA.cfg Wiki
  • Folding@Home 3213统计
  • GSMArena.com
  • Kampfpanzer im Detail
  • moepc.net
  • openSUSE 中文 Wiki
  • openSUSE 中文社区
  • PS奖杯
  • RUST
  • SeaD Server Status
  • TANKS ENCYCLOPEDIA
  • Virus Total
  • 我的iHerb

功能

  • 登录
  • 文章RSS
  • 评论RSS
  • WordPress.org
  • transgui
    Transmission remote GUI 2018年10月20日 1
  • 屏幕截图(9)
    VEGAS桥接Frameserver渲染 2018年7月20日 1
  • studio-homepage-hero
    How to Install ADB 2018年7月15日 0
  • DSC_2145-01_wm
    观月记录 2018年4月20日 2
Copyright © 1972-2017 Fox-jimmy All Rights Reserved. - Powered by Wordpress! - 沪ICP备14023552号 - Processed in 0.303 second(s), 75 queries.