Android usb debugging driver

So you’ve got an Android device and want to dive deep into the world of modding? Be it rooting or installing a custom ROM like LineageOS, most of the aftermarket modding requires you to connect your Android smartphone to a computer using a USB cable so you can use tools like the Android Debug Bridge (ADB) and Fastboot to interact with the device. For an Android power user, you may also want to reinstall the factory firmware on your phone, which means you have to deal with the OEM-specific flashing utilities.

However, none of these tinkering jobs are possible if your PC can’t see the target device in the first place. As in the case of Windows, the operating system may require an additional piece of software known as the “driver” in order to properly recognize all the different connection modes exposed by the Android device. Below you can find a list of official OEM-provided Android USB driver packages and a generic driver installation guide. If you don’t see the maker of your device listed or you see a misplaced link, send a message to Skanda HazarikaВ (SkandaHВ on the forums) with the device details.

Table of Contents:

Purpose of Android USB drivers

The USB interface of an Android device is a pretty complex object. Depending on the configuration, it may expose the standard Android USB debugging interface, the fastboot interface, and various other SoC-specific diagnostic interfaces to the computer. Simultaneously maintaining more than one interface is supported as well, e.g. you can interact with your device with ADB while configuring the internal modem parameters.

Keep in mind the aforementioned scenarios are a bit different from connecting the device through the plain old Media Transfer Protocol (MTP) or Picture Transfer Protocol (PTP) mode. MTP enables the end-user to browse the internal memory on the device from a PC as if it’s an external storage drive. Microsoft ships a generic MTP/PTP driver with every edition of Windows since Windows XP, so you don’t need an external driver for that.

Most Android OEMs offer official driver packages for their devices. Besides the ADB and Fastboot interfaces, these drivers also support proprietary flashing protocols designed by the corresponding device maker. For example, if you want to flash a Samsung Galaxy device, you must install the Samsung USB driver package beforehand.

Note that Microsoft has been shipping a generic ADB driver with Windows for a while, so installing the OEM driver just for the sake of USB debugging might not sound worthwhile anymore. Windows can also check and install the missing drivers on the fly through Windows Update. However, Microsoft-recommended drivers are not always the best choice for complex USB interfaces, so do check out the official driver pack whenever possible.

The inbox Android USB debugging driver of Windows in action

Get the appropriate driver for your device from the index below:

OEM Android USB Driver
Acer Download Link
Alcatel Download Link
ASUS Download Link
Blackberry Download Link
Dell Download Link
Fujitsu Download Link
Google Download Link
HTC Download Link
Huawei Download Link
Intel Download Link
Kyocera Download Link
Lenovo
  • Download Link
  • Download Link
LG Download Link
Motorola Download Link
MediaTek Download Link
NVIDIA Download Link
Samsung Download Link
Sharp Download Link
Sony Download Link
Toshiba Download Link
Vivo/iQOO Download Link
Xiaomi Download Link
ZTE Download Link

How to install Android USB drivers

Now that you’ve downloaded the suitable driver package for your device, it’s time for you to install it. Some OEMs offer standard installer executables, which means you can easily install the whole driver suite by double-clicking on the setup file and following the wizard.

However, Google and a few other vendors prefer to stick with the bare INF and associated binary files which are packed inside a zip or rar archive. Such packages need to be installed using Device Manager, but you have to extract the contents of the archive beforehand.

  • Right-click on the Start button and select the Device Manager entry. You can also call the Microsoft Management Console snap-in named devmgmt.msc directly from Run to open Device Manager.

Device Manager under Windows 10

  • Connect the Android device to your PC. Depending on the selected configuration, you may see one or more unknown devices popping up.

  • (Optional) Right-click on the unknown device entry, select Properties, move to the Details tab, and finally select Hardware Ids from the dropdown menu. Now open your favorite search engine, paste the hardware identifier in the search box, and go through the search results. This is a crude way to determine the probable interface your device is currently exposing.

  • Right-click on the unknown device entry and select Update drivers. Now select Browse my computer for drivers/driver software and point the wizard to the folder where you extracted the driver package.

  • If everything goes right, you should see a confirmation page like the following.

Manually install the driver for an unsupported device

On some occasions, the OEM drivers aren’t enough. Perhaps you’ve stumbled upon a no-name generic tablet, or the flash mode interface of your shiny new phone has yet to get an official driver from its maker. In that case, you can forcibly install an existing driver package for a similar USB interface through Device Manager.

  • Open Device Manager and locate the unknown device entry.
  • Right-click on it and select Update drivers. Select Browse my computer for driver software and then choose the option named Let me pick from a list of available drivers on my computer.

  • Now select Show All Devices and click Next. On the next screen, click on the Have Disk… button.

  • At this point, you need to browse to the location where the extracted driver for a similar device is located. Pick the INF file from the list of files and select Open.

  • Now carefully choose the driver model. For example, if you’re trying to install the Fastboot mode driver for a device, select the Android Bootloader Interface from Google’s driver set. Windows might show a warning related to compatibility, but you can ignore it and continue the installation process anyway.

