Отладка по adb
Содержание:
- ADB Shell
- Most Commonly Used ADB Commands:
- Dumpsys
- Основные команды
- How to Setup ADB
- Соединение через Wi-Fi
- Commands
- Как пользоваться?
- Most Commonly Used Fastboot Commands
- Wireless usage
- Как включить отладку по USB на Android
- Описание и установка программы
- Manually Installing ADB and Fastboot Interface
- Usage
- FAQ & Troubleshooting
- The application doesn’t work. Is there anything I should have installed?
- Do I need an unlocked bootloader or root access to use the app?
- What apps are safe to uninstall?
- What’s the difference between uninstalling and disabling?
- Why does the Uninstaller hang on some apps?
- Why does the Uninstaller fail to uninstall some apps?
- How do I regain uninstalled system apps?
- Adding adb and Fastboot to the Linux PATH
- Как пользоваться ADB run
ADB Shell
Android полноценная система Unix со своим Shell, к которому можно подключаться по adb.
adb shell
или
adb shell
Команда подключит ваш терминал к shell устройства и вы сможете взаимодействовать с ним используя Unix команды, cat, ls, df и другие, а также запускать скрипты.
Чтобы выполнить одну команду, не переходя в shell используйте команду оболочки следующим образом.
adb shell shell_command
Например,
adb shell df
Команда выше выдаст информацию о количестве свободной памяти на устройстве.
Следующая команда откроет на устройстве экран с настройками.
adb shell am start -a android.settings.SETTINGS
А две последующие через ADB включают и отключают соответственно прокси в настройках сети.
adb shell settings put global http_proxy 192.168.1.10:8888 (тут ip и порт вашего прокси) adb shell settings put global http_proxy :0 (отключает прокси)
Данные команды могут быть полезными, когда к настройкам устройства нет явного доступа, например на устройствах с голосовыми интерфейсами. Я часто пользуюсь ими при отладке Яндекс.Станции.
Most Commonly Used ADB Commands:
For the first half of the guide on “Most Important ADB and Fastboot Commands”, we will be focusing on various ADB codes.
Check ADB Connection
To check whether the device is properly connected and is in ADB, enter the below code. Until you get an alphanumeric code with the word ‘device’ next to it (see screenshot below), you cannot carry out any further operations. Also, make that device is not recognized as ‘unauthorized’. Don’t Miss: Fix Waiting for Device Error in ADB Devices

ADB Shell Command
To interact with your device’s operating system, enter the below codes. Whereas there are tons of adb shell commands, you could find the most important ones in this guide.
ADB Sideload
Using this command, you could flash (install) zip files directly from the command shell, if your recovery supports it (good news- TWRP does support). Boot your device to ‘TWRP recovery’ > Go to ‘Advanced’ > ‘Sideload’ > ‘Swipe to start sideload’. Now enter the below code: Read this detailed guide: How to Use ADB Sideload in Android
Start ADB Server
When you need to start the ADB server, in case it does not automatically “kills the daemon” and “start on a specific port”, type the below command:
Dumpsys
A tool that runs on Android devices and provides information about system services. To get a diagnostic output for all system services for the connected device, simply run adb shell dumpsys. However, this outputs far more information than typically needed. For more manageable output, specify the service to examine by including it in the command.
Exampleː Print battery stats
AC powered: false USB powered: true Wireless powered: false Max charging current: 500000 Max charging voltage: 5000000 Charge counter: 0 status: 2 health: 2 present: true level: 45 scale: 100 voltage: 3826 temperature: 240 technology: Li-poly
Основные команды
Работа с ADB осуществляется через командную строку: в адресной строке папки с установленным ADB ввести cmd и нажать Enter.

После подключения андроид-устройства в окне нужно ввести adb devices. Если ПК обнаружил смартфон, в окне появится серийный номер подключенного устройства. Надпись Online сигнализирует о его готовности принимать директивы.

Инсталляция приложений через .apk происходит через команду adb install, после написания ее в этой же строке нужно указать путь из корневого каталога к установочному файлу. Для этого его можно открыть через Проводник и скопировать путь.


Аналогично проводится удаление программ через — adb uninstall. После команды нужно указать название пакета приложения. Например, com.piriform.ccleaner, чтобы удалить программу CCleaner с телефона
Важно, что удаление проводится полностью, кэш на устройстве не остается. Если важно сохранить его, в конце следует дописать ключ -k

adb push создана для передачи файлов на Android: после самой команды необходимо написать путь к файлу на ПК и место назначения (через косую черту или слэш).

adb pull – обратная сторона, с ее помощью данные копируют на компьютер со смартфона.

Команда adb reboot выручит при проблемах к управлению телефонов – она перезагрузит гаджет. При проблемах включения андроид-устройства в режим bootloader позволит перейти введение adb reboot-bootloader. В режим восстановления вводит adb reboot recovery, но она доступна лишь на некоторых ПК.
Еще несколько полезных директив (все доступные команды можно посмотреть после ввода adb help в командую строку):
- adb connect – подключение смартфона к Wi-Fi, придется указать IP-адрес и порт смартфона.
- adb shell – открывает доступ ко всем файлам телефона.
- adb fastboot devices – запрет на принятие смартфоном любых команд, fastboot oem unlock – разблокирует загрузчик.
- adb logcat – вывод содержимого log-файла, текст нужно сохранить в текстовый файл.
- adb backup и adb restore создают бэкап и проводят восстановление данных из него.

