如何在 Windows 10 上安装 ADB: (How to Install ADB on Windows 10: )随身携带笔记本电脑或台式机是不可能的。取而代之的是,您随身携带手机,可以将其用于各种用途,例如通话,拍摄照片,视频,文档等。但是手机的问题是它的内存有限,一旦内存开始填满,您需要将其全部或部分数据转移到安全的地方。大多数人将他们的移动数据传输到他们的 PC 是唯一合乎逻辑的步骤。但问题来了,您如何将数据从手机传输到 PC?
这个问题的答案(Answer)是ADB (Android Debug Bridge)。因此,Windows提供了ADB ,它允许您将 PC 连接到您的 android 手机。让我们深入了解ADB是什么:
ADB:ADB代表Android Debug Bridge,它是Android 系统(Android System)的软件接口。从技术上讲,它用于使用USB 电缆(USB cable)或使用蓝牙(Bluetooth)等无线连接将 android 设备与计算机连接。它还有助于通过计算机在手机(mobile phone)上执行命令,并允许您将数据从Android手机传输到 PC。ADB是Android SDK(软件开发工具包(Software Development Kit))的一部分。
ADB可以通过Windows的(Windows)命令行(Command Line)( CMD ) 使用。它的主要优点是可以直接使用计算机访问手机(access phone)内容,例如将文件从计算机复制到手机或从手机复制到计算机,安装和卸载任何应用程序等等,无需与手机进行任何实际交互。
如何在 Windows 10 上安装ADB(Android 调试桥)(Android Debug Bridge)
为了使用ADB 命令(ADB command)行,您需要先在您的计算机上安装它。要在您的计算机中安装ADB,请按照以下步骤操作:
方法 1 – 安装 Android SDK 命令行工具( Method 1 – Install Android SDK Command Line Tools)
1.访问网站并仅导航到命令行(Command line)工具。单击(Click)sdk-tools-windows下载适用于Windows 的 SDK 工具。
2.勾选“(Check the box)我已阅读并同意上述条款和条件(I have read and agree to the above terms and conditions)”旁边的方框。然后单击“下载适用于 Windows 的 Android 命令行工具(Download Android Command Line Tools for Windows)”。下载将很快开始。
3.下载完成后,解压下载的zip文件(zip file)。zip 下的ADB文件是可移植的,因此您可以在任何您喜欢的地方提取它们。
4.打开解压后的文件夹。(unzipped folder.)
5.现在双击bin文件夹(bin folder)打开它。现在在文件资源管理器(File Explorer)的地址栏中键入cmd并按Enter打开命令提示符(Command Prompt)。
6.命令提示符将在上述路径打开。
7.在命令提示符(command prompt)下运行以下命令(below command)下载并安装Android SDK Platform-tools:( download and install Android SDK Platform-tools:)
“平台工具” “平台;android-28”(“platform-tools” “platforms;android-28”)
8.您将提示输入 (y/N)以获得许可。输入 y 表示是。
9.只要你输入yes,下载就会开始。(downloading will start.)
10.下载完成后,关闭命令提示符(command prompt)。
您的所有Android SDK 平台(Android SDK platform)工具现在都将被下载并安装。现在您已在Windows 10上成功安装ADB。
方法 2 – 在手机上启用 USB 调试( Method 2 – Enable USB Debugging on Phone)
要使用ADB 命令(ADB command) 行工具(line tool),首先需要开启 安卓手机(Android phone)的USB 调试功能(USB debugging feature)。为此,请按照以下步骤操作:
1.打开手机设置 (settings ),点击关于手机。(About phone.)
2.在关于手机下,查找内部版本号或 MIUI 版本。(Build Number or MIUI Version.)
3.在版本号上点击 7-8 次,然后你会看到一个弹出窗口说“You are now a developer!” 在您的屏幕上。
4.再次返回“设置”屏幕并查找(Settings screen and look)“附加设置(Additional settings)”选项。
5.在附加设置下,单击 开发人员选项。(Developer options.)
6.在开发者选项下,寻找USB调试。(look for USB debugging.)
7.切换USB(USB)调试前面的按钮。屏幕上将出现一条确认消息,只需单击(confirmation message)确定。(OK.)
8.您的USB 调试已启用(USB debugging is enabled)并可以使用。
完成上述步骤后,将您的Android 手机(Android phone)连接到 PC,它会要求确认是否允许在您的手机上使用(Phone)USB调试,只需单击“确定( OK)”即可。
方法 3 – 测试 ADB(Android 调试桥)( Method 3 – Test ADB (Android Debug Bridge))
现在您需要测试SDK 平台(SDK platform)工具,看看它是否正常工作并与您的设备兼容。
1.打开您下载并安装SDK平台工具的文件夹。(SDK platform tools.)
2.通过在地址栏中键入 cmd 打开(address bar)命令提示符(Command Prompt),然后按 Enter(Enter)。命令提示符(command prompt)将打开。
3.现在使用USB线(USB cable)将您的Android手机(Android phone)连接到计算机(Computer),以测试ADB是否正常工作。要对其进行测试,请在cmd(cmd and hit)中运行以下命令并按Enter:
“亚行设备”(“adb devices”)
4. 将出现连接到您计算机的所有设备的列表,您的Android 设备(Android device)将是其中之一。
现在您已经在Windows 10上安装了(Windows 10)ADB ,在(ADB)Android上启用了USB调试选项并在您的设备上测试了ADB 。但是,如果您没有在上面的列表中找到您的设备,那么您将需要为您的设备安装适当的驱动程序。
方法 4 – 安装适当的驱动程序( Method 4 – Install Appropriate Driver)
注意:仅当您在运行命令(Note:)“adb devices”时未在上述列表中找到您的设备时,才需要执行此步骤 。如果您已经在上面的列表中找到了您的设备,请跳过此步骤并继续下一步。
首先,从手机制造商处为您的设备下载驱动程序包。(driver package)因此,请访问他们的网站并查找适用于您设备的驱动程序。您还可以在 XDA Developers中搜索 驱动程序下载,无需额外的软件。下载驱动程序后,您需要使用以下指南安装它们:
1.按 Windows 键 + R 然后键入devmgmt.msc并按Enter打开设备管理器(Device Manager)。
2.从设备管理器中单击便携式设备。(Portable devices.)
3.您将在便携式设备下找到您的Android 手机。(Android phone)右键单击(Right-click)它,然后单击属性。(Properties.)
4.切换到电话属性(Properties)窗口下的驱动程序选项卡。(Driver)
5.在驱动程序选项卡下,单击更新驱动程序。(Update driver.)
6.会出现一个对话框。(dialogue box)单击(Click)浏览我的计算机以获取驱动程序软件(Browse my computer for driver software.)。
7.浏览在您的计算机上查找驱动程序软件,(driver software)然后单击(computer and click) 下一步。(Next.)
8.将出现可用驱动程序列表,然后单击安装( Install)以安装它们。
完成上述过程后,再次按照方法3(Method 3),现在您将在附加设备列表中找到您的设备。
方法 5 – 将 ADB 添加到系统路径( Method 5 – Add ADB to System Path)
此步骤是可选的,因为此步骤的唯一优点是您无需访问整个ADB 文件夹(ADB folder)即可打开命令提示符(Command Prompt)。将ADB(ADB)添加到Windows 系统路径(Windows System Path)后,您将可以随时打开命令提示符(Command Prompt)。添加后,无论您在哪个文件夹中,只要您想使用它,就可以在命令提示符窗口(Command Prompt window)中简单地键入 adb 。要将ADB添加到Windows 系统路径(Windows System Path),请按照以下步骤操作:
1.按 Windows 键 + R 然后键入 sysdm.cpl并按 Enter 打开系统属性。(System Properties.)
2.切换到高级选项卡。(Advanced tab.)
3.单击环境变量(Environment Variables)按钮。
4.在System Variables下,查找变量 PATH。(variable PATH.)
5.选择它并单击编辑按钮。(Edit button.)
6.会出现一个新的对话框。
7.单击新建按钮。(New button.)它将在列表末尾添加一个新行。
8.输入您下载安装SDK平台(SDK platform)工具的完整路径(地址)。
9.完成后,单击确定按钮。(Ok button.)
10.完成上述过程后,现在可以在任何地方从命令提示符访问(command prompt)ADB ,而无需提及整个路径或目录(path or directory)。
推荐的:(Recommended:)
- 外置硬盘(Hard Drive)未显示或无法识别?这是解决方法!
- 如何使用 OneDrive: Microsoft OneDrive(Microsoft OneDrive)入门
- 在Windows 10(Windows 10)中连接鼠标(Mouse)时禁用触摸板(Touchpad)
- (Install And Configure XAMPP)在Windows 10上(Windows 10)安装和配置 XAMPP
我希望这篇文章对您有所帮助,您现在可以轻松地 在 Windows 10 上安装 ADB ( Install ADB on Windows 10), 但如果您对本教程仍有任何疑问,请随时在评论部分提出。
How to Install ADB (Android Debug Bridge) on Windows 10
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: 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.
How to Install ADB (Android Debug Bridge) on Windows 10
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.Check the box near to “I have read and agree to the above terms and conditions”. Then click on “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 the unzipped folder.
5.Now double-click on the bin folder to open it. Now type cmd in the address bar of File Explorer and hit Enter to open Command Prompt.
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 of your Android phone. To do so follow the below steps:
1.Open your phone settings and click on About 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 “You are now a developer!” on your screen.
4.Again go back to the Settings screen and look for the Additional settings option.
5.Under Additional settings, click on Developer options.
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 OK.
8.Your USB debugging is enabled and ready to use.
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 to allow it.
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 Command Prompt 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 devices”
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
Note: 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 Developers for driver downloads without the extra software. Once you have downloaded the driver, you need to install them using the following guide:
1.Press Windows Key + R then type devmgmt.msc and hit Enter to open Device Manager.
2.From Device Manager click on Portable devices.
3.You will find your Android phone under Portable Devices. Right-click on it and then click on Properties.
4.Switch to the Driver tab under your Phone Properties window.
5.Under the Driver tab, click on Update driver.
6.A dialogue box will appear. Click on Browse my computer for driver software.
7.Browse to look for driver software on your computer and click Next.
8.List of available drivers will appear and click on Install to install them.
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.Press Windows Key + R then type sysdm.cpl and hit Enter to open System Properties.
2.Switch to the Advanced tab.
3.Click on the Environment Variables button.
4.Under System Variables, look for a variable PATH.
5.Select it and click on Edit button.
6.A new dialogue box will appear.
7.Click on the 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.
Recommended:
I hope this article was helpful and you can now easily Install ADB on Windows 10, but if you still have any questions regarding this tutorial then feel free to ask them in the comment’s section.