How to Install ADB on Windows 10: It is not possible to carry laptops or desktops everywhere you go. Instead, you carry mobile phones which you can use it for various purposes like calling, capturing photos, videos, documents, etc. But the problem with mobile phones is that it comes with limited memory and once the memory starts to fill up, then you need to transfer all or some of its data somewhere safe. And most people transfer their mobile data to their PC as its the only logical step. But the question arises how do you transfer your data from mobile phones to PCs?
The Answer to this question is ADB (Android Debug Bridge)。 So, the Windows is provided with ADB which allows you to connect your PCs to your android phones. Let’s dive in little more to understand what ADB is:
亚行: ADB stands for Android Debug Bridge which is a Software-interface for Android System. Technically, it is used to connect an android device with a computer using a USB cable or using wireless connections like Bluetooth. It also helps in executing commands on your mobile phone through your computers and allows you to transfer data from Android phones to your PC. ADB is part of Android SDK (Software Development Kit).
ADB can be used through Command Line (CMD) for Windows. Its main advantage is it enables to access phone contents like copy files from computer to phones or from phone to computer, install and uninstall any app and more, directly by using a computer without any actual interaction with the phone.
如何在 Windows 10 上安装 ADB(Android 调试桥)
另见:
修复 Google Chrome 在 Android 上不断崩溃的 10 种方法
如何在 Windows 10 上同时使用两个耳机 [2023 年更新]
In order to use ADB command line, you need to first install it on your computer. To install ADB in your computers follow the below steps:
Method 1 – Install Android SDK Command Line Tools
1.Visit the website and navigate to Command line tools only. Click on sdk-tools-windows to download SDK tools for Windows.
2.勾选方块 near to “I have read and agree to the above terms and conditions”。 然后点击“Download Android Command Line Tools for Windows”. The download will begin shortly.
3.When the download completes, unzip the downloaded zip file. The ADB files under the zip are portable so you can extract them wherever you like.
4.Open unzipped folder.
5.Now double-click on the bin文件夹 to open it. Now type CMD in the address bar of File Explorer and hit Enter to open 命令提示符.
6.Command prompt will open up at the above path.
7.Run the below command on command prompt to download and install Android SDK Platform-tools:
“platform-tools” “platforms;android-28”
8.You will prompt to type (y/N) for permission. Type y for yes.
9.As soon as you type yes, downloading will start.
10.After downloading is completed, close the command prompt.
All your Android SDK platform tools will be downloaded and installed by now. Now you have successfully install ADB on Windows 10.
Method 2 – Enable USB Debugging on Phone
To use ADB command line tool, first, you need to enable the USB debugging feature 您的 Android 手机。 To do so follow the below steps:
1.Open your phone 设置 并点击 关于手机。
2.Under About phone, look for Build Number or MIUI Version.
3.Tap 7-8 times on the build number and then you will see a pop saying “您现在是开发人员!” 在您的屏幕上。
4.Again go back to the Settings screen and look for the 其他设置 选项。
5.Under Additional settings, click on 开发人员选项。
6.Under Developer options, look for USB debugging.
7.Toggle on the button in front of USB debugging. A confirmation message will appear on the screen, just click 确定。
8.你的 USB调试已启用 并准备使用。
Once you have followed the above steps, then connect your Android phone to the PC, it will ask for confirmation to allow using USB Debugging on your Phone, just click OK 允许它。
Method 3 – Test ADB (Android Debug Bridge)
Now you need to test the SDK platform tools and see if it is working properly & compatible with your device.
1.Open the folder where you have downloaded and installed the SDK platform tools.
2.Open 命令提示符 by typing cmd in the address bar and hit Enter. The command prompt will open up.
3.Now connect your Android phone to Computer using the USB cable to test whether or not ADB is working properly. To test it, run the following command into cmd and hit Enter:
“ adb设备”
4.List of all the devices connected to your computer will appear and your Android device will be one of them.
Now you have install ADB on Windows 10, enabled the USB debugging option on Android and have tested ADB on your device. But, if you did not find your device in the above list then you will need to install the appropriate driver for your device.
Method 4 – Install Appropriate Driver
请注意:This step is only needed if you did not find your device in the above list when you ran the command “adb devices”. If you already found your device on the above list then skip this step and proceed to the next one.
First, download the driver package for your device from your phone’s manufacturer. So head to their website and find the drivers for your device. You can also search the XDA开发者 for driver downloads without the extra software. Once you have downloaded the driver, you need to install them using the following guide:
1.按Windows键+R然后输入 输入devmgmt.msc 并按 Enter 键打开设备管理器。
2.From Device Manager click on Portable devices.
3.You will find your Android phone under Portable Devices. 右键单击 on it and then click on 属性。
4.切换到 驱动器 tab under your Phone Properties window.
5.Under the Driver tab, click on 更新驱动程序。
6.A dialogue box will appear. Click on 浏览我的电脑以获取驱动软件。
7.Browse to look for driver software on your computer and click 下一步。
8.List of available drivers will appear and click on Install 安装 安装它们。
After completing the above process, follow Method 3 again and now you will find your device in the list of devices attached.
Method 5 – Add ADB to System Path
This step is optional as the only advantage of this step is that you won’t need to visit the whole ADB folder to open the Command Prompt. You will be able to open the Command Prompt whenever you want to use after adding the ADB to the Windows System Path. Once you have added it, you can simply type adb from the Command Prompt window whenever you want to use it and no matter which folder you are in. To add ADB to Windows System Path follow below steps:
1.按Windows键+R然后输入 SYSDM.CPL 然后按Enter打开 系统属性。
2.切换到 高级标签。
3.Click 环境变量 按钮。
4.Under System Variables, look for a variable PATH.
5.Select it and click on 编辑按钮。
6.A new dialogue box will appear.
7.Click New button. It will add a new line at the end of the list.
8.Enter the whole path (address) where you have downloaded and installed the SDK platform tools.
9.Once finished, click on the Ok button.
10.After completing the above process, now ADB can be accessed from the command prompt anywhere without needing to mention the whole path or directory.
推荐:
我希望这篇文章对您有所帮助,您现在可以轻松地 Install ADB on Windows 10, 但如果您对本教程仍有任何疑问,请随时在评论部分提问。