Таким образом, с помощью адб-команд можно решить массу вопросов, которые вручную делать гораздо дольше
Важно не забыть установку Android SDK, иначе работать не получится
How to Setup ADB
Note: Setting up ADB on the computer is just half the equation since you’ll also need to do some things on the smartphone or tablet to accept the ADB commands.
Phone Setup
- Launch the Settings application on your phone.
- Tap the About Phone option generally near the bottom of the list.
- Then tap the Build Number option 7 times to enable Developer Mode. You will see a toast message when it is done.
- Now go back to the main Settings screen and you should see a new Developer Options menu you can access.
- Go in there and enable the USB Debugging mode option.
- You are partially done with the phone setup process. Next up, you will need to scroll below and follow the rest of the instructions for your particular operating system.
Follow along for the operating system on your computer.
Соединение через Wi-Fi
Обычно для тестирования программы на реальном устройстве использует USB-соединение. Предположим, кот уволок куда-то USB-кабель или расшатал USB-порт (ага, валите всё котов). В этом случае можно попробовать использовать Wi-Fi. Описанный ниже способ не гарантирует работоспособность на всех устройствах. Пробуйте.
Сначала соединитесь обычным способом через USB (не знаю, как вы собираетесь это сделать, если у вас утащили кабель и сломали порт). Включите Wi-Fi на компьютере и на устройстве.
Запустите команду:
Появится ответ.
Убедитесь, что устройство присоединено.
Ответ (у вас будет свой набор символов):
Меняем режим работы с USB на TCP/IP:
Ответ:
Теперь вам надо узнать IP-адрес вашего устройства. Пример для Nexus 7: Запускаем Настройки | О планшете | Общая информация | IP-адрес. Перепишите адрес на бумажку. Запускаем команду с этим адресом (у вас будет свой адрес).
Ответ:
Теперь можете отсоединить кабель. Отдайте его коту, пусть играет.
Проверяем, что устройство по прежнему на связи.
Ответ:
Отлично! Запускайте приложение и оно по воздуху установится на устройстве.
Учтите, что передача данных будет идти медленнее и для больших приложений будет не слишком удобно использовать данный способ. Хотя я особых тормозов не заметил для учебных примеров.
Если вам надо вернуться к старому способу, то вызываем команду:
Указанный способ очень удобен. Недаром на баше есть такие строчки:
Слава Wi-Fi! Котэ не может его перегрызть.
Звонок в техподдержку одного интернет-провайдера.
ТП(техподдержка): Добрый день! Я вас слушаю.
А (абонент): У меня тут проблема возникла.
ТП: Какая у вас проблема?
А: Я гонял кота шашкой и перерубил кабель.
Если бы абонент позаботился о настройке через Wi-Fi, то и проблемы бы не было.
Commands
The table below lists all of the supported adb commands and explains their meaning and usage.
Table 1. Available adb commands
| Category | Command | Description | Comments |
|---|---|---|---|
| Target Device | Direct an adb command to the only attached USB device. | Returns an error if more than one USB device is attached. | |
| Direct an adb command to the only running emulator instance. | Returns an error if more than one emulator instance is running. | ||
| Direct an adb command a specific emulator/device instance, referred to by its adb-assigned serial number (such as «emulator-5556»). | See . | ||
| General | Prints a list of all attached emulator/device instances. | See for more information. | |
| Prints a list of supported adb commands. | |||
| Prints the adb version number. | |||
| Debug | Prints log data to the screen. | ||
| Prints , , and data to the screen, for the purposes of bug reporting. | |||
| Prints a list of available JDWP processes on a given device. | You can use the port-forwarding specification to connect to a specific JDWP process. For example: | ||
| Data | Pushes an Android application (specified as a full path to an .apk file) to an emulator/device. | ||
| Copies a specified file from an emulator/device instance to your development computer. | |||
| Copies a specified file from your development computer to an emulator/device instance. | |||
| Ports and Networking | Forwards socket connections from a specified local port to a specified remote port on the emulator/device instance. | Port specifications can use these schemes: | |
Run PPP over USB.
Note that you should not automatically start a PPP connection. |
|||
| Scripting | Prints the adb instance serial number string. | See for more information. | |
| Prints the adb state of an emulator/device instance. | |||
| Blocks execution until the device is online — that is, until the instance state is . | You can prepend this command to other adb commands, in which case adb will wait until the emulator/device instance is connected before issuing the other commands. Here’s an example:
adb wait-for-device shell getprop Note that this command does not cause adb to wait until the entire system is fully booted. For that reason, you should not prepend it to other commands that require a fully booted system. As an example, the requires the Android package manager, which is available only after the system is fully booted. A command such as adb wait-for-device install <app>.apk would issue the command as soon as the emulator or device instance connected to the adb server, but before the Android system was fully booted, so it would result in an error. |
||
| Server | Checks whether the adb server process is running and starts it, if not. | ||
| Terminates the adb server process. | |||
| Shell | Starts a remote shell in the target emulator/device instance. | See for more information. | |
| Issues a shell command in the target emulator/device instance and then exits the remote shell. |
Как пользоваться?
Поздравляем, вы установили ADB на свой девайс! Поскольку ADB установлен в Termux, все ADB команды, которые вы хотите выполнить, нужно вводить в том же Termux’е. Скорее всего, для того, чтобы установить ADB связь между Android устройством и компьютером вы использовали USB кабель. В данном случае USB подключение работать не будет, поэтому мы будем использовать функцию “ADB по сети”. Эту функцию нужно включить на устройстве, к которому вы хотите подключиться.
В большинстве устройств “ADB по сети” можно активировать в настройках системы в разделе “Настройки разработчика”, но если такой переключатель отсутствует, то активировать данную функцию можно, подключив целевое устройство к ПК с установленным ADB и выполнив на компьютере следующую команду:
adb tcpip 5555
После выполнения этой команды можно отсоединить кабель, компьютер нам больше не нужен.
Также можно активировать функцию “ADB по сети” на том же самом устройстве, на которое вы установили ADB, если вы хотите работать только с текущим устройством.
Для работы ADB по сети необходимо, чтобы все устройства, с которыми мы будем работать, были подключены к одной и той же сети Wi-Fi.
После успешной активации сетевой функции нам необходимо узнать внутренний IP-адрес целевого устройства. Его можно узнать с помощью различных сайтов, таких как https://2ip.ua, https://2ip.ru или же посмотреть в настройках Wi-Fi на нашем девайсе. Например, у меня это адрес 192.168.0.105.
Узнав адрес, мы можем подключиться к этому устройству по ADB, для этого нужно ввести в Termux команду:
adb connect ip
Где ip — адрес, который вы узнали. У меня эта команда будет выглядеть так:
adb connect 192.168.0.105
После подключения к устройству, вы можете вводить в Termux ADB команды, как и на обычном компьютере.
Most Commonly Used Fastboot Commands
Here are some of the most commonly used Fastboot Commands.
Verify the ADB Connection
Once your device is booted to fastboot mode, enter the below command to check whether the connection is successful or not. If you see an alphanumeric code and the word fastboot written next to it (see screenshot below), it means your device is successfully connected to fastboot mode. Now you may try out other fastboot commands.
Unlock Bootloader via Fastboot
To unlock the bootloader of your device, type in any of the two codes (make sure ‘OEM Unlocking’ is enabled from the ‘Developer Options’). For most of the devices, the first code works well and fine. However, if that is not the case with you, then go for the second one. Also, note that both of these codes will wipe all your data. Make sure to create a backup before proceeding. Do Read: How to Unlock Bootloader of Any Android Device
Boot to TWRP via Fastboot
To boot a recovery file on your device, enter the below code: Don’t Miss: How to Boot into TWRP Recovery
On Redmi devices, you may also use the fastboot reboot command and at the same time, press and hold the Volume Up key. Your device will straightaway boot to TWRP.
Don’t Miss: TWRP: fastboot flash vs fastboot boot: Which command to use
Install File to Boot Partition
To flash (install) a boot file from the command shell, such as flashing magisk patched boot.img, type in the below code:
Check Current Active Slot
If you have a dual A/B Partition device, then you could check the current active partition via the following command:
fastboot getvar all
After executing this command, refer to the (bootloader) current-slot: section.
Change Active Partition
If your device is A/B Partition, and you want to switch slots, say from A to B, type the below command: For all the A/B partition Commands, refer to this guide: How to Check and Change Current Active Slot on Android.
To reboot your device to Android OS, enter the below code:
Wireless usage
adb is usually used over USB. However, it is also possible to use over
Wi-Fi, as described here.
-
Connect Android device and adb host computer
to a common Wi-Fi network accessible to both.
We have found that not all access points
are suitable; you may need to use an access point
whose firewall is configured properly to support adb. - Connect the device with USB cable to host.
-
Make sure adb is running in USB mode on host.
$ adb usb restarting in USB mode
-
Connect to the device over USB.
$ adb devices List of devices attached ######## device
-
Restart host adb in tcpip mode.
$ adb tcpip 5555 restarting in TCP mode port: 5555
-
Find out the IP address of the Android device:
Settings -> About tablet -> Status -> IP address.
Remember the IP address, of the form . -
Connect adb host to device:
$ adb connect #.#.#.# connected to #.#.#.#:5555
-
Remove USB cable from device, and confirm you can still access device:
$ adb devices List of devices attached #.#.#.#:5555 device
You’re now good to go!
If the adb connection is ever lost:
Как включить отладку по USB на Android
Отладка по USB включается в настройках системы в разделе Параметры разработчика.
На Android 4.2 и выше раздел параметров разработчика по умолчанию скрыт. Чтобы сделать его видимым, перейдите в Настройки – О телефоне и нажмите Номер сборки (в редких случаях Номер модели) 7 раз (в редких случаях 10). На экране отобразится уведомление «Теперь вы разработчик!«
В настройках должен появиться пункт меню Параметры разработчика, найдите в нем пункт Отладка USB и активируйте его.
На некоторых устройствах раздел с параметрами разработчика может располагаться в других разделах настроек или иметь другое название.
Подробнее о параметрах разработчика на устройствах Android можно ознакомится на .
Описание и установка программы
Аббревиатура ADB означает Android Debug Bridge – отладочный мост Андроид. Он принадлежит к среде разработки Android SDK, который необходимо скачать на официального разработчика. На главной странице приведены версии для всех ОС – Windows, Linux и Mac.

Перед установкой Android Debug Bridge потребуется установить пакет Java для разработчиков. Скачать его можно на сайте Oracle. На странице необходимо принять лицензионное соглашение Accept License Agreement и загрузить версию Windows x86 (для 32-разрядных систем) или Windows x64 (для 64-разрядных систем). После скачивания, следуя советам инсталлятора, установить пакет на компьютер.

Подключая смартфон к ПК, пользователь обычно преследует цель перебросить элементы, скинуть apk-файлы или оперативно почистить память устройства. АДБ, помимо этого, позволяет управлять андроид-устройством через компьютер – перепрошивать, устанавливать программы и многое другое.

Manually Installing ADB and Fastboot Interface
Do this when ADB and fastboot commands are not working or your computer didn’t recognize devices when checking through ADB devices and fastboot devices command. This is a normal case with the recent version of Windows 10 and with some Oneplus devices.
prerequisite
- Disable driver signature enforcement: open a PowerShell window and enter (and off when done).
- Install Oneplus Driver, select Install this driver security prompt when asked.
- Open device manager and look for Android Phone and Android Bootloader Interface if they show up somehow.

- From “Action” select Add legacy hardware.

- Click Next.

- Choose Install the hardware that I manually select from a list (Advanced).

- Select Android Phone.

- Unless you’re connecting a device of other manufacturer such as Xiaomi device, Select Google, Inc. and choose Android Bootloader Interface. (Repeat the steps for Android ADB Interface).

- The wizard will install the software, after that the ADB and Fastboot tools should work fine with your phone. remember not all of the phones are supported Fastboot, you should check your specific device.

That’s all for now if you think we missed something you can always drop a comment below.
Article Contents
Usage
Connect device
Tip:
- For some devices, you may have to enable MTP on the device, before ADB will work. Some other devices require enable PTP mode to work.
- Many devices’ udev rules are included in , so if you have this installed, the following steps may not be necessary.
- Make sure your USB cable is capable of both charge and data. Many USB cables bundled with mobile devices do not include the USB data pin.
To connect to a real device or phone via ADB under Arch, you must:
- You might want to install if you wish to connect the device to the proper entries.
- plug in your android device via USB.
- Enable USB Debugging on your phone or device:
- Jelly Bean (4.2) and newer: Go to Settings > About Phone tap Build Number 7 times until you get a popup that you have become a developer. Build number may be under a menu called Software info on newer Android OS versions. Then go to Settings > Developer > USB debugging and enable it. The device will ask to allow the computer with its fingerprint to connect. Allowing it permanently will copy onto the devices folder.
- Older versions: This is usually done from Settings > Applications > Development > USB debugging. Reboot the phone after checking this option to make sure USB debugging is enabled.
If ( shows it as , or it is visible and accessible in IDE), you are done. Otherwise see the instructions below.
Figure out device IDs
Each Android device has a USB vendor/product ID. An example for HTC Evo is:
vendor id: 0bb4 product id: 0c8d
Plug in your device and execute:
$ lsusb
It should come up something like this:
Bus 002 Device 006: ID 0bb4:0c8d High Tech Computer Corp.
Adding udev rules
/etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="", MODE="0660", GROUP="adbusers"
SUBSYSTEM=="usb",ATTR{idVendor}=="",ATTR{idProduct}=="",SYMLINK+="android_adb"
SUBSYSTEM=="usb",ATTR{idVendor}=="",ATTR{idProduct}=="",SYMLINK+="android_fastboot"
Then, to reload your new udev rules, execute:
# udevadm control --reload-rules
Make sure you are member of user group to access devices.
Detect the device
After you have setup the udev rules, unplug your device and replug it.
After running:
$ adb devices
you should see something like:
List of devices attached HT07VHL00676 device
If adb still does not detect the device after plugging your device back in, kill and restart the adb server as root and check devices again:
# adb kill-server # adb start-server $ adb devices
If adb devices still shows «unauthorized» next to your device, make sure that that device has debugging permission allowed on the device itself. A ‘Allow USB Debugging?’ dialog should be presented when you physically connect the device. Select ‘Always Allow…», then tap «OK». If the dialog was never presented, try Settings > Developer Options > Revoke USB Debugging Authorizations (then «OK»), and repeat the steps in this section. If you still don’t see the ‘Allow USB Debugging?’ dialog, and the device is listed as unauthorized, then enter the Developer Options on the device and first uncheck «USB Debugging» and then check it again.
Transferring files
You can now use adb to transfer files between the device and your computer. To transfer files to the device, use
$ adb push <what-to-copy> <where-to-place>
To transfer files from the device, use
$ adb pull <what-to-pull> <where-to-place>
Also see .
Backup and restore
You can also backup and restore your device with adb. Moreover, no root is required to follow the process. The commands below led to backup your device to a single file which can also be successively restored.
The command to create a backup is
$ adb backup -apk -shared -all -f backupFileName.ab
The command parameters list is
adb backup
Then confirm the process on your device’s display and provide a password whether a backup password has been set before.
The command to restore a previous backup is
$ adb restore mybackup.ab
Note: Remember that restoring replaces your device contents with the backup.
FAQ & Troubleshooting
The application doesn’t work. Is there anything I should have installed?
Yes, the Xiaomi ADB/Fastboot Tools was developed in Kotlin for the Java Virtual Machine so it needs the JRE to run, version 11 or later.
Linux
Do I need an unlocked bootloader or root access to use the app?
The Flasher, Wiper and Camera2 modules in Fastboot mode require an unlocked bootloader but everything else works without rooting or unlocking.
What apps are safe to uninstall?
All applications in the list are safe to uninstall. You might lose access to some services but the device will keep working just fine. Some other apps, like Gallery or Security, aren’t listed because uninstalling them would soft brick your device.
What’s the difference between uninstalling and disabling?
The OS sees which apps have been disabled and it can re-enable them whenever it pleases but it cannot do the same with uninstalled apps. Apps you disable may come back anytime and you can also re-enable them in the Settings, while uninstalled apps will only return if you reinstall them (using ADB or an APK) or factory reset the device. There’s no difference when it comes to their impact on the system, however, functionality or performance wise, so I recommend uninstalling apps which you believe pose a security/privacy risk and disabling everything else.
Why does the Uninstaller hang on some apps?
There are some apps Global MIUI doesn’t let you uninstall but Chinese MIUI does. If you try to uninstall an app like that, the tool might hang. If that happens, close the tools, disconnect your device, uninstall the app manually, then launch the tools again and reconnect your device to proceed.
Why does the Uninstaller fail to uninstall some apps?
If the attempted uninstallation of an application results in a failure or anything other than success, that isn’t a bug or an issue within the program. It means that ADB was not able to uninstall the application and there is nothing we can do about it. Similary, if an uninstallation has no result at all (neither success nor failure), that means that ADB didn’t report anything, therefore the program cannot derive any information about the successfulness of the uninstallation.
How do I regain uninstalled system apps?
Simply reinstall them using the Reinstaller module when connected in ADB mode. In case the Reinstaller module is disabled because your device doesn’t support it, you must perform a factory reset.
No. Fastboot ROM flashing is available so MiFlash can mostly be replaced but implementing EDL flashing or bootloader unlocking on MIUI would only make the program unnecessarily complex.
Adding adb and Fastboot to the Linux PATH
I will be using Ubuntu for this tutorial, via command line only. You can edit the .bashrc file via the GUI, but you will need to navigate to the root of your home directory and press Ctrl+H. Make sure you have the platform-tools downloaded and extracted.
Step 2
You’ll need to edit your .bashrc file. Go back to your home directory and run the following command.
If you prefer to use vi or gedit you can instead.
Step 3
Add the following line to the end of the .bashrc file. Be careful editing this file, do not add anything else or change anything else.
And type
to check if it works. If it gives you an error (usually on 64-bit computers), install the packages glibc.i686 and libstdc++ and it should work.
Как пользоваться ADB run
Чтобы понять, как использовать утилиту, необходимо познакомиться с установкой и основными командами. Подключение к гаджету осуществляется при помощи компьютера и USB кабеля или по беспроводной сети.
Понять, что подключение состоялось, можно осуществив ввод adb devices. Затем должно появиться сообщение: «List of devices attached«, говорящее о том, что соединение произошло. Подключение через wi-fi происходит при помощи adb wireless. На мобильном устройстве должны стоять root права.
Для работы необходимо включить отладку по USB на гаджете. Обычно этот пункт находится в настройках. Если его нет, то можно его поискать в параметрах разработчика. Это меню скрыто, для его включения следует найти строчку с номером сборки в настройках Андроид, несколько раз кликнуть на нее (от 5 до 10 раз). Где-то после половины нажатий появится уведомление, что вы все делаете правильно, а потом будут предоставлены права разработчика. Затем можно вернуться к настройкам, где появится пункт «параметры разработчика». Здесь и происходит включение отладки.
Утилита обладает рядом положительных качеств:
- Простота установки.
- Простое управление.
- Легкая проверка обновлений.
Как использовать буфер обмена в Windows
Установка
Прежде чем установить ADB, ее необходимо скачать, это можно сделать бесплатно. Скачать ADB можно на сайте 4pda. Официальный ресурс не дает возможности скачать утилиту отдельно, а только всем пакетом Android SDK. Установка программы происходит с помощью стандартного мастера установки.
Весь процесс прост и интуитивно понятен. Сам установщик предлагает подсказки, направляя все действия.
После этого нужно установить драйвера для своего мобильного устройства, иначе приложение не увидит устройство. Проще всего воспользоваться утилитой для автоматической установки Adbdrivers. Но также можно скачать драйвера для Windows 7, 8 или 10 с официального сайта производителя.
В случае отсутствия установщика, драйвера можно установить вручную, для этого:
- Запускаем Диспетчер устройств. Найти можно в панели управления или воспользоваться поиском в системе
- Ищем неопределившееся устройство, или ваш смартфон. Кликаем правой клавишей мыши на устройстве и выбираем Обновить драйвер
- В открывшемся окне выбираем пункт – Выполнить поиск на компьютере, после чего указываем путь к папке и подтверждаем.
Обзор интерфейса и команды ADB run
Рассмотрим все пункты меню, предложенные программой, принцип их работы:
- Device attached? – отвечает за соединения ПК и смартфона, но обязательно необходимо включить отладку USB.
- Move – отвечает за перемещение файлов с ноутбука на смартфон. Здесь присутствует как автоматическая, так и ручная возможность перемещения.
- Install Android App to Device – дает возможность устанавливать приложения, при этом возможны варианты сохранения и перемещение на карту памяти.
- Reboot Device – разнообразные режимы перезагрузки Андроида:
- Reboot – стандартная;
- Reboot Bootloader – перезагрузка в загрузчик bootloader;
- Reboot Recovery – перезагрузка в меню recovery.
- Fastboot – прошивка, перепрошивка системы. Все настройки заданы автоматически.
- Unlock Gesture Key – разблокировщик графического ключа, также справляется с пин кодами, фейс кодами.
- Manual – позволяет прописывать команды вручную.
- Check Update – проверка новой версии программы.
- Intsall Bootanimation – устанавливает и изменяет анимацию при включении устройства.
- Memory and Partitio – знакомит с блоками и разделами Андроида.
- Run Script – работа со скриптами.
- Backup – создание резервной копии.
- Odex – odex-ирование прошивки, учитывая разнообразные параметры.
-
Screnshot/Record – скриншоты, возможность записи видео.
- Exit – соответственно выход из программы.
Прошивка телефона посредством ADB run
Программа позволяет менять прошивку гаджета. Для этого достаточно ее установить, подключиться к ПК и воспользоваться утилитой Fastboot. Файлы, которые следует прошить должны находиться в одной папке с утилитой.
Для начала необходимо перевести устройство в режим bootloader при помощи меню.
Затем необходимо разархивировать заранее скачанные файлы с прошивкой. После этого следует выбрать пункт Run SCRIPT и в открывшееся окно поместить файлы прошивки и закрыть его. Нажать на Enter. Прошивка началась. Пока идет процесс нельзя вынимать кабель из телефона или компьютера.
Программа дает возможность перепрошить поэтапно все разделы или только некоторые:
- sуstem;
- cache;
- data;
- recovery.