This method lets you force-install a signed driver without breaking its digital signature, so you don’t need to turn off driver signature enforcement on a 64-bit Windows instance.

You’ve now got the correct USB driver installed on your computer and your Android device is ready to receive instructions. Now it’s time to put it all together and run your first ADB command!

Источник

Android usb debugging driver

Platform-tools: r31.0.3
ADB: 1.0.41 (31.0.3-7562133)
Fastboot: 31.0.3-7562133
Make_f2fs: 1.14.0 (2020-08-24)
Mke2fs: 1.46.2 (28-Feb-2021)
Последнее обновление утилит в шапке: 01.08.2021

ADB (Android Debug Bridge — Отладочный мост Android) — инструмент, который устанавливается вместе с Android-SDK и позволяет управлять устройством на базе ОС Android.
Работает на всех Android-устройствах, где данный функционал не был намеренно заблокирован производителем.
Здесь и далее: PC — ПК, компьютер к которому подключено устройство.
ADB — консольное приложение для PC, с помощью которого производится отладка Android устройств, в том числе и эмуляторов.
Работает по принципу клиент-сервер. При первом запуске ADB с любой командой создается сервер в виде системной службы (демона), которая будет прослушивать все команды, посылаемые на порт 5037.
Официальная страница
ADB позволяет:

  • Посмотреть какие устройства подключены и могут работать с ADB.
  • Просматривать логи.
  • Копировать файлы с/на аппарат.
  • Устанавливать/Удалять приложения.
  • Удалять (очищать) раздел data.
  • Прошивать (перезаписывать) раздел data.
  • Осуществлять различные скрипты управления.
  • Управлять некоторыми сетевыми параметрами.

Поставляется ADB в составе инструментария разработчика Андроид (Android SDK), который, в свою очередь входит в состав Android Studio.

Если что-то неправильно, то в списке подключенных устройств (List of devices attached) будет пусто.

Скрытые команды ADB
adb -d Команда посылается только на устройство подключенное через USB.
Внимание: Выдаст ошибку, если подключено больше одного устройства.

adb -e Команда посылается на устройство в эмуляторе.
Внимание: Выдаст ошибку, если подключено больше одного эмулятора.

adb -s Команда посылается на устройство с указанным серийным номером:

adb -p Команда посылается на устройство с указанным именем:
Если ключ -p не указан, используется значение переменной ANDROID_PRODUCT_OUT.

adb devices Список всех подсоединенных устройств.

adb connect [: ] Подсоединиться к андроид хосту по протококу TCP/IP через порт 5555 (по умолчанию, если не задан).

adb disconnect [ [: ]] Отсоединиться от андроид подключенного через TCP/IP порт 5555 (по умолчанию, если не задан).
Если не задан ни один параметр, отключиться от всех активных соединений.

adb push Копировать файл/папку PC->девайс.

adb pull [ ] Копировать файл/папку девайс->PC.

adb sync [ ] Копировать PC->девайс только новые файлы.
Ключи:
-l Не копировать, только создать список.

adb shell Запуск упрощенного unix shell.
Примеры использования

adb emu Послать команду в консоль эмулятора

adb install [-l] [-r] [-s] Послать приложение на устройство и установить его.
Пример: adb install c:/adb/app/autostarts.apk Установить файл autostarts.apk лежащий в папке /adb/app/ на диске с:
Ключи:
-l Блокировка приложения
-r Переустановить приложение, с сохранением данных
-s Установить приложение на карту памяти
Установка split apk

adb uninstall [-k] Удаление приложения с устройства.
Ключи:
-k Не удалять сохраненные данные приложения и пользователя.

adb wait-for-device Ждать подключения устройства.

adb start-server Запустить службу/демон.

adb kill-server Остановить службу/демон.

adb get-state Получить статус:
offline Выключен.
bootloader В режиме начальной загрузки.
device В режиме работы.

adb get-serialno Получить серийный номер.

adb status-window Непрерывный опрос состояния.

adb remount Перемонтировать для записи. Требуется для работы скриптов, которые изменяют данные на.

adb reboot bootloader Перезагрузка в режим bootloader.

adb reboot recovery Перезагрузка в режим recovery.

adb root Перезапуск демона с правами root

adb usb Перезапуск демона, прослушивающего USB.

adb tcpip Перезапуск демона, прослушивающего порт TCP.

adb ppp [параметры] Запуск службы через USB.
Note: you should not automatically start a PPP connection. refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
Параметры:
defaultroute debug dump local notty usepeerdns

