Google usb driver android studio это
When building an Android app, it's important that you always test your app on a real device before releasing it to users. This page describes how to set up your development environment and Android device for testing and debugging over an Android Debug Bridge (ADB) connection.
Note: Use the Android emulator to test your app on different versions of the Android platform and different screen sizes. Also consider using Firebase Test Lab to run your app on a wide variety of real devices hosted in a cloud-based infrastructure.
Set up a device for development
Before you can start debugging on your device, decide if you want to connect the device to using a USB cable or Wi-Fi. Then do the following:
On the device, open the Settings app, select Developer options, and then enable USB debugging (if applicable).
Set up your system to detect your device.
- Chrome OS: No additional configuration required.
- macOS: No additional configuration required.
Ubuntu Linux: There are two things that need to be set up correctly: each user that wants to use adb needs to be in the plugdev group, and the system needs to have udev rules installed that cover the device.
plugdev group: If you see an error message that says you're not in the plugdev group, you'll need to add yourself to the plugdev group:
Note that groups only get updated on login, so you'll need to log out for this change to take effect. When you log back in, you can use id to check that you're now in the plugdev group.
udev rules: The android-sdk-platform-tools-common package contains a community-maintained default set of udev rules for Android devices. To install:
Windows: Install a USB driver for ADB (if applicable). For an installation guide and links to OEM drivers, see the Install OEM USB drivers document.
Connect to your device using USB
When you are set up and plugged in over USB, you can click Run in Android Studio to build and run your app on the device.
You can also use adb to issue commands, as follows:
- Verify that your device is connected by running the adb devices command from your android_sdk /platform-tools/ directory. If connected, you'll see the device listed.
- Issue any adb command with the -d flag to target your device.
Connect to your device using Wi-Fi
Android 11 (and later) supports deploying and debugging your app wirelessly from your workstation via Android Debug Bridge (adb). For example, you can deploy your debuggable app to multiple remote devices without physically connecting your device via USB and contending with common USB connection issues, such as driver installation.
To use wireless debugging, you need to pair your device to your workstation using a pairing code. To begin, complete the following steps:
- Ensure that your workstation and device are connected to the same wireless network.
- Ensure that your device is running Android 11 or higher. For more informaton, see Check & update your Android version.
- Ensure that you have Android Studio Bumblebee Canary. You can download it here.
- On your workstation, update to the latest version of the SDK Platform-Tools.
To connect to your device, follow these steps:
-
Open Android Studio and select Pair Devices Using Wi-Fi from the run configurations dropdown menu.
- To pair your device with a QR code, select Pair device with QR code and scan the QR code obtained from above.
- To pair your device with a pairing code, select Pair device with pairing code from the Pair devices over Wi-Fi window above. On your device, select Pair using pairing code and take note of the six digit pin code. Once your device appears on the Pair devices over Wi-Fi window, you can select Pair and enter the six digit pin code shown on your device.
After you are paired, you can attempt to deploy your app to your device.
To pair a different device or to forget this device on your workstation, navigate to Wireless debugging on your device, tap on your workstation name under Paired devices, and select Forget.
Troubleshoot device connection
If your device is not connecting to Android Studio, try the following to resolve the issue.
Troubleshoot with the Connection Assistant
The Connection Assistant provides step-by-step instructions to help you set up and use a device over the ADB connection.
To start the assistant, choose Tools > Troubleshoot Device Connections.
The Connection Assistant provides instructions, in-context controls, and a list of connected devices in a series of pages in the Assistant panel. Use the Next and Previous buttons at the bottom of the Assistant panel to work through the pages as needed:
- Connect your device over USB: The Connection Assistant begins by prompting you to connect your device over USB, and it provides a Rescan USB devices button with which you can start a new scan for connected devices.
- Enable USB debugging: The Connection Assistant then tells you how to enable USB debugging in the on-device developer options.
- Restart the ADB server: Finally, if you still don't see your device on the list of available devices, you can use the Restart ADB server button on the last page of the Connection Assistant. Restarting the ADB server also causes ADB to scan for devices again. If you still don't see your device on the list of available devices, try the troubleshooting steps in the next section of this page.
Resolve USB connection issues
If the Connection Assistant is not detecting your device over USB, you can try the following troubleshooting steps to resolve the issue:
Check that Android Studio can connect to the Android Emulator
To check if the issue is being caused by a connection problem between Android Studio and the Android Emulator, follow these steps:
- Open the AVD Manager. if you don't already have one. using your AVD.
- Do one of the following:
- If Android Studio can't connect to the emulator, download the latest SDK Platform Tools and then try again.
- If the emulator starts successfully, check the USB cable.
Check the USB cable
To check if the issue is being caused by a faulty USB cable, follow the steps in this section.
If you have another USB cable:
- Connect the device using the secondary cable.
- Check if the Connection Assistant can now detect the device.
- If the device is not detected, try the primary cable again.
- If the device still isn't detected, assume that the problem is with the device and check if the device is set up for development.
If you don't have another USB cable but you do have another Android device:
If the Connection Assistant can detect the secondary device, assume that the problem is with the primary device and check if the device is set up for development.
If the secondary device is not detected, the problem might be with the USB cable.
Check if the device is set up for development
To check if the issue is being caused by settings on the device, follow these steps:
- Follow the steps in the Set up a device for development section.
- If this does not resolve the problem, contact the device OEM's customer support for help. Tell the customer support representative that the device won't connect to Android Studio using ADB.
Resolve wireless connection issues
If you are having issues connecting to your device wirelessly, you can try the following troubleshooting steps to resolve the issue.
Check if your workstation and device meet the prerequisites
To meet the prerequisites for wireless debugging, ensure that:
- Your workstation and device are connected to the same wireless network.
- Your device is running Android 11 or higher. For more information, see Check & update your Android version.
- You have Android Studio Bumblebee. You can download it here.
- You have the latest version of the SDK Platform Tools on your workstation.
Check for other known issues
The following is a list of current known issues with wireless debugging in Android Studio and how to resolve them.
- Wi-Fi is not connecting: Some Wi-Fi networks, such as corporate Wi-Fi networks, may block p2p connections and not allow you to connect over Wi-Fi. Try connecting with a cable or another Wi-Fi network.
- ADB over Wi-Fi sometimes turns off automatically: This can happen if the device either switches Wi-Fi networks or disconnects from the network.
RSA security key
When you connect a device running Android 4.2.2 (API level 17) or higher to your computer, the system shows a dialog asking whether to accept an RSA key that allows debugging through this computer. This security mechanism protects user devices because it ensures that USB debugging and other adb commands cannot be executed unless you're able to unlock the device and acknowledge the dialog.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
The Google USB driver is a downloadable component for the Android SDK, available from the SDK Manager. The driver is for Windows only and provides the necessary drivers for the following devices:
- ADP1 / T-Mobile G1*
- ADP2 / Google Ion / T-Mobile myTouch 3G*
- Verizon Droid*
- Nexus One
- Nexus S
* Or similar hardware on other carriers
All other devices require Windows drivers provided by the hardware manufacturer, as listed in the OEM USB Drivers document. The Galaxy Nexus driver is also distributed by Samsung (listed as model SCH-I515).
Note: If you're developing on Mac OS X or Linux, then you do not need to install a USB driver. To start developing with your device, also read Using Hardware Devices.
The sections below provide instructions on how to download and install the Google USB Driver for Windows.
Revisions
The sections below provide notes about successive revisions of the USB Driver for Windows, as denoted by revision number. To determine what revision of the USB Driver for Windows you are using, refer to the "Installed Packages" listing in the Android SDK Manager.
USB Driver for Windows, Revision 4 (December 2010)
Adds support for the Nexus S.
Adds support for the Nexus One.
USB Driver for Windows, Revision 2 (November 2009)
Adds support for the Verizon Droid (or similar hardware on other carriers).
Initial release of the WinUsb-based driver, with support for the T-Mobile G1 and myTouch 3G (and similar devices).
Downloading the Google USB Driver
Figure 1. The SDK Manager with the Google USB Driver selected.
The USB Driver for Windows is available for download as an optional SDK component. You need the driver only if you are developing on Windows and want to connect an Android-powered device (ADP, Nexus One, or Nexus S) to your development environment over USB.
To download the driver, use the Android SDK Manager tool that is included with the Android SDK:
- Launch the Android SDK Manager by double-clicking SDK Manager.exe , at the root of your SDK directory.
- Expand Extras.
- Check Google USB Driver package and click Install.
- Proceed to install the package. When done, the driver files are downloaded into the \extras\google\usb_driver\ directory.
For installation information, read Installing a USB Driver.
Except as noted, this content is licensed under Creative Commons Attribution 2.5. For details and restrictions, see the Content License.
The Google USB driver is a downloadable component for the Android SDK, available from the SDK Manager. The driver is for Windows only and provides the necessary drivers for the following devices:
- ADP1 / T-Mobile G1*
- ADP2 / Google Ion / T-Mobile myTouch 3G*
- Verizon Droid*
- Nexus One
- Nexus S
* Or similar hardware on other carriers
All other devices require Windows drivers provided by the hardware manufacturer, as listed in the OEM USB Drivers document. The Galaxy Nexus driver is also distributed by Samsung (listed as model SCH-I515).
Note: If you're developing on Mac OS X or Linux, then you do not need to install a USB driver. To start developing with your device, also read Using Hardware Devices.
The sections below provide instructions on how to download and install the Google USB Driver for Windows.
Revisions
The sections below provide notes about successive revisions of the USB Driver for Windows, as denoted by revision number. To determine what revision of the USB Driver for Windows you are using, refer to the "Installed Packages" listing in the Android SDK Manager.
USB Driver for Windows, Revision 4 (December 2010)
Adds support for the Nexus S.
Adds support for the Nexus One.
USB Driver for Windows, Revision 2 (November 2009)
Adds support for the Verizon Droid (or similar hardware on other carriers).
Initial release of the WinUsb-based driver, with support for the T-Mobile G1 and myTouch 3G (and similar devices).
Downloading the Google USB Driver
Figure 1. The SDK Manager with the Google USB Driver selected.
The USB Driver for Windows is available for download as an optional SDK component. You need the driver only if you are developing on Windows and want to connect an Android-powered device (ADP, Nexus One, or Nexus S) to your development environment over USB.
To download the driver, use the Android SDK Manager tool that is included with the Android SDK:
- Launch the Android SDK Manager by double-clicking SDK Manager.exe , at the root of your SDK directory.
- Expand Extras.
- Check Google USB Driver package and click Install.
- Proceed to install the package. When done, the driver files are downloaded into the \extras\google\usb_driver\ directory.
For installation information, read Installing a USB Driver.
Except as noted, this content is licensed under Creative Commons Attribution 2.5. For details and restrictions, see the Content License.
Google USB Drivers are required to connect Google Pixel or Nexus devices to Windows PC using a USB cable. You will need these drivers to transfer files or sync data on your Pixel/Nexus device, and especially when working with the Android ADB and Fastboot tools.
You can download the latest Google USB Drivers from here and follow the instructions on how to manually install them on your Windows PC. Furthermore, we have also provided instructions on how to modify the ‘android_winusb.inf‘ file included in the drivers to support other Android devices.
Normally, the said USB drivers come bundled with SDK Manager in the Android Studio IDE, which IS constantly updated with the latest available drivers. But if you’re an average Android user, chances are that you might not have the IDE set up on your PC. That’s because it is used mostly by experienced developers and enthusiasts. In that case, you can use the standalone USB drivers, which as provided directly by Google for users who might face issues of Windows not recognizing their phone over a USB connection.
Google USB drivers also act as ‘Android ADB and Fastboot Drivers‘. So you can install them on your PC to use ADB (Android Debug Bridge) for debugging apps and ROMs, or use Fastboot to unlock the bootloader or flash factory images on your Pixel/Nexus device.
To sum up, the drivers are useful in various situations. With that in mind, go ahead to download the latest version of the USB Drivers from below and follow the instructions on how to install them on your Windows PC.
Download Google USB Drivers
Now, there are two different ways/methods to download the USB driver on Windows. You can either download the Google USB Driver ZIP file manually. Or, you can use the SDK Manager in the Android Studio to download it.
The latter gives an added benefit, that is the SDK Manager will automatically notify you when a newer version is available. The former method, on the contrary, will require you to manually check if a newer driver version is available and download it again.
In our personal experience, downloading the ZIP package directly is easier than using the Android Studio. But the choice is solely up to you. We have covered both the methods below.
Note: If you’re using macOS or Linux, you would not need these drivers.
Direct Download
Just click on the link below to download the Google USB Driver ZIP file to your PC.
Once downloaded, extract the ZIP file to a suitable location on your computer. The extracted ‘usb_drivers’ folder should contain the required ‘android_winusb.inf’ driver file.
Download via Android Studio
First of all, make sure that you have downloaded and installed the latest version of Android Studio on your Windows PC. Once you have it installed, follow the instructions below:
Android Studio will now download the Google USB drivers to ‘android_sdk\extras\google\usb_driver\‘ on your PC. Here ‘android_sdk’ is the folder where the Android SDK is installed on your PC.
How to Install Google USB Drivers
The Google USB Drivers come in the form of an ‘android_winusb.inf’ setup information file, rather than a Windows executable. So, you will need to manually install it on your Windows PC. The same steps can also be used to upgrade the existing drivers installed on your PC to the latest version available.
Now follow the installation guide below according to the Windows OS version you’re using. It’s quite easy and wouldn’t take more than a minute to install them.
On Windows 10
To install Google Android USB Drivers on Windows 10, follow the instructions below.
On Windows 7 and Windows 8/8.1
To install Google Android USB drivers on Windows 7, Windows 8, and Windows 8.1 PC, follow the instructions below.
- First, connect your Android device to the Windows PC’s USB port.
- Then right-click on ‘Computer‘ and select ‘Manage‘.
- Select Devices in the left pane.
- Double-click on ‘Other device‘ in the right pane to expand it.
- Right-click on the device name (e.g. Google Pixel) and select the ‘Update Driver‘ option.
- Click on ‘Browse my computer for driver software‘ in the Hardware Update wizard.
- Click ‘Browse‘ and locate the ‘usb_driver’ folder.
- Finally, click on ‘Next‘ to install the USB drivers.
You should now have the Google USB Drivers installed. Your Windows PC should now detect and recognize your Android device over the USB connection.
Important Note
If the drivers fail to install even after following the steps, OR the ADB/Fastboot commands do no work even if the drivers are installed, then it could be because you’re using a USB 3.0/3.1/3.2 port or an AMD based PC. This is an issue faced by a lot of users recently.
To fix it, simply try using a USB 2.0 port (If it’s not available, you can also use a USB 2.0 hub) on your PC. Also, try using an Intel-based PC for especially when using ADB/Fastboot tools.
How to Modify Google USB Drivers to Support Other Android Devices
Like we mentioned above, Google USB Drivers also work as ‘ADB Drivers’. But by default, they only support the Google Pixel and Nexus devices.
While Android OEMs do provide their own drivers, but it’s more often than they miss to include the required ADB USB drivers in them. In such cases, you can easily modify the ‘android_winusb.inf’ file in Google USB Drivers to support any other Android device to use the ADB and Fastboot tools.
In order for the drivers to support your non-Pixel/Nexus device, you will first need to acquire the Vendor ID (VID) and Product ID (PID) of your device. Once you have them, the second step is to edit the ‘android_winusb.inf’ file and add a new device section with the VID and PID of your own device. And finally, the third and last step is to install the modified drivers.
Sounds confusing? It’s quite simple actually. Just follow the step-by-step instructions below.
Step 1: Get the VID and PID of your Android Device
Step 2: Modify ‘android_winusb.inf’ file
Now that you have the required IDs, you can modify/edit the ‘android_winusb.inf’ file to add your device to the supported list.
- First, locate the ‘usb_driver‘ folder on your PC. Inside the folder, you should have the ‘android_winusb.inf‘ file.
- Open the file using a text editor and locate the ‘[Google.NTx86]‘ section if your Windows PC is 32-bit (x86) or the ‘[Google.NTamd64]‘ section if your Windows PC is 64-bit (x64).
- In the said section, you will see a number of items with the following format:
- You can copy the above lines into the respective section and edit it accordingly.
- The first thing to do is to replace the ‘[device name]‘ item with your actual device name (Nothing specific, it could be anything).
- Next, you have to add your device’s VID and PID values to the %SingleAdbInterface% and %CompositeAdbInterface% items.
- In case your device also has a REV_xxxx ID, you will need to add two lines for the %SingleAdbInterface% item. One without and another with the REV ID. The line with the REV ID should look like:
- For the %CompositeAdbInterface% item, you will further need to add ‘MI_01‘ ID towards the end. With the MI_01 ID, the line should look like:
Once you have added the lines under the proper section (depending on your PC’s architecture), save the file and exit.
Step 3: Install the Modified USB Drivers
You have now successfully modified the Google USB Drivers to support your Android device. The last step is to install these modified drivers for your device.
To do so, go to ‘Control Panel’ > ‘Device Manager’ and right-click on your device’s name. Then select ‘Update drivers’ to launch the Hardware Update wizard. Simply click on ‘Browse my computer for driver software’ and select ‘Browse’. Now locate the ‘usb_driver’ folder that contains the modified android_winusb.inf file and select it.
Finally, click on ‘Next’ to install the modified drivers for your device. That’s it! Your Windows PC should now recognize your Android device over ADB or Fastboot.
Installing the Google USB Drivers is the easiest solution to make your Windows PC successfully recognize your Android device. And while it should work for most other Android devices too, it’s not a hundred percent guaranteed. And if this happens, you may want to install your device’s OEM specific drivers from this page or by clicking your device manufacturer link below.
For low-level firmware flashing, you could also use MediaTek or Qualcomm USB drivers.
If you face any issues installing the drivers on your PC, feel free to ask us through the comments.
Google USB Driver is a downloadable component in Android Studio and is available from Android SDK Manager. The Google USB Drivers are available for Windows OS and are not required for Mac; for Linux systems, there is a workaround to install them. Here you can download Google USB Driver Package for Windows 10, Windows 7, Windows 8, Windows 8.1, and Linux systems and find complete instructions on how to install them manually.
Google USB Driver doesn’t include ADB and Fastboot Drivers, you need to install them separately - follow the instruction here on how to install ADB and Fastboot Drivers. The Google Android USB Drivers helps in making two hardware devices (Android Device and PC) communicate/connect with each other.
If you already have installed Android Studio on your Windows PC, then chances are that you already have these drivers installed. These Android drivers are updated frequently adding compatibility for more and more Android devices. It is always a good idea to have the latest version of these drivers installed on the system.
Table of Contents
Download Google USB Drivers for Windows
There are two methods to install Google Android USB Driver on a Windows PC. The drivers come bundled with Android Studio and are also available as a separate package, for the users who don’t want to install Android Studio for the purpose of installing these drivers.
Method 1: Download and install Google USB Driver Package manually on Windows 10/7/8/8.1
Step 1: Download the latest Google USB Driver Package (latest_usb_driver_windows.zip) from here.
Step 2: Extract the Zip package to obtain "android_winusb.inf " and other driver files.
Step 3: Connect your Android device to PC.
Step 4: Open "Device Manager" and look for your Android device. It will be listed under "Portable Devices" or under "Other devices".
Step 5: Once you have found your device, select it and right click. From the list of options choose "Update driver" or "Update Driver Software".
Step 6: Hardware Update wizard should launch. In the wizard choose "Browse my computer for driver software" -> "Browse" -> "Select the folder where you have extracted the drivers" -> "OK".
Step 7: Click "Next" and follow the onscreen instructions to install the driver.
Method 2: Install Google USB Driver from Android SDK Manager (Android Studio)
Step 1: Download and Install Android Studio on your PC. [Link]
Step 2: Run Android Studio and click on "Tools" -> "SDK Manager".
Step 3: Click on the "SDK Tools" tab and select "Google USB Driver" and click "OK".
Step 4: The Google USB Driver Package should now download and install. When done, the driver files are downloaded into the android_sdk\extras\google\usb_driver\ directory.
Download Google USB Driver for Mac
Mac OS doesn’t require the Google Android USB Drivers to be installed. They are readily available and no extra work is needed to make them work. Just connect your device to Mac and it will be detected automatically and you can start transferring Media and other files to and from Mac to Android device.
Download Google USB Driver for Linux
To install the Android drivers on Ubuntu Linux follow the instructions listed below.
Step 1: Open Settings app and enable USB Debugging from Developer Options on your device. If the Developer Options are missing, go to About Phone and tap on Build Number for 7-10 times.
Step 2: Once the USB Debugging option is enabled, connect the device to the Ubuntu Linux system.
Step 3: Run terminal and enter the below command
The above command will install ADB and Fastboot drivers along with Google USB Drivers on Ubuntu Linux.
This was the complete tutorial on how to install Google USB Driver on Windows, Linux, and Mac. If you have any queries, do let us know in the comment section.
Download and Install Google USB Driver on Windows, Mac and Linux was last modified: April 9th, 2019 by Alpesh
This page may contain affiliate links so we earn a commission. Please read our affiliate disclosure for more info.
Читайте также: