Download adb drivers for win 7. adb commands for Android users

The ADB and Fastboot utilities are included in the Android SDK development kit (do not confuse it with Android Studio, much less download its cumbersome installation file, unless, of course, you intend to develop for Android). ADB is a debugging tool that allows you to access the Android console from a computer (by connecting the gadget to a PC via USB. At the same time there should be . Fastboot is designed to work with the device when it is loaded in the mode of the same name (if your device has one).

Using ADB, you can manage your smartphone/tablet from your computer: make a backup of applications, record a screencast, put your smartphone in Recovery mode, and much more. In addition, you can work with ADB via Wi-Fi. To do this, your device must have root rights, and you will also need a special application that connects to your computer over the network. For example, ADB Wireless or WiFi ADB. But this is material for a separate article.

Using Fastboot, you can, custom Recovery (or), unlock Bootloader (on HTC, Motorola, Sony, Nexus, Huawei, the latest LG devices it is blocked), clean system partitions.

How to install ADB and Fastboot: instructions

1. Go to the official website where you can download the Android SDK: https://developer.android.com/studio/index.html. Scroll down to the “Command line tools only” section and select the archive for Windows.

2. Check the “I have read and agree with the above terms and conditions” checkbox and click the “Download Android Command Line Tools for Windows” button. The archive will begin downloading.

3. Download it and unzip it to the root of Drive “C:”.

4. You also need to download the Java Development Kit from the official page. Go to the website, agree to the terms of the license agreement by checking the “Accept License Agreement” box, and download the JDK version that matches the bit size of your system.

First way

Go back to the Android SDK folder, open “tools” and run “android”.

Check "Android SDK Platform-tools" (and also "Google USB driver" if you have a Nexus device) and click "Install Packages".

Read below about installing drivers for other devices.

Select "Accept License" and click "Install".

My log showed that an error occurred. But in the end everything ended successfully.

After completing the above steps, in the “sdk-tools-windows-” folder version“platform-tools” will appear, and it will contain the “ADB” and “Fastboot” that we are interested in.

Second way

Go to the folder "sdk-tools-windows- version» → “tools” → “bin” and, holding down the “Shift” key, right-click on an empty area. Select "Open a command window" or "Open a PowerShell window here" if you have one of the latest builds of Windows 10 installed on your PC or laptop.

Paste the command into PowerShell or Command Prompt (in PowerShell add ./ at the beginning):

Click "Enter" to execute the command. The files will download and you will be asked to install:

To enable, type y, that is, “yes”, and press “Enter”, after which the installation of “platform-tools” will begin.

At the end, a message will be displayed on the command line that the procedure completed successfully. And the “platform-tools” folder with ADB and Fastboot inside will appear in “sdk-tools-windows- version».

(!) If for some reason you cannot install ADB and Fastboot using the previous methods, use the third option - simply download the “platform-tools” archive and unzip it to the “C:” drive.

Installing ADB and Fastboot drivers for Windows

For a computer, smartphone or tablet, you need to download the USB driver:

  • Samsung - the driver is included in the Kies utility: http://www.samsung.com/ru/support/usefulsoftware/KIES/ or you can download it separately by selecting the desired model: http://www.samsung.com/us/support/downloads
  • HTC – as part of HTC Sync Manager: http://www.htc.com/ru/software/htc-sync-manager/
  • Nexus - Android driver is installed along with the Android SDK, as described above.
  • Huawei - together with the HiSuite utility: http://consumer.huawei.com/minisite/HiSuite_en/index.html
  • LG – install LG PC Suite: http://www.lg.com/ru/support/software-firmware
  • Motorola - see this page: https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481
  • Sony Xperia - FastBoot drivers for all models are here: http://developer.sonymobile.com/downloads/drivers/
  • Xiaomi – Mi PC Suite: http://pcsuite.mi.com
  • MTK – for Chinese devices on MediaTek chips: http://online.mediatek.com/Public%20Documents/MTK_Android_USB_Driver.zip
  • Lenovo - select your smartphone or tablet model and download the ADB driver: http://support.lenovo.com/us/en/GlobalProductSelector
  • Look for solutions for devices from other manufacturers on their official websites.

There are various universal ADB driver installers (for example, this one: http://adbdriver.com/downloads/) - they can also be used, for example, when for some reason it was not possible to install the official solution.

If your model comes with a driver without an installer, you will have to do the following:

1. Go to “Control Panel” → “Device Manager”. In Windows 10, just right-click on the Start menu and select Device Manager.

2. Find in the list the device for which you need to install drivers. Right-click and click Update Drivers.

As you can see, the computer correctly recognizes my Nexus 7 tablet. If your PC detects the smartphone incorrectly or there is a yellow triangle with an exclamation mark inside next to the device, “manual” installation of Android drivers is required for you.

3. Select “Browse this computer for driver software.”

4. Specify the path to the driver folder on your PC.

Wait until the installation is complete and then reconnect the gadget to your computer via USB.

How to get started with Fastboot and ADB

Working with ADB or Fastboot is done from the command line; the utilities are launched in two ways:

1: Right-click on “Start” and select “Command Prompt (Admin)” or “Windows PowerShell (Admin)”. Next, using the commands, specify the path to the folder with ADB and Fastboot (after entering each, press “Enter”).

To return to the root of the "C:\" drive, use:

Thanks to this command we open the desired folder:

In my case it turned out like this:

cd\tools_ version-windows\platform-tools

You will get (Google developers changed the name of the archive after writing the original version of this instruction):

cd\sdk-tools-windows- version\platform-tools

The path to Fastboot and ADB is indicated, now we work with them from the console.

To avoid having to do this every time, add the path to "platform-tools" to the "Path" variable. First, go to the folder, in the navigation bar, right-click on “platform-tools” and select “Copy Address”.

Go to "Control Panel". To do this, press “Win” + “R” and in the “Open:” field, paste control . Click OK.

Select System → Advanced System Settings → Environment Variables....

Find the "Path" variable, highlight it and select "Edit...".

Click New, paste the path to the "platform-tools" folder and click OK.

2: Go to "sdk-tools-windows- version→ platform-tools, then hold Shift, right-click on an empty space and select Open Command Window or Open PowerShell Window Here.

Type the following to test how your PC sees Android (in Windows PowerShell, insert ./ before the command):

Don't forget that USB debugging must be enabled to work with ADB! You will find more useful commands in the previous article, the link is at the beginning of this post.

Need to flash Android using FastBoot, but don't know how? This article gives detailed instructions on using the FastBoot utility and how to use it to flash an Android device.

This manual will fully explain how to use FastBoot! If you don’t know how to install archived updates, then you need the article - Clockwordmod - what is it. Instructions for CWM recovery with pictures

Downloading and installing FastBoot

Before flashing Android using FastBoot, you need to download it and install it on the desired computer.

1. You can download the FastBoot utility with the official Android SDK program (heavy weight)

why ADB RUN is better

(rutube)35ab1de9e0bba7da32b643d19a14c9f0(/rutube)

Launch

If you downloaded Separately Fastboot

After you have downloaded and installed FastBoot, open the " Command line »

and vve Enter the commands to go to the folder with the Fastboot utility (if you installed separately FastBoot)

cd/
cd adb

If you downloaded ADB RUN

If your choice fell on the ADB RUN program, then launch it and select Manual -> ADB from the menu

The files that need to be flashed must be located in the same folder as the Fastboot utility

Instructions for commands on how to flash Android using FastBoot

It is very important to write commands and firmware files as they are specified!

If your command is specified

fastboot flash cache NazvaniAFiLe.img

then you need to write exactly like that, but not any other way. In other words, the case of letters is important, otherwise you will get an error cannot load 'image' - there is no such file.

Reboot commands into firmware mode (bootloader)

fastboot reboot-bootloader

The command "sees" your Android PC

Get into the habit of checking before doing anything in Fastboot if the connection between your computer and Android is:

Checking whether your PC can see your Android

fastboot devices

Execute this command when the device is already in firmware mode (bootloader)

Nexus Bootloader Unlock and Lock Commands

Unlock bootloader for Nexus

fastboot oem unlock

Lock bootloader for Nexus

fastboot oem lock

Command to find out bootloader version

Shows the version number of the bootloader installed on Android

fastboot getvar version-bootloader

Partition formatting commands

Before flashing any partition in Android, you must first format it so that there are no problems with operation

fastboot erase Imya_razdela - erase partition: boot, radio, recovery, system, userdata and others

Erases the Cache partition

fastboot erase cache

Erases the Data section

fastboot erase userdata

Erases the System partition

fastboot erase system

Erases the Recovery partition

fastboot erase recovery

Commands for flashing a partition

After you have formatted the partition or partitions, you can start flashing the firmware

fastboot flash Imya_razdela imya_file.img - firmware of the selected partition: boot, radio, recovery, system, userdata and others

Flash the system partition (System)

fastboot flash system imya.img

Flash the cache partition

fastboot flash cache imya.img

Flash the data section

fastboot flash userdata imya.img

Flash the Recovery partition

fastboot flash recovery imya.img

Setting the power-on animation (firmware partition with animation)

fastboot flash splash1 splash.img

Flash all partitions (boot, recovery and system)

fastboot flashall

Instead of imya.img- you need to enter the name of the file you are going to flash

Command to install update.zip

Flashes an update archive on Android in update.zip format or a ZIP archive with IMG images of various sections

fastboot update filename.zip

For Sony devices

Checking the connection of the Sony device, if the answer is 0.3 device, then it is connected

fastboot.exe -i 0x0fce getvar version

Unlock bootloader

fastboot.exe -i 0x0fce oem unlock 0xReceived_Key

More detailed information on unlocking Bootloader Sony - How to unlock Bootloader Sony

Waiting for Device error

If you have for a long time The message in the command window is lit waiting for device- Means:

  • The driver is not installed or installed incorrectly - reinstall or install
  • Android device is not in Bootloader mode - translate
  • Incorrect connection to the USB port - use the rear USB 2.0 ports of the computer, do not use USB hubs

Video example of working with the Fastboot utility

(rutube)681e46fc831b35f60bc992ed023e85cc(/rutube)

For those who don't understand anything!

For those who don’t understand anything, use the ADB RUN application, this program contains almost all the commands that are needed for FASTBOOT!

Below is an example of how ADB RUN works - how to quickly flash a Recovery file using ADB RUN in less than 5 seconds (just don’t forget to switch to bootloader mode first)! Click on the image to view.

There are many tools for working with a smartphone connected via a USB cable or Wi-Fi. Particularly advanced tools allow you to move files, install and uninstall software, view contacts, take screenshots and even send SMS, but no graphical tool can compare with the power that the Android console can provide. In this article we will talk about ADB (Android Debug Bridge) - a standard tool for debugging and working with the Android console from a computer.

The commands described in the article can be executed directly on the device by downloading a terminal emulator from the market, but it is more convenient to do this, of course, from a computer via adb.

ADB Basics

To start working with ADB, you should activate it on your device and install the adb utility and drivers on your computer. The first task is performed by enabling “USB Debugging” in the “For Developers” settings item (if this item is hidden, click seven times on the build number in the “About Phone” menu).

To install ADB on your computer, download Adb Kit and unpack it into any folder (I recommend using folder names without Russian characters). We also download and install ADB drivers.

You need to work with adb from the command line. Press Win + R and enter cmd, then go to the folder in which adb is located. For my folder the command would be:

Cd\android

In order not to do all these manipulations every time, you can add the desired folder to the Path variable. To do this, go to “Control Panel -> System -> Advanced system settings -> Environment variables”, find the Path variable and add the path to the adb folder to the end of the line, separated by a semicolon. Now, after starting the console, you can immediately enter the necessary commands.

Let's check our connection to the phone using the following command (it should display a list of connected devices):

adb devices

You can work with ADB via Wi-Fi. To do this, you need root rights and the WiFi ADB application. We launch the application, press the switch and connect to the smartphone using the connect command and the IP address shown by the application:

INFO

You can copy the console output after selecting it with the mouse, as well as paste the copied command or file name into the console with the right mouse button. Enabled in the console properties.

Installing programs

ADB can be used to install applications without having to copy them to your smartphone. All you need to do is run the following command:

Adb install d:/downloads/filename.apk

You can also add additional keys to the command. Will be useful -e- reinstall the application while saving the data and -d- install a version less than the current one.

Programs can be removed, but to do this you need to know the name of the package (I’ll tell you how to find out a little later). Using the game Angry Birds Seasons as an example, the command would look like this:

Adb uninstall com.rovio.angrybirdsseasons

Application backup

Android has built-in backup functions that can also be launched using the command line. To do this, use the adb backup command and a set of options:

Adb backup [options]<приложения>

  • -f indicates the name of the file being created and its location on the computer. If the key is missing, the backup.ab file will be created in the current directory;
  • -apk|-noapk indicates whether to include only the application data or the apk itself in the backup (does not include it by default);
  • -obb|-noobb specifies whether to include .obb extensions for applications in the backup (not included by default);
  • -shared|-noshared specifies whether to include the contents of the application on the SD card in the backup (not included by default);
  • -all indicates the need to backup all installed applications;
  • -system|-nosystem specifies whether to include system applications in the backup (includes by default);
  • - list of packages for backup.

If we want to create a backup of all non-system programs, including .apk, to a specific location, then the command will look like this:

Adb backup -f c:\android\backup.ab -apk -all -nosystem

After entering, you must confirm the start of the backup on the device itself. To restore the resulting backup, you need to run the appropriate command:

Adb restore c:\android\backup.ab

Console within a console

Along with the mentioned console, which is a DOS console for Windows, Android also has its own. It is called via adb shell and is essentially a standard Linux console, but with an incomplete set of commands, which can be expanded by installing BusyBox from the market. There are two ways to use this console. In interactive mode it is launched with the command

adb shell

The $ sign appears in the console (hereinafter in the text this sign will mean the need to enter the preliminary adb shell command), and after that you can enter a series of commands, receiving a response after each. The second method is if you need to enter only one command, you can write it in a row using the adb shell.

The shell uses standard commands for copying, moving and deleting files: cp, mv And rm. You can change directories ( CD) and view their contents ( ls). In addition to standard Linux commands, which you can learn about from any reference book, Android has several of its own specialized tools, but to use some of them, you will have to gain root rights on your smartphone, and after launching the console, run the su command:

adb shell su

This needs to be done if, in response to any command, you see a line similar to “access denied” or “are you root?”. If successful, the $ sign will change to #.



Taking a screenshot

Done in one line:

Adb shell screencap /sdcard/screen.png

After this, the picture needs to be pulled out of the device with the command adb pull:

Adb pull /sdcard/screen.png

In recovery, you can take a screenshot with the following command:

Adb pull /dev/graphics/fb0

Then you need to convert the fb0 file into a normal image using FFmpeg, which you need to download and put in the adb folder. The extension must be installed on your device:

Ffmpeg -f rawvideo -pix_fmt rgb32 -s 1080x1920 -i fb0 fb0.png

Record video happening on the device screen

adb shell screenrecord --size 1280x720 --bit-rate 6000000 --time-limit 20 --verbose /sdcard/video.mp4

This command will start recording video with a resolution of 1280 x 720 (if not specified, the native screen resolution of the device will be used), with a bitrate of 6 Mbit/s, length 20 s (if not specified, the maximum value will be set to 180 s), with display logs in the console. The recorded video will be located in /sdcard (video.mp4 file).

INFO

All launched from the console and in adb shell processes that take some time to complete can be interrupted using the combination Ctrl + C. Exit the shell and return to executing regular adb commands - Ctrl + D.

Application management

Two commands are used to manage applications: pm(package manager) - package manager and am(activity manager) - activity manager. These teams have many keys, which can be viewed on the developers portal. Let's look at a few.

To begin with, we will get a list of applications installed on the device in the form of package names that will be useful later:

Continuation is available only to members

Option 1. Join the “site” community to read all materials on the site

Membership in the community within the specified period will give you access to ALL Hacker materials, increase your personal cumulative discount and allow you to accumulate a professional Xakep Score rating!

ADB FastBoot is a separate component from the package that allows you to perform various service operations with the device connected to your computer. portable device on the base operating system Android. ADB commands are universal and can be used on almost all devices, except those on which they have been blocked by the user.

Specifically, the FastBoot tool makes it possible to flash smartphones and tablets. You can use it to install the update software from an IMG file, as well as clean up system partitions, reboot if the system freezes completely, and much more.

Installation and use

Due to the lack of a graphical shell (we remind you that this is a console application), only experienced users will be able to work with ADB FastBoot. First of all, after downloading and unpacking the archive with the application, you need to add both programs (ADB and FastBoot) to the “Environment Variables” section. To do this you need to go to the Panel Windows Controls, then refer to the sections “System and Security” - “Advanced System Settings”. After that, click on the “Environment Variables” button at the bottom of the window that opens, select “System Variables” and specify the path to the unpacked folder.

If you did everything correctly, then after opening the Command Prompt and entering the “adb version” command, the version of the installed component should be displayed. In this case, you can begin flashing the firmware and performing other system operations. You can find information about ADB commands and their purpose on thematic forums. We will not study this issue in depth within the framework of this review. In general, instead of working “directly” with the command line, it is recommended to use ready-made GUIs, like the same and other similar programs.

Key Features

  • installation of new firmware versions for Android devices;
  • performing other service operations;
  • the need to perform complex initial setup (when used separately from the Android SDK);
  • lack of its own graphical shell (GUI);
  • compatible with all versions of Windows.


If you have a phone or tablet running Android OS, then you probably want to connect it to your Windows 10 device, for example, to transfer files. In this case, we recommend downloading ADB drivers for Windows 10 - special file libraries that simplify the operation of two devices on different OSes.

Peculiarities

Typically, there is no need to download ADB drivers for Windows 10 if all you need is to transfer files. These drivers have a much broader purpose:
  • Transfer files from device to device;
  • Get ROOT rights to Android OS;
It is for the latter that the driver data is downloaded. The full name of the ADB abbreviation is Android Debug Bridge, all other abbreviations are erroneous versions. On this page we offer a universal driver package, in its most current version. It is universal in all respects, it is suitable for any Android devices, for any version of this OS, and will also allow you to connect your phone or tablet to Windows 10 x64, as well as to the 32-bit version.

If this version of drivers suddenly does not suit you, then don’t worry, you can always download - this is a universal program for automatically searching and installing any drivers, including ADB.

Despite the fact that the program is completely free, it is very functional. Version available in Russian and English language. For those who want to simultaneously download an antivirus program to avoid infecting their smartphone, we recommend using