FastBoot — консольное приложение для PC. Используется для действий над разделами

fastboot devices Список присоединенных устройств в режиме fastboot.
fastboot flash Прошивает файл .img в раздел устройства.

fastboot erase Стереть раздел.
Разделы: boot, recovery, system, userdata, radio
Пример: fastboot erase userdata Стирание пользовательских данных.

fastboot update Прошивка из файла имя_файла.zip

fastboot flashall Прошивка boot + recovery + system.

fastboot getvar Показать переменные bootloader.
Пример: fastboot getvar version-bootloader Получить версию bootloader.

fastboot boot [ ] Скачать и загрузить kernel.

fastboot flash:raw boot [ ] Создать bootimage и прошить его.

fastboot devices Показать список подключенных устройств.

fastboot continue Продолжить с автозагрузкой.

fastboot reboot Перезагрузить аппарат.

f astboot reboot-bootloader Перезагрузить девайсв режим bootloader.
Перед командами fastboot можно использовать ключи:
-w стереть данные пользователя и кэш
-s Указать серийный номер устройства.
-p

Указать название устройства.
-c Переопределить kernel commandline.
-i Указать вручную USB vendor id.
-b Указать в ручную базовый адрес kernel.
-n

Указать размер страниц nand. по умолчанию 2048.

Команду logcat можно использовать с машины разработки
$ adb logcat
или из удаленного shell
# logcat Каждое сообщение лога в Android имеет тэг и приоритет
Тэг – это строка указывающая компонент системы, от которого принято сообщение (например: View для системы view)
Приоритет – имеет одно из нижеследующих значений (в порядке от меньшего к большему):
V — Verbose (Низший приоритет).
D — Debug
I — Info
W — Warning
E — Error
F — Fatal
S — Silent (Наивысший приоритет, при котором ничего не выводится).

Получить список тэгов, используемых в системе, вместе с их приоритетами можно запустив logcat. В первых двух столбцах каждого из выведенных сообщений будут указаны / .
Пример выводимого logcat сообщения:
I/ActivityManager( 585): Starting activity: Intent

Для уменьшения вывода лога до приемлемого уровня нужно использовать выражения фильтра. Выражения фильтра позволяют указать системе нужные комбинации и , остальные сообщения система не выводит.
Выражения фильтра имеют следующий формат : . где указывает нужный тэг, указывает минимальный уровень приоритета для выбранного тэга. Сообщения с выбранным тэгом и приоритетом на уровне или выше указанного записываются в лог. Можно использовать любое количество пар : в одном выражении фильтра. Для разделения пар : используется пробел.

Пример ниже выводит в лог все сообщения с тэгом «ActivityManager» с приоритетом «Info» или выше, и сообщения с тэгом «MyApp» и приоритетом «Debug» или выше:
adb logcat ActivityManager:I MyApp:D *:S
Последний элемент в выражении фильтра *:S устанавливает приоритет «silent» для всех остальных тэгов, тем самым обеспечивая вывод сообщений только для «View» и «MyApp». Использование *:S – это отличный способ для вывода в лог только явно указанных фильтров (т.е. в выражении фильтра указывается «белый список» сообщений, а *:S отправляет все остальное в «черный список»).

При помощи следующего выражения фильтра отображаются все сообщения с приоритетом «warning» или выше для всех тэгов:
adb logcat *:W

Если logcat запускается на машине разработчика (не через удаленный adb shell), можно также установить значение выражения фильтра по умолчанию задав переменную окружения ANDROID_LOG_TAGS:
export ANDROID_LOG_TAGS=»ActivityManager:I MyApp:D *:S»

Следует обратить внимание что задав переменную окружения ANDROID_LOG_TAGS она не будет работать в эмуляторе/устройстве, если вы будете использовать logcat в удаленном shell или используя adb shell logcat.
Вышеописанная команда export работает в ОС *nix и не работает в Windows.

Контроль формата вывода лога

Сообщения лога в дополнение к тэгу и приоритету содержат несколько полей метаданных. Можно изменять формат вывода сообщений показывая только конкретные поля метаданных. Для этого используется параметр -v и указывается один из ниже перечисленных форматов вывода.

brief Показывать приоритет/тэг и PID процесса (формат по умолчанию).
process Показывать только PID.
tag Показывать только приоритет/тэг.
thread Показывать только процесс:поток и приоритет/тэг.
raw Показать необработанное сообщение, без полей метаданных.
time Показывать дату, время вызова, приоритет/тэг и PID процесса.
long Показывать все поля метаданных и отдельно сообщения с пустыми строками.

При запуске logcat можно указать формат вывода используя параметр -v:
adb logcat [-v

Источник

Читайте также:  Микрофон петличка для андроида
Оцените статью