Ошибка cannot find adb fastboot

tehadm


  • #21

В последней версии при запуске появляется ошибка: Error can’t find adb/fastboot. Способ решения очень простой:

  1. Скачиваем последнюю версию ADB (на момент создания поста).
  2. Распаковываем архив с ADB.
  3. Скачиваем последнюю версию Xiaomi ADB/Fastboot Tools и помещаем в папку с ADB. Запускаем Xiaomi ADB/Fastboot Tools. Все)
  • tools_r29.0.2-windows.zip

    2,2 МБ

    · Просмотры: 125

Последнее редактирование: 07.08.2019

  • #22

я все сделал по инструкции… но программа при запуске висит в режиме looking for devices и дальше не идет. в чем может быть проблема?

tehadm


  • #23

я все сделал по инструкции… но программа при запуске висит в режиме looking for devices и дальше не идет. в чем может быть проблема?

Где у вас это висит?
Вы Отладку по usb включили?

  • #24

да отладку конечно включил..когда запускаю программу там идет как бы загрузка, она ищет устройство, и дальше ничего не происходит она так и висит.

  • Снимок.PNG

    Снимок.PNG

    62,1 КБ

    · Просмотры: 26

tehadm


  • #25

да отладку конечно включил..когда запускаю программу там идет как бы загрузка, она ищет устройство, и дальше ничего не происходит она так и висит.

Попробуйте эту версию:

  • XiaomiADBFastbootTools.zip

    18 МБ

    · Просмотры: 111

  • #26

Ура все заработало, спасибо!!!

  • #27

Огромное Вам спасибо за инструкцию! Все, какие можно сайты перебрал. Один единственный работающий пост. На 8 pro работает.

tehadm


  • #28

Огромное Вам спасибо за инструкцию! Все, какие можно сайты перебрал. Один единственный работающий пост. На 8 pro работает.

На любом аппарате Xiaomi работает данный способ;).

  • #29

Скачивал все версии jar файла, скачивал jarfix, ADB устанавливал, но программа не видит телефон. Подскажите, что ещё сделать? Система Windws 8.1

tehadm


  • #30

Скачивал все версии jar файла, скачивал jarfix, ADB устанавливал, но программа не видит телефон. Подскажите, что ещё сделать? Система Windws 8.1

А вы скачивали самую последнюю версию программы? На телефоне отладку включили?

  • #31

Скачивал разные программы. И ява и просто под винду. Судя по всему проблема была в версии винды. Попробовал под виндовс 10, после установки галочки «настройки безопасности» на телефоне появилось окно на сопряжение и программа для виндовс стала видеть телефон. Но она не смогла ничего удалить. Продолжу ещё с этим компьютером экспериментировать, установлю яву и попробую jar файл.

tehadm


  • #32

Скачивал разные программы. И ява и просто под винду. Судя по всему проблема была в версии винды. Попробовал под виндовс 10, после установки галочки «настройки безопасности» на телефоне появилось окно на сопряжение и программа для виндовс стала видеть телефон. Но она не смогла ничего удалить. Продолжу ещё с этим компьютером экспериментировать, установлю яву и попробую jar файл.

Очень странно. Потому что я на чистую систему все запускал. Программа видела телефон и удаляла. Я даже драйвера сам не ставил.

  • #33

Я не смог открыть jar файл, видимо в системе нет явы. Сегодня установлю и попробую.
Для информации телефон Redmi 4x, MIUI Global11.0.2

tehadm


  • #34

Я не смог открыть jar файл, видимо в системе нет явы. Сегодня установлю и попробую.
Для информации телефон Redmi 4x, MIUI Global11.0.2

JDK ставить надо обязательно! Без него ни как. Могу попробовать помочь удаленно по teamview.

  • #35

С jar файлом так и не удалось ничего достичь, но файл под windows сработал хорошо. Всё определилось, часть программ удалил.

tehadm


  • #36

но файл под windows сработал хорошо

К сожалению автор уже давно перестал разрабатывать данное приложение под windows. Пишет на java. Так что возможно, вы не все приложения сможете удалить.

С jar файлом так и не удалось ничего достичь

Попробуйте удалить JDK. Почистить ПК, тем же Cleaner. И по новой поставить.
Я вот винду на ПК переустанавливал. Поставил сразу JDK и подключил девайс, все завелось без проблем. Может что-то где-то упускаете?

  • #37

Сколько не пробовал — так ничего и не получилось… XiaomiADBFastbootTools не запускается. тел.-Xiaomi Mi9T

  • 2020-01-18_084552.jpg

    2020-01-18_084552.jpg

    136,4 КБ

    · Просмотры: 15

  • Screenshot_2020-01-18-08-45-14-049_com.android.settings.png

    Screenshot_2020-01-18-08-45-14-049_com.android.settings.png

    190,2 КБ

    · Просмотры: 13

tehadm


  • #38

Сколько не пробовал — так ничего и не получилось… XiaomiADBFastbootTools не запускается. тел.-Xiaomi Mi9T

XiaomiADBFastbootTools у вас запустился. Программа не видит телефона.

У вас есть еще ПК? Ну или у знакомых, на работе? Попробуйте там это сделать. Интернет не нужен. JDK и архив с программой из шапки.

  • #39

XiaomiADBFastbootTools у вас запустился. Программа не видит телефона.

У вас есть еще ПК? Ну или у знакомых, на работе? Попробуйте там это сделать. Интернет не нужен. JDK и архив с программой из шапки.

Спасибо буду еще пробовать… Фарворвер может повлиять? На всех компах стоит Widows 7 Firewall Control.

tehadm


  • #40

Спасибо буду еще пробовать… Фарворвер может повлиять? На всех компах стоит Widows 7 Firewall Control.

Попробуйте его отрубить. Может и поможет.

mexan

  • #21

В последней версии при запуске появляется ошибка: Error can’t find adb/fastboot. Способ решения очень простой:

  1. Скачиваем последнюю версию ADB (на момент создания поста).
  2. Распаковываем архив с ADB.
  3. Скачиваем последнюю версию Xiaomi ADB/Fastboot Tools и помещаем в папку с ADB. Запускаем Xiaomi ADB/Fastboot Tools. Все)
  • tools_r29.0.2-windows.zip

    2,2 МБ

    · Просмотры: 124

Последнее редактирование: 07.08.2019

  • #22

я все сделал по инструкции… но программа при запуске висит в режиме looking for devices и дальше не идет. в чем может быть проблема?

mexan

  • #23

я все сделал по инструкции… но программа при запуске висит в режиме looking for devices и дальше не идет. в чем может быть проблема?

Где у вас это висит?
Вы Отладку по usb включили?

  • #24

да отладку конечно включил..когда запускаю программу там идет как бы загрузка, она ищет устройство, и дальше ничего не происходит она так и висит.

  • Снимок.PNG

    Снимок.PNG

    62,1 КБ

    · Просмотры: 26

mexan

  • #25

да отладку конечно включил..когда запускаю программу там идет как бы загрузка, она ищет устройство, и дальше ничего не происходит она так и висит.

Попробуйте эту версию:

  • XiaomiADBFastbootTools.zip

    18 МБ

    · Просмотры: 108

  • #26

Ура все заработало, спасибо!!!

  • #27

Огромное Вам спасибо за инструкцию! Все, какие можно сайты перебрал. Один единственный работающий пост. На 8 pro работает.

mexan

  • #28

Огромное Вам спасибо за инструкцию! Все, какие можно сайты перебрал. Один единственный работающий пост. На 8 pro работает.

На любом аппарате Xiaomi работает данный способ.

  • #29

Скачивал все версии jar файла, скачивал jarfix, ADB устанавливал, но программа не видит телефон. Подскажите, что ещё сделать? Система Windws 8.1

mexan

  • #30

Скачивал все версии jar файла, скачивал jarfix, ADB устанавливал, но программа не видит телефон. Подскажите, что ещё сделать? Система Windws 8.1

А вы скачивали самую последнюю версию программы? На телефоне отладку включили?

  • #31

Скачивал разные программы. И ява и просто под винду. Судя по всему проблема была в версии винды. Попробовал под виндовс 10, после установки галочки «настройки безопасности» на телефоне появилось окно на сопряжение и программа для виндовс стала видеть телефон. Но она не смогла ничего удалить. Продолжу ещё с этим компьютером экспериментировать, установлю яву и попробую jar файл.

mexan

  • #32

Скачивал разные программы. И ява и просто под винду. Судя по всему проблема была в версии винды. Попробовал под виндовс 10, после установки галочки «настройки безопасности» на телефоне появилось окно на сопряжение и программа для виндовс стала видеть телефон. Но она не смогла ничего удалить. Продолжу ещё с этим компьютером экспериментировать, установлю яву и попробую jar файл.

Очень странно. Потому что я на чистую систему все запускал. Программа видела телефон и удаляла. Я даже драйвера сам не ставил.

  • #33

Я не смог открыть jar файл, видимо в системе нет явы. Сегодня установлю и попробую.
Для информации телефон Redmi 4x, MIUI Global11.0.2

mexan

  • #34

Я не смог открыть jar файл, видимо в системе нет явы. Сегодня установлю и попробую.
Для информации телефон Redmi 4x, MIUI Global11.0.2

JDK ставить надо обязательно! Без него ни как. Могу попробовать помочь удаленно по teamview.

  • #35

С jar файлом так и не удалось ничего достичь, но файл под windows сработал хорошо. Всё определилось, часть программ удалил.

mexan

  • #36

но файл под windows сработал хорошо

К сожалению автор уже давно перестал разрабатывать данное приложение под windows. Пишет на java. Так что возможно, вы не все приложения сможете удалить.

С jar файлом так и не удалось ничего достичь

Попробуйте удалить JDK. Почистить ПК, тем же Cleaner. И по новой поставить.
Я вот винду на ПК переустанавливал. Поставил сразу JDK и подключил девайс, все завелось без проблем. Может что-то где-то упускаете?

  • #37

Сколько не пробовал — так ничего и не получилось… XiaomiADBFastbootTools не запускается. тел.-Xiaomi Mi9T

  • 2020-01-18_084552.jpg

    2020-01-18_084552.jpg

    136,4 КБ

    · Просмотры: 15

  • Screenshot_2020-01-18-08-45-14-049_com.android.settings.png

    Screenshot_2020-01-18-08-45-14-049_com.android.settings.png

    190,2 КБ

    · Просмотры: 13

mexan

  • #38

Сколько не пробовал — так ничего и не получилось… XiaomiADBFastbootTools не запускается. тел.-Xiaomi Mi9T

XiaomiADBFastbootTools у вас запустился. Программа не видит телефона.

У вас есть еще ПК? Ну или у знакомых, на работе? Попробуйте там это сделать. Интернет не нужен. JDK и архив с программой из шапки.

  • #39

XiaomiADBFastbootTools у вас запустился. Программа не видит телефона.

У вас есть еще ПК? Ну или у знакомых, на работе? Попробуйте там это сделать. Интернет не нужен. JDK и архив с программой из шапки.

Спасибо буду еще пробовать… Фарворвер может повлиять? На всех компах стоит Widows 7 Firewall Control.

mexan

  • #40

Спасибо буду еще пробовать… Фарворвер может повлиять? На всех компах стоит Widows 7 Firewall Control.

Попробуйте его отрубить. Может и поможет.

@nocops321

Issues:
When launching the XiaomiADBFastbootTools.jar, user receive error: can’t find adb/fastboot.

Pre-conditions:
Linux Mint 19
Java Run-time Environment is installed
Downloaded XiaomiADBFastbootTools-6.8.1-Linux.zip
ADB installed
Android SDK installed.

Steps:

  1. Extract .zip to ~/Home
  2. Navigate to ~/Home/XiaomiADBFastbootTools-6.8.1-Linux
  3. Right click on XiaomiADBFastbootTools.jar
  4. Select Properties.
  5. Select Permissions.
  6. Select the check box «Allow executing file as program»
  7. Run XiaomiADBFastbootTools.jar

Notice:
Once the user executes the .jar program, the user receives error message «Error: Can’t find ADB/Fastboot»

@nocops321

Error

@Szaki

Did you read the FAQ / troubleshooting section on the front page? My best guess is that you don’t have Fastboot installed and the app cannot see the included binaries because double clicking the JAR will set the working directory to /home/user/ instead of the directory of the JAR. The solution is mentioned in the FAQ.

@vlakoff

That’s an issue I was also encountering, and the solution is quite easy: take the *.exe and *.zip files from the bin folder, and move them to the same folder as the *.jar file.

I’m on Windows, and I run the program by double-clicking on the *.jar file.

Maybe a noticeable amount of people are encountering the same issue? How about making XAFT look into the bin folder in addition?

@Szaki

@vlakoff

My mistake then.
I did encounter the «missing adb/fastboot» error previously, but probably I had used the *.jar only.

I confirm the «bin» lookup works. Thanks for clarifying.

@nocops321

I can confirm that placing the bin and .jar in /Home/user worked for me

On Thu, Nov 28, 2019 at 7:34 AM vlakoff ***@***.***> wrote:
My mistake then.
I did encounter the «missing adb/fastboot» error previously, but probably
I had used the *.jar only.

I confirm the «bin» lookup works. Thanks for clarifying.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#108?email_source=notifications&email_token=ACPQNENTZDK6S3RQII74FRTQV7QHPA5CNFSM4JR4UPFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFM5QWY#issuecomment-559536219>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACPQNEPW77UE5VQ4G5527CDQV7QHPANCNFSM4JR4UPFA>
.

ADB and Fastboot are amazing command-line tools that let your computer connect with your Android device. ADB can communicate with your phone to debug and make changes. If you are getting “ADB is not recognized” or “ADB command not found”, or “Fastboot is not recognized” error while trying to use ADB commands, here are some easy fixes to make ADB detect your device.

Below is a list of just a few things that you can do using ADB commands.

  • Change Android device name
  • Uninstall system apps without root
  • Turn Safe Mode On or Off
  • Unlock Android bootloader

Possible Reasons behind ADB Error

There may be various reasons why you are encountering the “adb is not recognized…” error in the Command Prompt. Depending on the scenario, the error message you get may differ. Below is a screenshot of the error that deliberately I recreated on my Windows 10 PC.

adb command not found

‘adb’ is not recognized as an internal or external command, operable program or batch file.

‘adb’ is not recognized as an internal or external command react-native.

The command a.exe was not found, but does exist in the current location.

or

The command adb was not found, but does exist in the current location.

‘adb’ is not recognized as an internal or external command android studio.

If you are using Windows PowerShell, you’ll get the following error.

adb is not recognized error

ADB : The term ‘adb’ is not recognized as the name of a cmdlet, function, script file, or operable program.

‘adb’ command not found

‘fastboot’ command not found

‘fastboot’ is not recognized as an internal or external command, operable program or batch file.

So, if you’re getting the “adb is not recognized as an internal or external command” error in the cmd window, it could be due to one of the following reasons.

  • Many people think that ADB and Fastboot are present on their Windows PC by default. The reality is, you must download and set up the ADB and Fastboot drivers additionally.
  • You may also get the “ADB command not found” error if you have an outdated version of ADB and Fastboot drivers. Installing the latest Android SDK Platform-tools on your PC might fix the problem.
  • If you are trying to run ADB command from a location where ‘adb.exe’ and ‘fastboot.exe’ are not present.
  • You haven’t set up system-wide ADB and Fastboot on your Windows 10 PC. That’s to say, you haven’t set the correct path under User variables or System variables.
  • In case you are trying to flash an OTA update.zip, a factory image, or a custom recovery image (twrp.img, for instance), make sure you have saved the files to flash in the ‘platform-tools‘ folder along with ‘adb.exe’, ‘fastboot.exe’, etc.

In case you are getting ‘adb or fastboot command not found error’ on Mac, read my tutorial to solve the issue.

Now that we know what could be the reason behind the ‘adb’ is not recognized as an internal or external command error, let’s try to solve the problem.

Must Read: Use ADB Commands on Android Devices without Root

Fix 1: Download Latest SDK Platform Tools

If you have installed Koush’s Universal ADB Drivers, Minimal ADB and Fastboot, 15 seconds ADB Installer, or Minimal ADB Setup, it’s most likely that you have an outdated version of ADB and Fastboot drivers on your Windows PC. Moreover, most of such tools are unsafe as they may contain a Trojan virus.

You must remove and uninstall any such 3rd-party drivers if you have them installed. The best and safest source to download the latest ADB and Fastboot driver is Google itself. I would recommend you download the latest version of Android SDK Platform Tools zip for Windows directly from Google servers. In case you have a very old version of Platform-tools, you should update them.

Fix 2: Execute ADB Command from the ‘platform-tools’ Folder

Since the official ADB and Fastboot drivers are not installer files, you are supposed to direct the Command Prompt to the exact path or location of the ‘platform-tools‘ directory. Now, there are 3 ways to do that.

  1. Open the ‘platform-tools‘ or the folder that contains the ADB and Fastboot files. Click in the folder address bar, type “cmd” and press the Enter key.type cmd in file explorer address bar to launch adb command
  2. Open the ‘platform-tools‘ folder. Click on the file explorer’s File tab and select Open Windows PowerShell.open windows powershell in folder
  3. While in the ‘platform-tools‘ folder, hold the Shift key and right-click at an empty or white space (highlighted with yellow) in the folder window. Select the Open PowerShell window here option from the context menu. If you want, you can add a permanent option to launch the command prompt to the Windows context menu.open powershell window context menu

Fix 3: Use ‘platform-tools’ Folder Path in CMD

Suppose you have saved the ABD and Fastboot drivers in the C Drive and you are trying to run an ADB command by launching the Command Prompt on your Desktop screen you’ll get the ‘adb’ is not recognized as an internal or external command error.

There’s a simple workaround to make the ADB command not found error go away by using cd or chdir (change directory) command. This command tells the Command Prompt to trigger ADB or Fastboot from a given path. Just launch the command window and type cd followed by the platform-tools folder path. as shown below.

cd c:technasticplatform-tools

If you don’t know the path of the folder, here are 7 ways to find the path of a file or folder on Windows. As you can see in the screenshot below, when I executed the adb devices command I got the following result.

'adb' is not recognized as an internal or external command, operable program or batch file.

cd command to change path to adb and fastboot

However, when I tried cd c:technasticplatform-tools followed by adb devices, there ADB is not found error disappeared.

Fix 4: Add a User or System Variable Path for ADB and Fastboot

Although the CD method gives the expected result, I find it a bit time taking as you need to type the folder path every time you use ADB or ADB Shell commands. The easiest way to access ADB and Fastboot universally from any screen on your Windows PC is to set up system-wide  ADB and Fastboot.

This method involves adding System or User Variables for the path of the ‘platform-tools‘ folder and below we’ll see how to do that.

  1. Open Advanced system settings on your Windows PC. You can go to those settings in 3 ways.
    1. Type ‘Advanced system settings‘ in the Windows search bar and launch it.advanced system settings windows 10
    2. Right-click on This PC found on the right pane in the File Explorer window and click on Properties> Advanced system settings.windows pc system properties
    3. Open the Control panel and navigate to System and Security> System> Advanced system settings.
  2. Once you get to the System Properties pop-up window, click on Environment Variables.windows 10 system properties
  3. A new pop-up window named Environment Variables will appear. Click on any item under User variables or System variables and click on New.system variables windows 10
  4. When the New User/System Variable pop-up appears, type “Path” under Variable name, then click on Browse Directory. Navigate to the ‘platform-tools‘ folder and click on the OK button.creating new system variable windows 10
  5. Finally, click on OK to add the path variable.
  6. When the new path variable is added, don’t forget to click on OK on the Environment Variables window to save it.

Done! You have successfully set up system-wide ADB and Fastboot on your Windows PC. Now, you are all set to execute ADB or Fastboot commands from any screen without navigating to the ‘platform-tools’ folder.

Fix ‘adb.exe: no devices/emulators found’ Error

adb.exe: no devices found error in command prompt

If you are getting adb.exe: no devices/emulators found error it means that the ADB daemon is unable to detect your device. It might be due to the following reasons.

  1. Your Android phone or tablet is not connected to the computer.
  2. You haven’t turned on USB debugging from the Developer options on your device.

Take care of the above things, reconnect your device and try again. The error should have gone way.

Bonus Tip

In order that your Windows computer can communicate with your Android device, you must keep USB debugging enabled on your device. Not just that, don’t forget to extend the screen timeout duration. As soon as you run the first ADB command, you’ll be prompted to Allow USB debugging on your device. You must select ‘Allow‘ to authorize ADB.

allow usb debugging on computer

Launch the Command Prompt or Windows PowerShell again to check whether the ADB is not recognized… error is fixed or not. Try any of the following commands:

adb
adb devices
adb version

command to check adb version

Fix Fastboot is not Recognized Error

The fixes I suggested above to solve ADB or ADB command not recognized error will also fix the following issue.

'fastboot' is not recognized as an internal or external command, operable program or batch file.

However, if you’re still getting the Fastboot is not recognized error while flashing TWRP.img file, a factory image, or root your Android device, here’s how to fix it. The solution should also work if Fastboot is not detecting a connected device.

  1. First of all, make sure you have downloaded the SDK Platform tools from above and extracted the downloaded zip file.
  2. Open the ‘platform-tools‘ folder.
  3. Now, copy or move the files you want to flash to your Android device to the same folder where ‘adb.exe‘ and ‘fastboot.exe‘ files are present.twrp.img file in adb fastboot folder
  4. Reboot your Android device into the Fastboot Mode using the following command.
    adb reboot fastboot
  5. While your device is in Fastboot Mode, use a compatible USB cable to connect it to the PC.
  6. Then launch a command window from the ‘platform-tools‘ folder. I have already described 3 ways to do that above.
  7. It’s time now to execute the following command.
    fastboot devices
  8. If you get the list of attached devices in the command window, it means everything is fine. However, if encounter any of the following issues, try plugging out the USB cable and insert it again. If it still doesn’t help, try to reboot your phone and PC and try again.
    • Fastboot not detecting device
    • Fastboot devices not showing in cmd
    • Fastboot waiting for device

The Fastboot is not recognized error should be gone.

If you are still getting any ADB or Fastboot related issues, please let us know!

Read Next: How to Disable Talkback on Android

Сегодня пользователи телефонов хранят в памяти гаджетов огромное количество информации – фото, фильмы, музыку. Нередко владельцы сталкиваются с тем, что объема постоянного накопителя оказывается недостаточно. Отчасти проблема решается использованием microSD-карты. Однако многие приложения в любом случае требуют места в основном хранилище. При этом в памяти остается множество предустановленных приложений, которые не используются и только напрасно занимают место.

Оглавление

  • 1 Xiaomi Fastboot Tools где скачать
  • 2 Xiaomi Fastboot Tools: инструкция
  • 3 Что можно удалить Xiaomi Fastboot Tools
  • 4 Xiaomi Fastboot Tools не видит телефон

Как пользоваться Xiaomi Fastboot Tools

Удалить системные приложения в телефонах на базе Андроид можно самостоятельно, но для этого требуются рут-права. Однако воспользоваться такой возможностью могут только опытные пользователи. К тому же использовании root-доступа приводит к тому, что владелец смартфона теряет право на гарантийное обслуживание, а ошибка в манипуляциях вполне может привести к выходу гаджета из строя.

Однако владельцы смартфонов Xiaomi имеют возможность удалить ненужные системные приложения. В этом им поможет бесплатная программа Xiaomi Fastboot Tools. С его помощью пользователи смогут:

  • стирать или загружать любые файлы;
  • форматировать раздел Data;
  • подгружать новые скрипты;
  • чистить кэш, производить сброс данных до заводских установок;
  • подключать Google-камеру;
  • использовать режим Recovery и Fastboot;
  • настраивать беспроводные сети.

Xiaomi Fastboot Tools позволяет обновить ОС Android и оболочку MIUI, даже если версия для данной модели телефона официально еще не вышла. Также для моделей c ОС Android One есть возможность блокировать загрузчик.

Автор программы – независимый разработчик. Впервые плагин был выложен на GitHub. На этом ресурсе можно скачать последнюю версию приложения – доступна универсальная разработка, подходящая для ОС Windows, Mac и Linux. Однако следует учесть, что плагин идет в сборке, которая требует установки дополнительной утилиты Oracle Jav.

Внимание! 

Установочный файл Xiaomi Fastboot Tools имеет расширение .jar, а не стандартное .exe.

Пользователем, незнакомым с ПО Java, стоит скачать специальную утилиту для Windows 10 (также подходит и для более ранних версий ОС). Сделать это можно на крупнейшем ресурсе рунета, посвященным мобильным технологиям, – 4PDA. Старая версия для Windows доступна и на github.com.

Xiaomi Fastboot Tools: инструкция

Как пользоваться Xiaomi Fastboot Tools

По сравнению с аналогичными программами для Андроид, вроде Android Debug Bridge (ADB), Xiaomi Fastboot Tools имеет ряд преимуществ. Самое важное из них – дружественный интерфейс, с помощью которого даже неопытный пользователь может легко разобраться, как работает плагин и как им пользоваться. Здесь не требуется запоминать коды и вводить их в командную строку – все управление доступно в графическом виде.

Работать с XAFT не сложно. Приведенная ниже пошаговая инструкция подходит для плагина под Windows – Xiaomi ADB/Fastboot Tools v2.3.1.0.

Порядок действий:

  1. Скачивают архив (в формате .zip) и распаковывают его в директорию на системном диске.
  2. В списке файлов находят установочный (расширение .exe) и запускают его. Дополнительной установки не требуется – программа сразу начинает работать.
  3. Переводят смартфон в режим разработчика. Для моделей, снабженной фирменной прошивкой, заходят в меню «Настройки», выбирают пункт «О телефоне», находят строку «Версия MIUI» и нажимают на нее 7 раз. Для гаджетов, работающих под ОС Android One, схема действий отличается. В разделе «Настройки» выбирают пункт «Система», вкладка «О телефоне». Находят пункт «Номер сборки». Также тапают по нему 7 раз.
  4. Не выходя из служебного режима, активируют «Отладку по USB».
  5. На ПК в работающем приложении нажимают на кнопку «Debloater». На экране смартфона появится окно с запросом на разрешение на отладку.

После подтверждения начнется синхронизация устройств. Если она прошла успешно, на экране ПК появится название смартфона (модель и номер).

Теперь можно приступать к удалению ненужных приложений. В появившемся списке находят программу, от которой хотят избавиться, и нажимают «Delete».

Если требуется не только очистить память, но и обновить прошивку, сделать сброс до заводских установок, потребуется подключение в режиме Fastboot. Для активации на смартфоне одновременно зажимают кнопки включения и уменьшения громкости. Удерживают, пока на экране не появляется окно с заставкой Fastboot. После этого выполняют подключение так же, как в предыдущей схеме.

Что можно удалить Xiaomi Fastboot Tools

Как пользоваться Xiaomi Fastboot Tools

Прежде всего для российских пользователей речь идет о том, чтобы «снести» фирменные программы от Xiaomi, большинство из которых не нужны. Список чаще всего удаляемых приложений выглядит так:

  • Mi Credit и Mi Pay – электронная платежная система, не работающая на территории РФ;
  • MSA – аналитическая программа, не выполняющая никаких полезных функций;
  • Analytic – удаление утилиты поможет уменьшить количество рекламы от MIUI;
  • Mi Roaming и партнерская программа VsimCore, в России не функционирует;
  • Xiaomi Market – магазин приложений от компании разработчика.

Пользователь может удалить любые программы, которыми он не пользуется, в том числе предустановленные приложения Google.

Xiaomi Fastboot Tools не видит телефон

Иногда у пользователей при запуске программы или при подключении смартфона к  Xiaomi Fastboot Tools могут возникнуть проблемы. Решить их можно самостоятельно с помощью подсказок:

  1. Программа не распознает мобильное устройство, при попытке синхронизации всплывает окно «Cannot find Adb/Fastboot Xiaomi». Наиболее вероятная причина – отсутствие необходимых драйверов. Скачать файлы можно по ссылке xiaomiadvices.com/download-xiaomi-pc-suite-mi-redmi-note-mobiles. После загрузки ПО проблема пропадает.
  2. Драйверы установлены, но компьютер все равно не распознает смартфон. Пользователю необходимо проверить, установил ли он режим «отладка через ПК» – возможно, смартфон использует компьютер в качестве зарядки.

Внимание! 

Иногда подобная проблема возникает при конфликте версии утилиты Xiaomi Fastboot Tools с ПО телефона. В этом случае можно попробовать скачать более новую разработку для  Java и установить на ПК Oracle Jav.

Используя бесплатную программу Xiaomi Fastboot Tools, пользователь получает возможность вносить изменения в системные файлы телефона без получения root-доступа. Приложение имеет дружественный интерфейс, так что работать с ним может даже новичок.

Does anyone know what this means? When I click the «run» button on my simulator I get this message.

Throwable: Unable to locate adb within SDK

I am running the latest version, 0.8.14.

Dharman's user avatar

Dharman

29.2k21 gold badges79 silver badges131 bronze badges

asked Dec 4, 2014 at 19:05

SleepsOnNewspapers's user avatar

5

The ADB is now located in the Android SDK platform-tools.

  1. Check your [sdk directory]/platform-tools directory and if it does not exist, then open the SDK manager in the Android Studio (a button somewhere in the top menu, android logo with a down arrow), switch to SDK tools tab and and select/install the Android SDK Platform-tools.

enter image description here
enter image description here
enter image description here

  1. Alternatively, you can try the standalone SDK Manager: Open the SDK manager and you should see a «Launch Standalone SDK manager» link somewhere at the bottom of the settings window. Click and open the standalone SDK manager, then install/update the

«Tools > Android SDK platform tools».

  1. If the above does not solve the problem, try reinstalling the tools: open the «Standalone SDK manager» and uninstall the Android SDK platform-tools, delete the [your sdk directory]/platform-tools directory completely and install it again using the SDK manager.

  2. Check your antivirus chest. Sometimes the Antivirus program thinks adb.exe is a virus. If you find it there please restore the file and it will start working. You can also put adb.exe as a safe file in you Antivirus program.

enter image description here
enter image description here

user's user avatar

user

3,9365 gold badges17 silver badges34 bronze badges

answered Dec 22, 2014 at 3:39

akos's user avatar

2

In my case I had no SDK selected for my project(not sure why). Simply went to Project Structure dialog (alt+ctrl+shift+s or button 1 on the screen) and then to project-> Project SDK’s was selected <no SDK>. Just changed it to the latest

Project Structure dialog

answered Jun 20, 2020 at 19:24

Artem Luzhanovskyi's user avatar

5

For anyone who is still running into this issue. I had a similar problem where I could see my device from adb on the command line using adb devices but Android Studio would not recognize when I had a device attached and would throw either:

  • Unable to locate adb within SDK or
  • Unable to obtain result of 'adb version'

    I had tried start/stops of adb, uninstalls, of platform-tools, and more. What I found was that inside my C:Users<UserName>AppDataLocalAndroid folder I had multiple sdk folders. I performed the following:

    1. Unistall Platform-Tools using Android Studio’s SDK Manager
    2. Deleted all platform-tools directories within each C:Users<UserName>AppDataLocalAndroidsdk* directory
    3. Reinstalled Platform-Tools using Android Studio’s SDK Manager

Hope this helps someone someday with their issue.

answered Dec 14, 2015 at 21:58

Nick's user avatar

NickNick

7664 silver badges12 bronze badges

2

If you are using Android Studio and have AVG virus protection, the adb.exe file might be in the Virus Vault. This was my problem.
To fix: Open AVG. Select Options (top right), then Virus Vault. If you see the adb.exe file in there, select it and then click Restore.

answered Apr 9, 2016 at 8:16

HGamble's user avatar

HGambleHGamble

4055 silver badges17 bronze badges

2

In Android Studio, Click on ‘Tools’ on the top tab bar of android studio

Tools >> Android >> SDK Manager >> Launch Standalone Sdk manager

there you can clearly see which platform tool is missing , then just install that and your adb will start working properly.

Fully install at-least one Api package (Android Api 23 or 24) .

answered Sep 24, 2015 at 9:45

Lucky Rana's user avatar

Lucky RanaLucky Rana

1,0101 gold badge12 silver badges20 bronze badges

try this:
File->project Structure into Project Structure
Left > SDKs
SDK location select Android SDK location (old version use Press +, add another sdk)

answered Dec 4, 2014 at 19:10

Vladislav Kan's user avatar

2

Finally after several hours of investigation I think I have another solution for everyone having issues with AVD Manager «Unable to locate adb».

I know we have the setting for the SDK in File -> Settings -> Appearance & Behavior -> System Settings -> Android SDK. This it seems is not enough! It appears that Android Studio (at least the new version 4) does not give projects a default SDK, despite the above setting.

So, you also (for each project) need to go to File -> Project Structure -> Project Settings -> Project, and select the Project SDK, which is set to [No SDK] by default.

If there’s nothing in the drop-down box, then select New, select Android SDK, and navigate to your Android SDK location (normally C:Users[username]AppDataLocalAndroidSdk on Windows). You will then be able to select the Android API xx Platform. You now should not get this annoying adb error.

HTH

answered Jun 15, 2020 at 21:24

SadSack963's user avatar

SadSack963SadSack963

2,0392 gold badges14 silver badges10 bronze badges

0

Just go your SDK Manager and install Android SDK Tools

answered Sep 16, 2015 at 12:03

Anand Jain's user avatar

Anand JainAnand Jain

2,3456 gold badges38 silver badges66 bronze badges

1

In my case it was a simple case of incorrect path.
Simply went to Project Structure dialog (alt+ctrl+shift+s) and then to platform->SDK’s and fixed Android SDK home path.

fix SDK path

Ahmed Ashour's user avatar

Ahmed Ashour

4,82810 gold badges36 silver badges52 bronze badges

answered Apr 26, 2017 at 8:56

asafadd's user avatar

asafaddasafadd

2651 gold badge3 silver badges15 bronze badges

1

Detailed instructions with screenshots (works for M1 Mac and Windows 11)

Make sure you have the latest android studio from https://developer.android.com/studio (not from homebrew or some other source)

In android studio, open a project

  1. Install Android SDK Command-line Tools and Android SDK Platform-Tools

    Tools — SDK Manager

    enter image description here

  2. Select a project SDK

    File — Project Structure

    enter image description here

  3. Add the platform-tools and cmdline-tools to your Classpath

    File — Project Structure

    enter image description here

answered Jan 7, 2022 at 1:44

Kabir Sarin's user avatar

Kabir SarinKabir Sarin

17.3k8 gold badges48 silver badges40 bronze badges

1

I deleted and re-installed the Android SDK Platform-Tools 23 23.0.0. This solved the problem.
Yesterday i had done a complete update of the SDK using SDK Manager, deleting some parts that i believed i no longer needed and downloading updates. Perhaps this was the source of the problem.

answered Aug 24, 2015 at 14:33

Mick's user avatar

MickMick

6271 gold badge7 silver badges16 bronze badges

Got the same problem. MacOS, Android Studio 3.6.1, SDK Android 10.0.

This is the directory where Android studio is looking for adb binary:

$ cd ~/Library/Android/sdk/platform-tools/
➜  platform-tools $ ls
package.xml  platform-tools  signing_request_for.3232179dce22d8a6332018729026ed39f5d5cd0b.1585090071041.platform-tools_r29.0.6-darwin.filelist

However, the binary is in the one directory deeper:

➜  platform-tools $ ls platform-tools
adb  dmtracedump  etc1tool  hprof-conv  make_f2fs  mke2fs.conf  sload_f2fs         sqlite3
api  e2fsdroid    fastboot  lib64       mke2fs     NOTICE.txt   source.properties  systrace

Simply make a soft link to current directory:

➜  platform-tools $ ln -s platform-tools/adb ./
➜  platform-tools $ ls
adb          platform-tools
package.xml  signing_request_for.3232179dce22d8a6332018729026ed39f5d5cd0b.1585090071041.platform-tools_r29.0.6-darwin.filelist

This did trick for me.

P.S. Adding it to the PATH does not help, I can of course run it in terminal then, but Android Studio does not pick up PATH variable from .zshrc in MacOS.

answered Mar 26, 2020 at 18:24

Ivan Ermilov's user avatar

Ivan ErmilovIvan Ermilov

1,7311 gold badge11 silver badges9 bronze badges

1

yeah I have same experience

The ADB is now located in the platform-tools directory.

  1. korsosa said Check your [sdk directory]/platform-tools directory, if it exists. If not, then open the SDK manager in the Android Studio (a button somewhere in the top menu, android logo with a down arrow), and download&install the Tools > Android SDK Platform-tools.

  2. If you have platform-tools, you have check adb.exe file.
    In my case, that file was broken, so download that platform-tools again

answered Nov 26, 2015 at 5:52

Felix Shin's user avatar

If you already have Android SDK Platform Tool installed then go to File > Settings > System Settings > Android SDK > Launch Standalone SDK Manager.

There you will see in Tools Directory that Android SDK Platform-Tools is uninstalled. So deselect all and check that box and simply click on install button.

dakab's user avatar

dakab

5,1798 gold badges42 silver badges64 bronze badges

answered Jan 13, 2016 at 18:11

Abdul Rahman Meer's user avatar

While all these answer might have been correct in my scenario it didn’t work. It all started when i uninstalled 2.* android studio version after getting 3.0rc1. But that screw up things and started getting this error. After that i did followed majority of these steps and none of them worked. While analyzing SDK directory i noticed that i have two platform tools folder. The .backup had adb.exe where as the other one didn’t. I just copied the .backup files in the other platform-tool folder and it fixed my issue.

enter image description here

answered Nov 20, 2017 at 18:00

Akshay's user avatar

AkshayAkshay

6372 gold badges16 silver badges36 bronze badges

I don’t know probably is too late to answer to this question. But if someone is in my situation and struggling with this problem will useful.

Few antivirus programs detect adb.exe as a virus. You should take a look in the place where antivirus is putting your detected threats and restore it from there. For Avast Antivirus is inside of virus chest

Hope it will be useful for someone !

answered Jun 7, 2018 at 8:52

clauub's user avatar

clauubclauub

1,1149 silver badges19 bronze badges

If you have an antivirus (such as AVG), you can take the file out of quarantine.

Click Menu > Quarantine > Check box next to the adb.exe file > Arrow next to delete > Restore

But sometimes, the file will keep reappearing in the quarantine. The way to solve this is by clicking Restore and add exception, or by going to Menu > Setting > General > Exceptions > And adding something like this: C:UsersJohndoeAppDataLocalAndroidSdkplatform-tools

Other antiviruses have similar equivalents of a «quarantine» that the APK file may be in.

answered Jun 11, 2019 at 18:46

Elijah Mock's user avatar

Elijah MockElijah Mock

4739 silver badges18 bronze badges

In my case I have tried the above but seems like adb won’t get installed so all what I had to do is copy adb.exe to the folder and worked !
I copied adb.exe and pasted on the following paths in my device:

C:UsersYour-Device-usernameAppDataLocalAndroidsdk

C:UsersYour-Device-usernameAppDataLocalAndroidsdkplatform-tools

Hope this helps somebody in need.

answered Mar 18, 2017 at 22:12

Fahad Alkamli's user avatar

Open Task Manager and find service adb.exe after saw those service just end it, and run again

kleopatra's user avatar

kleopatra

50.7k28 gold badges99 silver badges207 bronze badges

answered Aug 21, 2015 at 5:55

teso's user avatar

even after downloading specific required file or everything, we could face file execution error.

a file execution fail could be due to following reasons:
1. user permission/s (inheritance manhandled).
2. corrupt file.
3. file being accessed by another application at the same time.
4. file being locked by anti-malware / anti-virus software.

strangely my antivirus detected adb, avd and jndispatch.dll files as unclean files and dumped them to its vault.

i had to restore them from AVG vault.
configure AVG to ignore (add folder to exception list) folder of AndroidStudio and other required folder.

if you are without antivirus and still facing this problem, remember that windows 7 and above have inbuilt ‘windows defender’. see whether this fellow is doing the same thing. put your folder in antivirus ‘exclusion’ list as the vendor is trusted world wide.

this same answer would go to ‘Error in launching AVD with AMD processor’. i don’t have enough reputation to answer this question there and there.

Community's user avatar

answered Jan 27, 2016 at 17:05

sifr_dot_in's user avatar

sifr_dot_insifr_dot_in

2,9232 gold badges33 silver badges41 bronze badges

I had this issue with Android Studio 3, the SDK manager somehow didn’t include the full tools in platform-tools folder so I had to download it manually from:

https://developer.android.com/studio/releases/platform-tools.html

then extract it to my android/sdk/platform-tools/ folder

answered Sep 21, 2017 at 20:41

Desolator's user avatar

DesolatorDesolator

22.2k20 gold badges71 silver badges95 bronze badges

5

if you have adb problem go to tools->sdk manager -> install missed sdk tools

my problem was solved using these way

answered Apr 26, 2018 at 6:26

S HemaNandhini's user avatar

I struggled with this for a while. Tried to install/uninstall various packages under the SDK Manager without success. I even deleted Android Studio and reinstall it, it did not help.

I am running Android Studio 3.3 on OS X 10.14.2. At the end I tried the following:

rm -rf Library/Android/sdk

This removed the whole sdk folder. You should run this command on your home directory in terminal. (it is the default location when you open it)

I then started Android Studio and it could not find the sdk. So it prompted me to download it. I downloaded a fresh SDK and everything was working normally.

It might be an overkill but it worked.

answered Jan 18, 2019 at 9:25

zirinisp's user avatar

zirinispzirinisp

9,6915 gold badges32 silver badges38 bronze badges

You can download from terminal or cmd like this:

$sudo apt update 
$sudo apt install android-tools-adb android-tools-fastboot

//check version or test adb is running or not
$adb version

double-beep's user avatar

double-beep

4,84116 gold badges32 silver badges41 bronze badges

answered Oct 31, 2018 at 6:17

HandyPawan's user avatar

HandyPawanHandyPawan

9541 gold badge10 silver badges16 bronze badges

My Android Studio version 3.6.1

After getting updated the latest version I have been facing this problem for few hours. My steps to solve this:

-> Updated sdk platform-tools [though it’s not fetching my device yet]

-> Change the USB cable, then my 2 devices both are getting connected with Studio and run my app successfully.

I don’t know this silly step might help anyone but U can have a look on that.
I just share my experience, Thanks.

answered Mar 20, 2020 at 13:07

Mimu Saha Tishan's user avatar

Mimu Saha TishanMimu Saha Tishan

2,1621 gold badge18 silver badges37 bronze badges

For me I was switching to zsh as the default shell on your Mac. Switch back and restart fixed it.

answered Jun 9, 2020 at 11:40

Hai nguyen thanh's user avatar

Search for adb.exe inside Sdkplatform-tools folder. Go to Android emulator Settings (three dots > settings), uncheck «Use detected ADB location» and point to adb.exe path.

answered Sep 1, 2021 at 21:19

Andreas Adelino's user avatar

After trying all of the above (and more), I googled how to reset Android Studio, which eventually worked for this!

On MAC, delete this folder:

~/Library/Application Support/Google/AndroidStudio4.1

I then checked the adb in the terminal by running adb command, and it was showing up as it should.

terminal screenshot

When I ran my react-native project with yarn start and yarn android, it failed, but running it a second time worked.

sfmirtalebi's user avatar

answered Apr 29, 2021 at 9:43

verunar's user avatar

verunarverunar

83412 silver badges23 bronze badges

For me, just need to

  1. Disable and Enable Developer Options.
  2. Then Enable USB Debugging. No idea why it disabled by itself.

answered Dec 8, 2021 at 11:57

GeneCode's user avatar

GeneCodeGeneCode

7,4478 gold badges48 silver badges85 bronze badges

It worked for me in this way

open your android studio First, and go to SDK manager :
enter image description here

and Copy your Android SDK location then open PowerShell on your windows
and go to that folder like :

cd C:UsersYOURUSERNAMEAppDataLocalAndroidSdk

then go to platform-tools folder:

cd platform-tools

and then start ADB like this:

.adb.exe

you can also check if there is any adb.exe by ls or dir in windows command line

if there isn’t any platform tools you should first install it and then
paste it into that directory that I’ve mentioned earlier

you can download platform-tool(adb) from here:
https://developer.android.com/studio/releases/platform-tools

answered Feb 7, 2022 at 10:57

web developer's user avatar


Как установить ADB, Fastboot и драйвера


Утилиты ADB и Fastboot входят в состав комплекта разработки Android SDK (не стоит путать с Android Studio и уж тем более скачивать ее громоздкий установочный файл, если вы, конечно, не собираетесь заниматься разработкой под Android). ADB является инструментом для отладки, который позволяет получить доступ к консоли Андроид с компьютера (подробнее →) подключив гаджет к ПК по USB. При этом должна быть включена отладка. Fastboot предназначена для работы с устройством, когда то загружено в одноименном режиме (если такой есть на вашем аппарате).


Содержание — Как установить ADB, Fastboot и драйвера:

  1. Как установить ADB и Fastboot: инструкция
  2. Устанавливаем драйверы ADB и Fastboot под Windows
  3. Как начать работать с Fastboot и ADB

При помощи ADB можно управлять смартфоном/планшетом с компьютера: сделать бэкап приложенийсбросить графический пароль, записать скринкаст, перевести смартфон в режим Recovery и многое другое. Кроме того с ADB можно работать и через Wi-Fi. Для этого на вашем устройстве должны быть получены root-права, а также понадобится специальное приложение, осуществляющее подключение к компу по сети. Например, ADB Wireless либо WiFi ADB. Но это уже материал для отдельной статьи. 

Используя Fastboot, вы сможете устанавливать прошивки, кастомные Рекавери (TWRP или CWM), разблокировать Bootloader (на аппаратах HTC, Motorola, Sony, Nexus, Huawei, последних LG он заблокирован), очищать разделы системы.

Как установить ADB и Fastboot: инструкция

1. Первым делом переходим на официальный сайт, откуда можно скачать Android SDK: https://developer.android.com. Спускаемся вниз страницы к разделу «Command line tools only» и выбираем загрузку архива для Windows.

Command line tools only

2. Установите галочку в чекбоксе «I have read and agree with the above terms and conditions» и нажмите кнопку «Download Android Command Line Tools for Windows». Начнется загрузка архива.

Download Android Command Line Tools for Windows

3. Скачайте его и разархивируйте в корень Диска «C:».

4. Также необходимо загрузить Java Development Kit с официальной страницы. Перейдите на сайт, согласитесь с условиями лицензионного соглашения, отметив пункт «Accept License Agreement», и скачайте версию JDK, соответствующую разрядности вашей системы.

Accept License Agreement

После этого установите скачанный пакет. Дальше описаны несколько вариантов установки Fastboot и ADB – пользуйтесь тем, который для вас проще.

Первый способ

Вернитесь к папке c Android SDK, откройте «tools» и запустите «android».

Как установить ADB и Fastboot: инструкция

Отметьте пункт «Android SDK Platform-tools» (а также «Google USB driver», если у вас устройство Nexus) и нажмите «Install Packages».

Как установить ADB и Fastboot: инструкция

Про установку драйверов для других аппаратов читайте ниже.

Выберите «Accept License» и нажмите «Install».

Как установить ADB и Fastboot: инструкция

Мой лог показал, что в процессе установки возникла ошибка. Но в итоге все завершилось успешно.

Как установить ADB и Fastboot: инструкция

По завершении выполнения вышеописанных действий в папке «tools_версия-windows» появится «platform-tools», а в ней будут интересующие нас «ADB» и «Fastboot».

Как установить ADB и Fastboot: инструкция

Как установить ADB и Fastboot: инструкция

Второй способ

Перейдите в папку «sdk-tools-windows-версия» → «tools» → «bin» и, зажав клавишу «Shift», щелкните правой кнопкой мышки по пустой области. Выберите «Открыть окно команд» либо «Открыть окно PowerShell здесь», если на ПК или ноутбуке установлена одна из последних сборок Windows 10.

Открыть окно PowerShell здесь

Вставьте команду в PowerShell или командную строку (в PowerShell добавьте ./ вначале):

sdkmanager platform-tools

sdkmanager platform-tools

Щелкните «Enter», чтобы выполнить команду. Произойдет загрузка файлов и появится запрос на установку:

Accept? (y/N)

Accept? (y/N)

Чтобы разрешить, введите y, то есть «yes», и нажмите «Enter», после чего начнется установка «platform-tools».

platform-tools

В конце в командной строке отобразится сообщение, что процедура завершилась успешно. А папка «platform-tools» с ADB и Fastboot внутри появится в «sdk-tools-windows-version».

(!) Если по какой-либо причине не удается установить ADB и Fastboot предыдущими способами, воспользуйтесь третьим вариантом – просто скачайте архив «platform-tools» и разархивируйте на диск «C:».

Устанавливаем драйверы ADB и Fastboot под Windows

Чтобы компьютер корректно распознавал смартфон либо планшет, необходимо загрузить драйвер USB:

  • Samsung – драйвер входит в состав утилиты Kies: https://www.samsung.com либо же его можно скачать отдельно, выбрав нужную модель: https://www.samsung.com
  • HTC – в составе HTC Sync Manager: https://www.htc.com
  • Nexus – драйвер Android устанавливается вместе с Android SDK, о чем писалось выше.
  • Huawei – совместно с утилитой HiSuite: https://consumer.huawei.com
  • LG – установите LG PC Suite: https://www.lg.com
  • Motorola – смотрите на этой странице: https://motorola-global-portal.custhelp.com
  • Sony Xperia – драйверы FastBoot для всех моделей находятся здесь: https://developer.sonymobile.com
  • Xiaomi – Mi PC Suite: https://pcsuite.mi.com
  • MTK – для китайских аппаратов на чипах MediaTek: https://online.mediatek.com
  • Lenovo – выберите модель смартфона, планшета и загрузите ADB драйвер: https://support.lenovo.com
  • Решения для девайсов других производителей ищите на их официальных сайтах.

Существуют различные универсальные установщики ADB драйверов (к примеру, этот: https://adbdriver.com) – ими тоже можно пользоваться, например, когда по какой-то причине не удалось установить официальное решения.

Если для вашей модели идет драйвер без установщика, придется выполнить следующие действия:

1. Зайдите в «Панель управления» → «Диспетчер устройств». В Windows 10 достаточно нажать правой кнопкой мышки по меню «Пуск» и выбрать «Диспетчер устройств».

Устанавливаем драйверы ADB и Fastboot под Windows

2. Найдите в списке девайс для которого нужно установить драйверы. Клацните правой кнопкой мышки и нажмите «Обновить драйверы».

Устанавливаем драйверы ADB и Fastboot под Windows

Как видите, компьютер корректно распознает мой планшет Nexus 7. Если ваш ПК определяет смартфон неправильно или напротив устройства стоит желтый треугольник с восклицательным знаком внутри, «ручная» установка драйверов Android для вас обязательна.

3. Выберите пункт «Выполнить поиск драйверов на этом компьютере».

Устанавливаем драйверы ADB и Fastboot под Windows

4. Укажите путь к папке с драйверами на ПК.

Устанавливаем драйверы ADB и Fastboot под Windows

Дождитесь завершения установки и затем заново подключите гаджет к компьютеру по USB.

Как начать работать с Fastboot и ADB

Работа с ADB или Fastboot осуществляется из командной строки, зайти можно двумя способами:

Способ 1: Правой клавишей мышки клацните на «Пуск» и выберите «Командная строка (администратор)». Далее при помощи команд нужно перейти к папке с ADB и Fastboot (после ввода каждой нажимайте «Enter»).

Чтобы вернуться в корень диска «C:», используйте:

cd /

Благодаря этой команде открываем нужную папку:

cd

В моем случае получилось так:

cd tools_версия-windowsplatform-tools

Как начать работать с Fastboot и ADB

 У вас выйдет (разработчики Google изменили название архива уже после написания первоначальной редакции этой инструкции):

cd sdk-tools-windows-versionplatform-tools

Путь к Fastboot и ADB указан, теперь работаем с ними из консоли.

Чтобы не выполнять эти действия каждый раз, добавьте путь к «platform-tools» в переменную «Path». Сначала зайдите в папку, в строке навигации щелкните правой кнопкой мыши по «platform-tools» и выберите «Копировать адрес».

Копировать адрес

Перейдите в «Панель управления». Для этого нажмите «Win» + «R» и в поле «Открыть:» вставьте control. Нажмите «ОК».

control

Выберите «Система» → «Дополнительные параметры системы» → «Переменные среды…».

Переменные среды

Найдите перемененную «Path», выделите ее и выберите «Изменить…».

Path

Нажмите «Создать», вставьте путь к папке «platform-tools» и щелкните «ОК».

2: Зайдите в «sdk-tools-windows-version» → «platform-tools», затем, удерживая «Shift», щелкните правой кнопкой мыши по пустому месту и выберите пункт «Открыть окно команд» или «Открыть окно PowerShell здесь».

Введите следующее, чтобы проверить как ПК видит Android (в Windows PowerShell вставьте ./ перед командой):

adb devices

Не забывайте, что для работы с ADB должна быть включена отладка по USB! Больше полезных команд вы найдете в прошлой статье, ссылка есть в начале данного поста.


Опытные пользователи любят настраивать смартфоны по своему усмотрению. В этом помогают специальные утилиты. Одна из таких программ — Xiaomi ADB Fastboot Tools. Это инструмент, позволяющий удалить ненужные системные приложения, очистить кэш, сбросить устройство до заводских настроек, заблокировать загрузчик и т. д. Сегодня мы подробно поговорим о данной утилите: выясним, как ее установить на компьютеры Windows, Linux, Mac и как правильно пользоваться.

ADB Fastboot Tools представляет собой служебное приложение с расширенными возможностями. Функционал больше всего оценят владельцы телефонов с активным бутлоадером и рут-правами. Если же у вас отсутствует root, а загрузчик заблокирован – возможности программы будут довольно ограничены.

При подключении смартфона утилита выдает подробную информацию о модели: серийный номер, кодовое имя и состояние бутлоадера.

Обратите внимание, что Xiaomi ABD/Fastboot Tools – это программа исключительно для опытных пользователей. Все действия в ней вы проводите на свой страх и риск. Убедитесь, что обладаете необходимыми навыками и знаниями.

Функции и особенности

Программа в основном используется для удаления системных приложений на Android. Но есть и другие функции:

  • Перевод смартфона в режим Fastboot, Recovery или EDL.
  • Очистка кэша или полное удаление данных (сброс до заводских настроек).
  • Блокировка/разблокировка загрузчика – только для моделей из серии Android One.
  • Включение Google камеры (с использованием TWRP Recovery).
  • Прошивка через Фастбут.

Где скачать программу

Официального сайта с Xiaomi ADB Fastboot Tools нет. Но программу можно без проблем загрузить по ссылкам ниже с репозитория Github. Есть как утилита только для Windows, так и универсальная версия java, которая рассчитана на операционные системы Windows, Linux и Mac.

Файл с расширением .jar обладает расширенным функционалом и чаще обновляется. Но если вы не знакомы с программным обеспечением java – рекомендуем скачать стандартную версию, которая подойдет для Windows 10 и более ранних сборок.

Установка Xiaomi ADB Fastboot

Последние сборки Xiaomi ADB/Fastboot Tools идут только в JAVA приложении, то есть с расширением .jar. Для включения утилиты нужно установить дополнительный компонент Oracle Java отсюда.

Установка программы на Windows 10

Нижеописанная инструкция подойдет, если вы скачивали Windows-версию (не java!).

  1. Открываем Проводник и находим скачанный архив. Распаковываем его – желательно, на системный диск.
    Установка Xiaomi ADB Fastboot Tools на Windows 10
  2. Находим распакованный файл с расширением .exe и запускаем его. Утилита откроется сразу, установка не требуется. Теперь можно приступать непосредственно к использованию программы.

Рассмотрим правильное подключение смартфона и основные взаимодействия с утилитой. Инструкции представлены в ознакомительных целях, редакция не несет ответственности за ваши действия.

Проверка работоспособности adb и fastboot

Для начала нужно убедиться, что программа распознает подключенное мобильное устройство. Соединяем телефон с компьютером по USB-проводу и запускаем утилиту. Не забываем, что перед этим необходимо включить отладку по ЮСБ.

В программе кликаем по большой кнопке «Debloater». Начнется распознавание подключенного смартфона. Если синхронизация успешная, появится информация о модели. Надпись «No device found» сообщает об отсутствии необходимых драйверов. Установите универсальные драйвера adb и fastboot, и повторите попытку.
Работа с Xiaomi ADB Fastboot Tools

Еще сопряжение можно проверить, перезагрузив смартфон через вкладку «Reboot into system» (в пунктах «ADB Tools» и «Fastboot Tools»). Если телефон откликнулся на команду и перезагрузился, значит, подключение установлено.

Удаление системных приложений

Пользователи чаще всего используют утилиту, чтобы удалить ненужные предустановленные приложения. У нас есть подробная статья, в которой мы поэтапно рассказывали о процедуре, а также о том, какие приложения можно удалять на MIUI 10 и MIUI 11 без вреда для операционной системы. Этот перечень будет актуален и для Миюай 12. Здесь вкратце опишем весь процесс:

  1. Активируем режим для разработчиков и включаем отладку по USB.
  2. Ставим на компьютер все необходимые драйвера.
  3. С помощью кабеля подключаем смартфон к компьютеру.
  4. На телефоне в режиме работы ЮСБ выставляем «Передача файлов».
  5. В ADB Fastboot Tools кликаем «Debloater», а в смартфоне разрешаем отладку по USB (тапаем «ОК» в появившемся окне).
  6. Опять нажимаем «Debloater». Появляется список программ, которые можно удалить. Выставляем галочки напротив названий, и жмем «Uninstall».
    Удаление системных приложений на Xiaomi без рут прав
  7. Если удаление прошло успешно, в левой стороне экрана появится список операций, а внизу «Done».
  8. Отключаем мобильное устройство от ПК и перезагружаем.

Теперь вы знаете, как быстро и легко удалить системные приложения и игры на телефоне Xiaomi.

Дополнительные функции

С помощью Xiaomi ADB/Fastboot Tools вы можете:

  • Перевести смартфон в режим расширенной перезагрузки: Fastboot, Recovery или EDL, кликнув по соответствующим вкладкам.
  • На устройствах с разблокированным загрузчиком есть возможность включить Camera2 API.
  • Прошить конкретный раздел или весь телефон через Фастбут.
  • Владельцы смартфонов из линейки Android One могут разблокировать/заблокировать загрузчик, используя данную программу.
  • Выполнить очистку кэша или удаление всех параметров и данных со смартфона.

Частые проблемы

  • Ошибка «Cannot find Adb/Fastboot Xiaomi» возникает, если на компьютере не хватает драйверов. В видео «Универсальные драйвера на Xiaomi для подключения к ПК» мы рассказывали, как установить drivers на Windows. После данной процедуры приложения без проблем будут распознавать подключенный девайс.
  • Программа не видит телефон, хотя драйвера стоят. Здесь может быть несколько причин: отладка по USB отключена, либо в типе подключения просто указана зарядка, а не передача файлов. Еще влияет версия утилиты: возможно, ее нужно обновить, как и программное обеспечение на телефоне. Если ничего не помогает, попробуйте воспользоваться java-версией.
  • Приложение не удаляется. Проверьте, установлено ли оно на телефоне. Возможно, вы удаляли его ранее. Если ADB Fastboot Tools виснет на этапе удаления, просто закройте программу, отсоедините телефон и через некоторое время повторите попытку. Зависания часто случаются на Global ROM.

Видео-инструкция

Ответы на популярные вопросы

Что можно удалять из списка приложений в Xiaomi ADB Fastboot Tools?

Любое приложение теоретически можно удалить без вреда для телефона. Как вы могли заметить, в перечне нет важных сервисов, таких как Безопасность, Контакты, Звонки. Но пользователи отмечают, что удаление некоторых приложений, указанных в программе, все равно вызывает сбои в смартфоне. Более подробная информация есть в видео-инструкции.

Как восстановить системное приложение?

Большинство системных приложений есть в Google Play, например, Гугл Карты или Календарь. Загрузите их оттуда и установите стандартным способом. Либо сбросьте девайс до заводских настроек.

Чем отличаются отключенные программы от удаленных?

Отключенные программы продолжают потреблять оперативную память и занимать место на смартфоне. Также система может их включить без вашего ведома.

Мы рассмотрели скачивание, установку и основной функционал утилиты Xiaomi ADB Fastboot Tools. Как видим, этот инструмент точно понравится и пригодится опытному пользователю. Если у вас остались вопросы – обращайтесь за помощью в комментарии.

Вы когда-нибудь получали сообщение об ошибке ADB command not found при попытке подключить смартфон к персональному компьютеру? Эта ошибка не позволяет вам запускать команды разработчика на вашем телефоне.

Но это легко исправить, как мы покажем в этой статье.

Почему команда ADB не найдена?

Ниже перечислены некоторые из причин, по которым команда ADB не может быть найдена:

  • Устаревший драйвер. Если интерфейс ADB устарел, вы можете получить команду устройств ADB не найдена или ошибку ADB: недоступен или не найден. Решение этой проблемы — обновить драйвер до последней версии.
  • Отключенная функция телефона. Иногда эта проблема может быть связана с тем, что на вашем телефоне отключены функции отладки и разработчика. Вам необходимо включить эту функцию, чтобы внести изменения в свой телефон.

Как я могу исправить ошибку ADB command not found?

1. Выберите протокол передачи мультимедиа на своем телефоне.

команда enable MTP ADB не найдена

  1. Первое, что вам нужно будет сделать, это проверить, правильно ли подключен ваш смартфон.
  2. После этого вам нужно будет выбрать уведомление о USB-подключении на вашем телефоне.
  3. Затем вам нужно будет выбрать MTP в качестве режима подключения.

2. Обновить интерфейс ADB

  1. Откройте Диспетчер устройств.
  2. Щелкните правой кнопкой мыши параметр «Интерфейс Android ADB» или «Телефон Android» в разделе «Другие устройства» и выберите «Обновить драйвер».

  3. Выберите Поиск драйверов на моем компьютере.
  4. Теперь выберите «Позвольте мне выбрать» из списка драйверов устройств на моем компьютере.

  5. Теперь на вашем экране появится диалоговое окно с текстом «Показать все устройства», нажмите «Далее».
  6. Нажмите «Установить диск».
  7. После этого перейдите в место, где вы установили SDK. Обычно это C:Program FilesAndroidandroid-sdkextrasgoogleusb_driver.
  8. Затем вам нужно будет дважды щелкнуть файл android_winusb.inf и выбрать интерфейс Android ADB.
  9. Теперь нажмите «Да», а затем «Установить».
  10. После завершения процесса вам придется закрыть окно.

3. Включите отладку по USB и параметры разработчика

  1. Первое, что вам нужно сделать, это зайти в настройки телефона и выбрать «О программе».
  2. Здесь нажмите номер сборки семь раз, чтобы включить параметры разработчика.
  3. Затем вам придется вернуться и выбрать «Параметры разработчика».
  4. Теперь прокрутите вниз и нажмите «Отладка по USB».

4. Запустите команду ADB из каталога установки

  1. Откройте командную строку.
  2. Перейдите в каталог, в котором установлен Android SDK, в командной строке. По умолчанию это должен быть один из следующих путей: C:Program Files (x86)Androidandroid-sdktools C:Program Files (x86)Androidandroid-sdkplatform-tools
  3. Попробуйте запустить команду ADB из этих каталогов.

Кроме того, вы можете открыть командную строку в каталоге Android SDK, выполнив следующие действия:

  1. Откройте каталог установки Android SDK.
  2. Нажмите и удерживайте Shift клавишу и щелкните правой кнопкой мыши пространство внутри каталога. Выберите опцию «Открыть окно PowerShell здесь».

    открыть окно powershell здесь Команда ADB не найдена

  3. Когда откроется окно PowerShell, попробуйте запустить команду ADB.

5. Создайте путь пользователя или системной переменной для ADB или fastboot.

  1. Нажмите Windows клавишу, введите Advanced System и выберите Просмотр дополнительных параметров системы.

    расширенная команда adb не найдена

  2. Нажмите кнопку «Переменные среды».

    среда

  3. Теперь выберите любой элемент в разделе «Системные» или «Пользовательские переменные» и нажмите кнопку «Создать».

    новый

  4. Введите Path в качестве имени переменной.
  5. Затем нажмите кнопку «Обзор каталога», выберите инструменты платформы и нажмите «ОК».

    путь

  6. Наконец, нажмите кнопку «ОК», чтобы подтвердить изменения, и не забудьте нажать кнопку «ОК» на кнопке «Переменные среды».

Мы надеемся, что эта статья и наши решения помогли вам исправить bash: ADB: команда не найдена, zsh: команда не найдена: и другие варианты этой ошибки.

Не стесняйтесь сообщить нам о решении, которое помогло вам решить эту проблему, в комментариях ниже.


mexan

  • #21

В последней версии при запуске появляется ошибка: Error can’t find adb/fastboot. Способ решения очень простой:

  1. Скачиваем последнюю версию ADB (на момент создания поста).
  2. Распаковываем архив с ADB.
  3. Скачиваем последнюю версию Xiaomi ADB/Fastboot Tools и помещаем в папку с ADB. Запускаем Xiaomi ADB/Fastboot Tools. Все)
  • tools_r29.0.2-windows.zip

    2,2 МБ

    · Просмотры: 124

Последнее редактирование: 07.08.2019

  • #22

я все сделал по инструкции… но программа при запуске висит в режиме looking for devices и дальше не идет. в чем может быть проблема?

mexan

  • #23

я все сделал по инструкции… но программа при запуске висит в режиме looking for devices и дальше не идет. в чем может быть проблема?

Где у вас это висит?
Вы Отладку по usb включили?

  • #24

да отладку конечно включил..когда запускаю программу там идет как бы загрузка, она ищет устройство, и дальше ничего не происходит она так и висит.

  • Снимок.PNG

    Снимок.PNG

    62,1 КБ

    · Просмотры: 26

mexan

  • #25

да отладку конечно включил..когда запускаю программу там идет как бы загрузка, она ищет устройство, и дальше ничего не происходит она так и висит.

Попробуйте эту версию:

  • XiaomiADBFastbootTools.zip

    18 МБ

    · Просмотры: 108

  • #26

Ура все заработало, спасибо!!!

  • #27

Огромное Вам спасибо за инструкцию! Все, какие можно сайты перебрал. Один единственный работающий пост. На 8 pro работает.

mexan

  • #28

Огромное Вам спасибо за инструкцию! Все, какие можно сайты перебрал. Один единственный работающий пост. На 8 pro работает.

На любом аппарате Xiaomi работает данный способ.

  • #29

Скачивал все версии jar файла, скачивал jarfix, ADB устанавливал, но программа не видит телефон. Подскажите, что ещё сделать? Система Windws 8.1

mexan

  • #30

Скачивал все версии jar файла, скачивал jarfix, ADB устанавливал, но программа не видит телефон. Подскажите, что ещё сделать? Система Windws 8.1

А вы скачивали самую последнюю версию программы? На телефоне отладку включили?

  • #31

Скачивал разные программы. И ява и просто под винду. Судя по всему проблема была в версии винды. Попробовал под виндовс 10, после установки галочки «настройки безопасности» на телефоне появилось окно на сопряжение и программа для виндовс стала видеть телефон. Но она не смогла ничего удалить. Продолжу ещё с этим компьютером экспериментировать, установлю яву и попробую jar файл.

mexan

  • #32

Скачивал разные программы. И ява и просто под винду. Судя по всему проблема была в версии винды. Попробовал под виндовс 10, после установки галочки «настройки безопасности» на телефоне появилось окно на сопряжение и программа для виндовс стала видеть телефон. Но она не смогла ничего удалить. Продолжу ещё с этим компьютером экспериментировать, установлю яву и попробую jar файл.

Очень странно. Потому что я на чистую систему все запускал. Программа видела телефон и удаляла. Я даже драйвера сам не ставил.

  • #33

Я не смог открыть jar файл, видимо в системе нет явы. Сегодня установлю и попробую.
Для информации телефон Redmi 4x, MIUI Global11.0.2

mexan

  • #34

Я не смог открыть jar файл, видимо в системе нет явы. Сегодня установлю и попробую.
Для информации телефон Redmi 4x, MIUI Global11.0.2

JDK ставить надо обязательно! Без него ни как. Могу попробовать помочь удаленно по teamview.

  • #35

С jar файлом так и не удалось ничего достичь, но файл под windows сработал хорошо. Всё определилось, часть программ удалил.

mexan

  • #36

но файл под windows сработал хорошо

К сожалению автор уже давно перестал разрабатывать данное приложение под windows. Пишет на java. Так что возможно, вы не все приложения сможете удалить.

С jar файлом так и не удалось ничего достичь

Попробуйте удалить JDK. Почистить ПК, тем же Cleaner. И по новой поставить.
Я вот винду на ПК переустанавливал. Поставил сразу JDK и подключил девайс, все завелось без проблем. Может что-то где-то упускаете?

  • #37

Сколько не пробовал — так ничего и не получилось… XiaomiADBFastbootTools не запускается. тел.-Xiaomi Mi9T

  • 2020-01-18_084552.jpg

    2020-01-18_084552.jpg

    136,4 КБ

    · Просмотры: 15

  • Screenshot_2020-01-18-08-45-14-049_com.android.settings.png

    Screenshot_2020-01-18-08-45-14-049_com.android.settings.png

    190,2 КБ

    · Просмотры: 13

mexan

  • #38

Сколько не пробовал — так ничего и не получилось… XiaomiADBFastbootTools не запускается. тел.-Xiaomi Mi9T

XiaomiADBFastbootTools у вас запустился. Программа не видит телефона.

У вас есть еще ПК? Ну или у знакомых, на работе? Попробуйте там это сделать. Интернет не нужен. JDK и архив с программой из шапки.

  • #39

XiaomiADBFastbootTools у вас запустился. Программа не видит телефона.

У вас есть еще ПК? Ну или у знакомых, на работе? Попробуйте там это сделать. Интернет не нужен. JDK и архив с программой из шапки.

Спасибо буду еще пробовать… Фарворвер может повлиять? На всех компах стоит Widows 7 Firewall Control.

mexan

  • #40

Спасибо буду еще пробовать… Фарворвер может повлиять? На всех компах стоит Widows 7 Firewall Control.

Попробуйте его отрубить. Может и поможет.

@nocops321

Issues:
When launching the XiaomiADBFastbootTools.jar, user receive error: can’t find adb/fastboot.

Pre-conditions:
Linux Mint 19
Java Run-time Environment is installed
Downloaded XiaomiADBFastbootTools-6.8.1-Linux.zip
ADB installed
Android SDK installed.

Steps:

  1. Extract .zip to ~/Home
  2. Navigate to ~/Home/XiaomiADBFastbootTools-6.8.1-Linux
  3. Right click on XiaomiADBFastbootTools.jar
  4. Select Properties.
  5. Select Permissions.
  6. Select the check box «Allow executing file as program»
  7. Run XiaomiADBFastbootTools.jar

Notice:
Once the user executes the .jar program, the user receives error message «Error: Can’t find ADB/Fastboot»

@nocops321

Error

@Szaki

Did you read the FAQ / troubleshooting section on the front page? My best guess is that you don’t have Fastboot installed and the app cannot see the included binaries because double clicking the JAR will set the working directory to /home/user/ instead of the directory of the JAR. The solution is mentioned in the FAQ.

@vlakoff

That’s an issue I was also encountering, and the solution is quite easy: take the *.exe and *.zip files from the bin folder, and move them to the same folder as the *.jar file.

I’m on Windows, and I run the program by double-clicking on the *.jar file.

Maybe a noticeable amount of people are encountering the same issue? How about making XAFT look into the bin folder in addition?

@Szaki

@vlakoff

My mistake then.
I did encounter the «missing adb/fastboot» error previously, but probably I had used the *.jar only.

I confirm the «bin» lookup works. Thanks for clarifying.

@nocops321

I can confirm that placing the bin and .jar in /Home/user worked for me

On Thu, Nov 28, 2019 at 7:34 AM vlakoff ***@***.***> wrote:
My mistake then.
I did encounter the «missing adb/fastboot» error previously, but probably
I had used the *.jar only.

I confirm the «bin» lookup works. Thanks for clarifying.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#108?email_source=notifications&email_token=ACPQNENTZDK6S3RQII74FRTQV7QHPA5CNFSM4JR4UPFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFM5QWY#issuecomment-559536219>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACPQNEPW77UE5VQ4G5527CDQV7QHPANCNFSM4JR4UPFA>
.

ADB and Fastboot are amazing command-line tools that let your computer connect with your Android device. ADB can communicate with your phone to debug and make changes. If you are getting “ADB is not recognized” or “ADB command not found”, or “Fastboot is not recognized” error while trying to use ADB commands, here are some easy fixes to make ADB detect your device.

Below is a list of just a few things that you can do using ADB commands.

  • Change Android device name
  • Uninstall system apps without root
  • Turn Safe Mode On or Off
  • Unlock Android bootloader

Possible Reasons behind ADB Error

There may be various reasons why you are encountering the “adb is not recognized…” error in the Command Prompt. Depending on the scenario, the error message you get may differ. Below is a screenshot of the error that deliberately I recreated on my Windows 10 PC.

adb command not found

‘adb’ is not recognized as an internal or external command, operable program or batch file.

‘adb’ is not recognized as an internal or external command react-native.

The command a.exe was not found, but does exist in the current location.

or

The command adb was not found, but does exist in the current location.

‘adb’ is not recognized as an internal or external command android studio.

If you are using Windows PowerShell, you’ll get the following error.

adb is not recognized error

ADB : The term ‘adb’ is not recognized as the name of a cmdlet, function, script file, or operable program.

‘adb’ command not found

‘fastboot’ command not found

‘fastboot’ is not recognized as an internal or external command, operable program or batch file.

So, if you’re getting the “adb is not recognized as an internal or external command” error in the cmd window, it could be due to one of the following reasons.

  • Many people think that ADB and Fastboot are present on their Windows PC by default. The reality is, you must download and set up the ADB and Fastboot drivers additionally.
  • You may also get the “ADB command not found” error if you have an outdated version of ADB and Fastboot drivers. Installing the latest Android SDK Platform-tools on your PC might fix the problem.
  • If you are trying to run ADB command from a location where ‘adb.exe’ and ‘fastboot.exe’ are not present.
  • You haven’t set up system-wide ADB and Fastboot on your Windows 10 PC. That’s to say, you haven’t set the correct path under User variables or System variables.
  • In case you are trying to flash an OTA update.zip, a factory image, or a custom recovery image (twrp.img, for instance), make sure you have saved the files to flash in the ‘platform-tools‘ folder along with ‘adb.exe’, ‘fastboot.exe’, etc.

In case you are getting ‘adb or fastboot command not found error’ on Mac, read my tutorial to solve the issue.

Now that we know what could be the reason behind the ‘adb’ is not recognized as an internal or external command error, let’s try to solve the problem.

Must Read: Use ADB Commands on Android Devices without Root

Fix 1: Download Latest SDK Platform Tools

If you have installed Koush’s Universal ADB Drivers, Minimal ADB and Fastboot, 15 seconds ADB Installer, or Minimal ADB Setup, it’s most likely that you have an outdated version of ADB and Fastboot drivers on your Windows PC. Moreover, most of such tools are unsafe as they may contain a Trojan virus.

You must remove and uninstall any such 3rd-party drivers if you have them installed. The best and safest source to download the latest ADB and Fastboot driver is Google itself. I would recommend you download the latest version of Android SDK Platform Tools zip for Windows directly from Google servers. In case you have a very old version of Platform-tools, you should update them.

Fix 2: Execute ADB Command from the ‘platform-tools’ Folder

Since the official ADB and Fastboot drivers are not installer files, you are supposed to direct the Command Prompt to the exact path or location of the ‘platform-tools‘ directory. Now, there are 3 ways to do that.

  1. Open the ‘platform-tools‘ or the folder that contains the ADB and Fastboot files. Click in the folder address bar, type “cmd” and press the Enter key.type cmd in file explorer address bar to launch adb command
  2. Open the ‘platform-tools‘ folder. Click on the file explorer’s File tab and select Open Windows PowerShell.open windows powershell in folder
  3. While in the ‘platform-tools‘ folder, hold the Shift key and right-click at an empty or white space (highlighted with yellow) in the folder window. Select the Open PowerShell window here option from the context menu. If you want, you can add a permanent option to launch the command prompt to the Windows context menu.open powershell window context menu

Fix 3: Use ‘platform-tools’ Folder Path in CMD

Suppose you have saved the ABD and Fastboot drivers in the C Drive and you are trying to run an ADB command by launching the Command Prompt on your Desktop screen you’ll get the ‘adb’ is not recognized as an internal or external command error.

There’s a simple workaround to make the ADB command not found error go away by using cd or chdir (change directory) command. This command tells the Command Prompt to trigger ADB or Fastboot from a given path. Just launch the command window and type cd followed by the platform-tools folder path. as shown below.

cd c:technasticplatform-tools

If you don’t know the path of the folder, here are 7 ways to find the path of a file or folder on Windows. As you can see in the screenshot below, when I executed the adb devices command I got the following result.

'adb' is not recognized as an internal or external command, operable program or batch file.

cd command to change path to adb and fastboot

However, when I tried cd c:technasticplatform-tools followed by adb devices, there ADB is not found error disappeared.

Fix 4: Add a User or System Variable Path for ADB and Fastboot

Although the CD method gives the expected result, I find it a bit time taking as you need to type the folder path every time you use ADB or ADB Shell commands. The easiest way to access ADB and Fastboot universally from any screen on your Windows PC is to set up system-wide  ADB and Fastboot.

This method involves adding System or User Variables for the path of the ‘platform-tools‘ folder and below we’ll see how to do that.

  1. Open Advanced system settings on your Windows PC. You can go to those settings in 3 ways.
    1. Type ‘Advanced system settings‘ in the Windows search bar and launch it.advanced system settings windows 10
    2. Right-click on This PC found on the right pane in the File Explorer window and click on Properties> Advanced system settings.windows pc system properties
    3. Open the Control panel and navigate to System and Security> System> Advanced system settings.
  2. Once you get to the System Properties pop-up window, click on Environment Variables.windows 10 system properties
  3. A new pop-up window named Environment Variables will appear. Click on any item under User variables or System variables and click on New.system variables windows 10
  4. When the New User/System Variable pop-up appears, type “Path” under Variable name, then click on Browse Directory. Navigate to the ‘platform-tools‘ folder and click on the OK button.creating new system variable windows 10
  5. Finally, click on OK to add the path variable.
  6. When the new path variable is added, don’t forget to click on OK on the Environment Variables window to save it.

Done! You have successfully set up system-wide ADB and Fastboot on your Windows PC. Now, you are all set to execute ADB or Fastboot commands from any screen without navigating to the ‘platform-tools’ folder.

Fix ‘adb.exe: no devices/emulators found’ Error

adb.exe: no devices found error in command prompt

If you are getting adb.exe: no devices/emulators found error it means that the ADB daemon is unable to detect your device. It might be due to the following reasons.

  1. Your Android phone or tablet is not connected to the computer.
  2. You haven’t turned on USB debugging from the Developer options on your device.

Take care of the above things, reconnect your device and try again. The error should have gone way.

Bonus Tip

In order that your Windows computer can communicate with your Android device, you must keep USB debugging enabled on your device. Not just that, don’t forget to extend the screen timeout duration. As soon as you run the first ADB command, you’ll be prompted to Allow USB debugging on your device. You must select ‘Allow‘ to authorize ADB.

allow usb debugging on computer

Launch the Command Prompt or Windows PowerShell again to check whether the ADB is not recognized… error is fixed or not. Try any of the following commands:

adb
adb devices
adb version

command to check adb version

Fix Fastboot is not Recognized Error

The fixes I suggested above to solve ADB or ADB command not recognized error will also fix the following issue.

'fastboot' is not recognized as an internal or external command, operable program or batch file.

However, if you’re still getting the Fastboot is not recognized error while flashing TWRP.img file, a factory image, or root your Android device, here’s how to fix it. The solution should also work if Fastboot is not detecting a connected device.

  1. First of all, make sure you have downloaded the SDK Platform tools from above and extracted the downloaded zip file.
  2. Open the ‘platform-tools‘ folder.
  3. Now, copy or move the files you want to flash to your Android device to the same folder where ‘adb.exe‘ and ‘fastboot.exe‘ files are present.twrp.img file in adb fastboot folder
  4. Reboot your Android device into the Fastboot Mode using the following command.
    adb reboot fastboot
  5. While your device is in Fastboot Mode, use a compatible USB cable to connect it to the PC.
  6. Then launch a command window from the ‘platform-tools‘ folder. I have already described 3 ways to do that above.
  7. It’s time now to execute the following command.
    fastboot devices
  8. If you get the list of attached devices in the command window, it means everything is fine. However, if encounter any of the following issues, try plugging out the USB cable and insert it again. If it still doesn’t help, try to reboot your phone and PC and try again.
    • Fastboot not detecting device
    • Fastboot devices not showing in cmd
    • Fastboot waiting for device

The Fastboot is not recognized error should be gone.

If you are still getting any ADB or Fastboot related issues, please let us know!

Read Next: How to Disable Talkback on Android


Как установить ADB, Fastboot и драйвера


Утилиты ADB и Fastboot входят в состав комплекта разработки Android SDK (не стоит путать с Android Studio и уж тем более скачивать ее громоздкий установочный файл, если вы, конечно, не собираетесь заниматься разработкой под Android). ADB является инструментом для отладки, который позволяет получить доступ к консоли Андроид с компьютера (подробнее →) подключив гаджет к ПК по USB. При этом должна быть включена отладка. Fastboot предназначена для работы с устройством, когда то загружено в одноименном режиме (если такой есть на вашем аппарате).


Содержание — Как установить ADB, Fastboot и драйвера:

  1. Как установить ADB и Fastboot: инструкция
  2. Устанавливаем драйверы ADB и Fastboot под Windows
  3. Как начать работать с Fastboot и ADB

При помощи ADB можно управлять смартфоном/планшетом с компьютера: сделать бэкап приложенийсбросить графический пароль, записать скринкаст, перевести смартфон в режим Recovery и многое другое. Кроме того с ADB можно работать и через Wi-Fi. Для этого на вашем устройстве должны быть получены root-права, а также понадобится специальное приложение, осуществляющее подключение к компу по сети. Например, ADB Wireless либо WiFi ADB. Но это уже материал для отдельной статьи. 

Используя Fastboot, вы сможете устанавливать прошивки, кастомные Рекавери (TWRP или CWM), разблокировать Bootloader (на аппаратах HTC, Motorola, Sony, Nexus, Huawei, последних LG он заблокирован), очищать разделы системы.

Как установить ADB и Fastboot: инструкция

1. Первым делом переходим на официальный сайт, откуда можно скачать Android SDK: https://developer.android.com. Спускаемся вниз страницы к разделу «Command line tools only» и выбираем загрузку архива для Windows.

Command line tools only

2. Установите галочку в чекбоксе «I have read and agree with the above terms and conditions» и нажмите кнопку «Download Android Command Line Tools for Windows». Начнется загрузка архива.

Download Android Command Line Tools for Windows

3. Скачайте его и разархивируйте в корень Диска «C:».

4. Также необходимо загрузить Java Development Kit с официальной страницы. Перейдите на сайт, согласитесь с условиями лицензионного соглашения, отметив пункт «Accept License Agreement», и скачайте версию JDK, соответствующую разрядности вашей системы.

Accept License Agreement

После этого установите скачанный пакет. Дальше описаны несколько вариантов установки Fastboot и ADB – пользуйтесь тем, который для вас проще.

Первый способ

Вернитесь к папке c Android SDK, откройте «tools» и запустите «android».

Как установить ADB и Fastboot: инструкция

Отметьте пункт «Android SDK Platform-tools» (а также «Google USB driver», если у вас устройство Nexus) и нажмите «Install Packages».

Как установить ADB и Fastboot: инструкция

Про установку драйверов для других аппаратов читайте ниже.

Выберите «Accept License» и нажмите «Install».

Как установить ADB и Fastboot: инструкция

Мой лог показал, что в процессе установки возникла ошибка. Но в итоге все завершилось успешно.

Как установить ADB и Fastboot: инструкция

По завершении выполнения вышеописанных действий в папке «tools_версия-windows» появится «platform-tools», а в ней будут интересующие нас «ADB» и «Fastboot».

Как установить ADB и Fastboot: инструкция

Как установить ADB и Fastboot: инструкция

Второй способ

Перейдите в папку «sdk-tools-windows-версия» → «tools» → «bin» и, зажав клавишу «Shift», щелкните правой кнопкой мышки по пустой области. Выберите «Открыть окно команд» либо «Открыть окно PowerShell здесь», если на ПК или ноутбуке установлена одна из последних сборок Windows 10.

Открыть окно PowerShell здесь

Вставьте команду в PowerShell или командную строку (в PowerShell добавьте ./ вначале):

sdkmanager platform-tools

sdkmanager platform-tools

Щелкните «Enter», чтобы выполнить команду. Произойдет загрузка файлов и появится запрос на установку:

Accept? (y/N)

Accept? (y/N)

Чтобы разрешить, введите y, то есть «yes», и нажмите «Enter», после чего начнется установка «platform-tools».

platform-tools

В конце в командной строке отобразится сообщение, что процедура завершилась успешно. А папка «platform-tools» с ADB и Fastboot внутри появится в «sdk-tools-windows-version».

(!) Если по какой-либо причине не удается установить ADB и Fastboot предыдущими способами, воспользуйтесь третьим вариантом – просто скачайте архив «platform-tools» и разархивируйте на диск «C:».

Устанавливаем драйверы ADB и Fastboot под Windows

Чтобы компьютер корректно распознавал смартфон либо планшет, необходимо загрузить драйвер USB:

  • Samsung – драйвер входит в состав утилиты Kies: https://www.samsung.com либо же его можно скачать отдельно, выбрав нужную модель: https://www.samsung.com
  • HTC – в составе HTC Sync Manager: https://www.htc.com
  • Nexus – драйвер Android устанавливается вместе с Android SDK, о чем писалось выше.
  • Huawei – совместно с утилитой HiSuite: https://consumer.huawei.com
  • LG – установите LG PC Suite: https://www.lg.com
  • Motorola – смотрите на этой странице: https://motorola-global-portal.custhelp.com
  • Sony Xperia – драйверы FastBoot для всех моделей находятся здесь: https://developer.sonymobile.com
  • Xiaomi – Mi PC Suite: https://pcsuite.mi.com
  • MTK – для китайских аппаратов на чипах MediaTek: https://online.mediatek.com
  • Lenovo – выберите модель смартфона, планшета и загрузите ADB драйвер: https://support.lenovo.com
  • Решения для девайсов других производителей ищите на их официальных сайтах.

Существуют различные универсальные установщики ADB драйверов (к примеру, этот: https://adbdriver.com) – ими тоже можно пользоваться, например, когда по какой-то причине не удалось установить официальное решения.

Если для вашей модели идет драйвер без установщика, придется выполнить следующие действия:

1. Зайдите в «Панель управления» → «Диспетчер устройств». В Windows 10 достаточно нажать правой кнопкой мышки по меню «Пуск» и выбрать «Диспетчер устройств».

Устанавливаем драйверы ADB и Fastboot под Windows

2. Найдите в списке девайс для которого нужно установить драйверы. Клацните правой кнопкой мышки и нажмите «Обновить драйверы».

Устанавливаем драйверы ADB и Fastboot под Windows

Как видите, компьютер корректно распознает мой планшет Nexus 7. Если ваш ПК определяет смартфон неправильно или напротив устройства стоит желтый треугольник с восклицательным знаком внутри, «ручная» установка драйверов Android для вас обязательна.

3. Выберите пункт «Выполнить поиск драйверов на этом компьютере».

Устанавливаем драйверы ADB и Fastboot под Windows

4. Укажите путь к папке с драйверами на ПК.

Устанавливаем драйверы ADB и Fastboot под Windows

Дождитесь завершения установки и затем заново подключите гаджет к компьютеру по USB.

Как начать работать с Fastboot и ADB

Работа с ADB или Fastboot осуществляется из командной строки, зайти можно двумя способами:

Способ 1: Правой клавишей мышки клацните на «Пуск» и выберите «Командная строка (администратор)». Далее при помощи команд нужно перейти к папке с ADB и Fastboot (после ввода каждой нажимайте «Enter»).

Чтобы вернуться в корень диска «C:», используйте:

cd /

Благодаря этой команде открываем нужную папку:

cd

В моем случае получилось так:

cd tools_версия-windowsplatform-tools

Как начать работать с Fastboot и ADB

 У вас выйдет (разработчики Google изменили название архива уже после написания первоначальной редакции этой инструкции):

cd sdk-tools-windows-versionplatform-tools

Путь к Fastboot и ADB указан, теперь работаем с ними из консоли.

Чтобы не выполнять эти действия каждый раз, добавьте путь к «platform-tools» в переменную «Path». Сначала зайдите в папку, в строке навигации щелкните правой кнопкой мыши по «platform-tools» и выберите «Копировать адрес».

Копировать адрес

Перейдите в «Панель управления». Для этого нажмите «Win» + «R» и в поле «Открыть:» вставьте control. Нажмите «ОК».

control

Выберите «Система» → «Дополнительные параметры системы» → «Переменные среды…».

Переменные среды

Найдите перемененную «Path», выделите ее и выберите «Изменить…».

Path

Нажмите «Создать», вставьте путь к папке «platform-tools» и щелкните «ОК».

2: Зайдите в «sdk-tools-windows-version» → «platform-tools», затем, удерживая «Shift», щелкните правой кнопкой мыши по пустому месту и выберите пункт «Открыть окно команд» или «Открыть окно PowerShell здесь».

Введите следующее, чтобы проверить как ПК видит Android (в Windows PowerShell вставьте ./ перед командой):

adb devices

Не забывайте, что для работы с ADB должна быть включена отладка по USB! Больше полезных команд вы найдете в прошлой статье, ссылка есть в начале данного поста.


4 min read
August 17, 2020

Have you just gotten a new phone and is it already filled up with a bunch of spooky apps preinstalled? Have you tried long pressing and dragging them up your screen to uninstall? Alas! There isn’t any uninstall button. You have no choice; you feel like you are betrayed. Now you have had enough, you come up with all guns blazing- bold, determined and adamant about removing those apps. But it’s your new phone, you don’t want to root and temper. Disappointed? Don’t be! We have got you- here is how you can remove bloatware from MIUI without root.

Bloatware

Bloatware is the software that comes preinstalled and licensed on a device by the manufacturer itself. Most of the times, bloatware is merged as system app; hence the user does not have the administrative privileges to uninstall them. These apps can be useful sometimes but statistics shows otherwise.

Software vendors often make an agreement to integrate their products into the device’s system. These products are often tailored version of their original software. However, most of the time smartphone manufacturers slap apps into their system as per the demographic data. For example: apps like TikTok, Facebook, Instagram and Flipkart come preinstalled in Indian variants because of the demographic data. They are deemed as the most installed apps. Besides, company also add their own apps like browser, calculator, cleaner, documents, etc. as their trademark.

Bloatware occupy exceptional amount of your disk space and memory. Unless you use them, these apps just collide along to form a mound of debris. Moreover, they consume a lot of your battery and display advertisement. Even more- trojan, spyware, trackers and virus. Yes! These apps may be using, modifying or tracking our data under the hood. Just for record, Mi Browser was accused of sending user data report including browser history back into their main server, even in incognito mode. This is just a slight paradigm of what bloatware are pulling off beneath. These preloaded apps do not value your privacy and solitude. It is always better to get rid of them.

How to remove bloatware without root?

Here is a detailed guide on how you can remove bloatwares from your system. This method is only for Xiaomi devices, please do not perform it on other brands.

(While this method is a sure shot, we do not take liability of any damages. Even so, please comment down if you encounter any problem, we will try to help you as much as possible.)

Requirements

  1. Smartphone (with battery > 30%)
  2. A PC
  3. A USB data cable

Steps for Debloating

You have to perform a series of steps; be sure you check every one of them.

Step 1: Enable Developer Option

To enable developer option, go to your device SettingsAbout Phone. Now, you can see MIUI Version. Tap continuously on it until you get a toast that says ‘You are now a developer’.

Step 2: Turn on USB Debugging

To turn USB Debugging on, go to your device SettingsAdditional SettingsDeveloper Option. Locate USB Debugging and toggle it on. (You might get security warnings, just accept them.)

Step 3: Confirmation

Below the USB Debugging, you can see three other options. Check enable Install via USB and check enable USB Debugging (Security Settings). Confirm your options with the screenshot below :-

(The steps are similar for MI A-series devices running on Android One. Go to Settings > System > Developer options and enable USB debugging.)

Now that we have enabled necessary settings on our phone, turn your PC on and follow these steps precisely.

Step 4: Downloading Files

Get your PC and download these files accordingly. Don’t freak out with their names, they are the easiest.

·        Java SE Development Kit– for Windows, for Mac OS, for Linux

·        Xiaomi ADB/Fastboot Tools– download here

Step 5: Installation

After you have downloaded the above files, store them in one folder. Now install the JDK-14.0.2.exe that we just downloaded.

Step 6: Open .JAR file

Now click on XiaomiADBFastbootTools.jar that we downloaded earlier. Then open it. (Give permissions if it asks). You will see a window like this :-

Step 7: Connect your Phone

After the application is opened, connect your phone to the PC via USB. Check your phone- the device is going to ask for authorization, which you will have to allow.

Then wait for the application to detect your phone. You will see the window like this once it gets detected :-

Step 8: Debloating

After your phone is connected, you will see a list of system apps on the screen. Now, check all the apps you want to uninstall from your phone.

At the bottom, you can see an Uninstall button. Just click on it.

(Do not tamper with other options if you are not familiar.)

Step 9: Restart

Once the uninstallation is complete, safely unplug your USB. Then restart your device.

Parting Words

So, this was how you remove bloatware from Xiaomi devices. If you encounter any problems or issues, do explain it in the comment section below. Share your screenshots if you have to. We are here to help you.

In this comprehensive tutorial, we will show you various methods to fix all the types of ADB and Fastboot Errors. When it comes to custom development, ADB and Fastboot Commands are literally unsung heroes. Their usage is so much important that you wouldn’t be able to carry out any of these in the first place had it not been for these commands. The first entry point to this domain requires you to unlock the device’s bootloader, which isn’t possible until you boot the device to the Fastboot Mode.

After this, be it for flashing custom ROMs, recoveries like TWRP, or even rooting the device via Magisk (either by flashing Magisk App or patching and flashing boot.img), all these make use of Fastboot Mode. And for booting your device to Fastboot– you will need to use the ADB Commands. So this is a vicious cycle that is extremely hard to escape, and one which tech enthusiasts would like to escape from as well.

With that said, these commands aren’t free from their fair share of issues. Talking about issues, there are a plethora of them. While I have covered the most important ones [refer to the end section of this guide], I still get a few more near about every other day in the comments. After doing a few research, I came to the conclusion that nearly all the ADB or Fastboot errors have the same set of fixes.

While there is no universal fix, (there are 5-6 methods to fix these issues), one thing stays the same. These five-six methods are known to rectify all these command errors. So rather than documenting each of them under separate guides, I decided to document them under one roof. Without any further ado, let’s get started with this tutorial to fix all the ADB and Fastboot Errors.


  • How to Execute Android ADB Fastboot Commands Wirelessly
  • Run ADB Fastboot Commands directly on Android without Root
  • How to Use ADB and Fastboot Commands on Android Without PC
  • List of Useful ADB and Fastboot Commands

fix android adb fastboot errors

Given below are the various methods to fix the ADB issues. However, there’s no universal fix as such. You will have to try each one of them until you are able to achieve success. Furthermore, we will start off with the basic fixes before moving on to the slightly advanced ones. Follow along.

Use USB 2.0 Port and Official USB cable

First and foremost, you should use the USB 2.0 Port of your PC or laptop. There have been numerous instances of the USB 3.0 Ports causing issues while executing ADB commands. So make sure you plug the device into a 2.0 Port. Since we are discussing USB, make sure to use the official USB cables that shipped with your device.

use-usb-2.0-port-fix-adb-fastboot-errors

If that is not possible, then for alternatives use a cable that shipped in with other Android devices. Never try with a standalone USB cable as there are some that are only for charging purposes, and are unable to carry out any advanced functionalities. So use a USB 2.0 Port and an official USB cable and see if it fixes the ADB and Fastboot errors or not.

Enable USB Debugging

It goes without saying that to execute an ADB command, you will have to enable USB Debugging on your device beforehand. This helps your PC is identifying that the device is booted to this mode. So head over to Settings > About Phone > Tap on Build Number 7 times [MIUI Number in case of Xiaomi] > Go back to Settings > System > Advanced > Developer Options > Enable USB Debugging.

usb-debugging-fix-adb-fastboot-errors

Install Android SDK Platform Tools

There are a plethora of ADB tools across the web. However, most of them have a missing binary or two. Hence you should always stick with the official ADB drivers provided by Google. So download the Android SDK Platform Tools on your PC and see if it fixes the ADB and Fastboot errors or not.

Launch CMD inside ADB directory

Firstly, maintain a safe distance from PowerShell and try executing all the commands in the Command Prompt itself. Furthermore, you should only launch the Command Prompt window inside the ADB directory. So once you have downloaded the Android SDK, extract it to any convenient location on your PC.

command-prompt-fix-adb-fastboot-errors

You should then get the platform-tools folder. Head over to its address bar, type in CMD, and hit Enter. This shall launch the Command Prompt window inside the ADB Directory (platform-tools). Now try executing the desired command and verify if it fixes the ADB and Fastboot errors or not.

Authorize USB Debugging

You might get an unauthorized ADB error when you haven’t responded to the prompt on your device to authorize the computer’s RSA key. So to authorize the connection, you could refer to our comprehensive guide on How to Fix Unauthorized Device with ADB Commands [3 methods]. The shorter instruction is to type in adb devices inside CMD and you should get the prompt on your device. Tap Allow and the connection stands authorized.

authorize adb connection fix adb fastboot errors

Restart ADB Server

  1. In some instances, you should consider killing the current running ADB server and relaunching its new instance.
  2. To do so, enter the following two commands in the CMD window that should be opened inside the platform-tools folder.
    adb kill-server
    adb start-server

    adb-kill-server-start-server-fix-adb-fastboot-errors

  3. Once you have successfully executed both these commands, check if the ADB and Fastboot errors have been fixed or not.

Prefer PTP Mode over MTP

As strange as it may sound but the Media Transfer Protocol mode of USB connection has known to conflict with ADB commands. Hence you should consider switching over to the Picture Transfer Protocol mode. Here’s how it could be done:

change default usb configuration android fix adb fastboot errors

  1. Head over to Settings on your Android device.
  2. Then go to System > Developer Options.
  3. Scroll to Default USB Configuration and select PTP.

Now try executing the desired command in the CMD window and see if it fixes the ADB and Fastboot errors or not.

Install Android ADB Interface Drivers

Nowadays these drivers are automatically installed the first time you connect your device to the PC via USB cable. But there have been a few instances where the drivers needed to be manually installed. Maybe your PC falls in this domain as well. So refer to our detailed guide to How to Install Google’s Android Bootloader Interface Drivers. Once done, check if it was able to fix the underlying ADB and Fastboot errors or not.

install adb drivers fix adb fastboot errors

Set Up ADB Environmental Variables

The first time the ADB and Fastboot Drivers are installed, they automatically pick up the system variables. However, if at any point in time you had another instance of any ADB-related tools, then the environmental variables would overlap. As a result, your PC wouldn’t ne able to understand which ADB.exe file should it use. The fix for that is fairly simple, though a little lengthy. You will have to manually provide the ADB Environmental Variables to your system and delete all the other ones. Here’s how it could be done:

  1. Head over to the Start menu and search for View Advanced System Settings.
    view-advanced-system-settings-fix-adb-fastboot-errors
  2. Go to the Advanced tab and click on the Environmental Variables button.
    environmental-variable-fix-adb-fastboot-errors
  3. You should now see two sections: User Variables and System variables. As for this guide, we would be dealing with the latter. So select Path from the System Variables and click on Edit.
    system-variable-adb-path-fix-adb-fastboot-errors
  4. It will bring up the Edit environment variable option, click Browse from the right-hand side. [If you find any duplicate ADB path already added there, then select it and hit Delete].
    edit-environmental-variable-fix-adb-fastboot-error
  5. Now navigate to the location where you have installed the ADB and Fastboot binaries and select the platform-tools folder and click OK.
    platform-tool-path-environmental-variables-fix-adb-fastboot-errors
  6. You should now see this directory successfully added to the environment variables. Click OK to close the dialog box.
    adb-path-added-environmental-variables-fix-adb-fastboot-errors
  7. Likewise, the path will also be visible in System variables under Environment Variables, as shown in the below image. Click OK to close this dialog box as well. That’s it. Your error now stands rectified.
    adb-path-added-platform-tools-fix-adb-fastboot-errors

So these were the various methods to fix all the ADB and Fastboot errors. We will be updating this guide with more fixes as and when get hold of the same. Likewise, if you are also aware of any other method, do share with us in the comments section below. Furthermore, all your queries pertaining to the aforementioned instructions are welcome in the comments.

Most Common ADB and Fastboot Errors and their Fixes

Here are some specific ADB and Fastboor Errors that I have covered separately since they are known to be among the most frequently faced ones.

  • Fix Waiting for Device Error in ADB or Fastboot Commands
  • How to Fix Android Device stuck in Fastboot Mode
  • Fix adb server version doesn’t match this client; killing.
  • How to fix ADB Device not found [List of Devices Attached is blank]
  • Detailed Steps to Fix adb is not recognized Error
  • How to Fix Unauthorized Device with ADB Commands [3 methods]
  • How to Fix Nokia Device Stuck in No Command Screen
  • Fix Failed (remote: ‘flashing is not allowed for critical partitions)
  • Fix FAILED (remote: Partition should be flashed in fastbootd)
  • How to Fix FAILED (remote: Command not allowed)
  • Fix fastboot: error: Couldn’t parse partition size ‘0x’
  • How to Fix FAILED (remote: Check device console)
  • Fix Fastboot Erase System Command Not Working

About Chief Editor

Sadique Hassan

administrator

A technical geek by birth, he always has a keen interest in the Android platform right since the birth of the HTC Dream. The open-source environment always seems to intrigue him with the plethora of options available at his fingertips. “MBA by profession, blogger by choice!”

You need to install ADB and Fastboot drivers for a variety of reasons. If you are looking to install a factory image, for example, you need this — particularly helpful if you wish to try Android 11 on your Pixel device. However, it is also useful if you want to flash a TWRP recovery image file, or patched boot image (Magisk), sideloading an update, transfer files, and many other purposes.

The ADB and Fastboot toosl are pretty useful if you are interested in root and custom recovery stuff, let alone being able to install an update manually using the sideload command. Let’s see how to install ADB and fastboot driver on your PC, but also, how to use ADB and Fastboot without even installing them systemwide.

What’s ADB?

ADB stands for Android Debug Bridge. It works when the device is powered on and booted into OS or Recovery. The tool helps in sending basic Linux commands, and a variety of Android specific commands from PC to connected Android devices.

What’s Fastboot?

Fastboot is a more powerful tool than ADB and it works only in bootloader/fastboot mode. It allows you to re-flash system partitions on your Android device and requires a device with an unlocked bootloader. It’s particularly useful when you want to update your device manually or in a rare situation when you accidentally soft-brick your device and need to install a clean stock system image.

However, setting up ADB and Fastboot can be very tricky on a Windows machine. But thanks to XDA member Snoop05 who has developed a small program to quickly install both ADB and Fastboot files on your PC (system-wide) along with proper drivers. Downloads and installation instructions are given below.

How to use ADB and fastboot without setting up anything

  1. Download the latest ‘platform tools’ (ADB and fastboot drivers) from Google from here.
  2. Extract the content of the file. You will get a folder called ‘platform tools’. So, this is the folder where you have files like adb.exe and fastboot.exe.
  3. Copy the required file(s) into this folder. However, if no file is required, then simply ignore this step.
  4. Now, open a PowerShell window or a command window here using the shift+right-click trick.
  5. Run the command.
    Note: If you get an error in PowerShell window, be sure to add . before the command without any space. (adb devices will be .adb devices).

That’s all. It’s that simple, actually!

Is it working?

If the above works for you, simply ignore all the content below. The content below is more about getting the ADB/fastboot to wokr everywhere on Windows so that you don’t need to copy the files into the ‘platform tools’ folder.

But if you insist on becoming a pro, here you go.

Method 1: Install the latest versions manually

Part 1: Get ADB and Fastboot driver

  1. Download the latest ‘platform tools’ (ADB and fastboot drivers) from Google from here.
  2. Extract the content of the file. You will get a folder called ‘platform tools’.
  3. Move the ‘platform tools’ folder to C drive so that you can easily access it anytime.

It’s done!

You can use the ADB and Fastboot commands from this folder by making sure your ADB/PowerShell window points to this folder. For this, simply open the command window or a PowerShell window from this folder only. Open the ‘platform tools’ folder, type cmd in its address bar, and then hit the enter key. A command window will open up and its location will be this folder only.

The next part, though, will help you run ADB and Fastboot from anywhere on PC. Which makes it very easy to use ADB and Fastboot commands.

Part 2: Get ADB and Fastboot driver everywhere on PC

This is not a must, BTW, as you can use the ADB and Fastboot from the platform tools folder anytime as explained above. See another guide on the bottom of the article, in a section called “How to use ADB and Fastboot from the ‘platform tools’ folder”.

  1. Copy the path (address) of the ‘platform tools’ folder. You can shift+right click to get the option called ‘Copy as Path’, using which will copy the path to PC’s clipboard. Mine is in the C drive, and here is its path: “C:platform-tools”
  2. Open Environment Variables settings by searching for it in Windows search. Otherwise, find it manually as given below:
    1. Right-click the Computer icon.
    2. Click Properties.
    3. Click Advanced system properties.
    4. In the window that pops up, click Advanced.
    5. Click Environment Variables.
  3. Under ‘System variables’ section, click Path option to select it.
  4.  Click the Edit button.
  5. Add the path of the ‘platform tools’ folder:
    1. On Windows 10, click the New button, and then copy the path of your ‘platform tools’ folder.
    2. On the older version of Windows, you may need to copy the path after the current paths added there. Paths are separated by the use of semi-colon, so make sure there is a semi-colon before and after the path of your ‘platform tools’ folder.
  6. Click OK, then again OK, and then again OK to exit.
  7. Open a command window or a PowerShell window and type adb and then hit the enter key, you shall get a list of adb commands. Meaning, adb is working from everywhere on your Windows PC. Try the same with fastboot.

Method 2: 15 Second automatic installer

Note that as the ADB and Fastboot files installed by the automatic installer are quite old now, you need to update them, as given in step 4. So, make sure of that. The drivers installed automatically may cause you problems, for example, when trying to flash a factory image (Android 11 developer preview, for example) where the old ADB and Fastboot drivers will be unable to install the Android 11 ROM properly.

  1. Download the adb-setup-1.4.3.exe file from here.
  2. Double-click/run the adb-setup-1.4.3.exe file.
  3. You will see a command prompt window with blue background. Say YES to all the prompts on this screen.
    └ To say YES, just type Y and hit enter.
    15 Seconds ADB and Fastboot Installations
  4. Update the installation with the latest drivers:
    1. Download the latest ‘platform tools’ (ADB and fastboot drivers) from Google from here.
    2. Extract the content of the file. You will get a folder called ‘platform tools’.
    3. Copy the content of the ‘platform tools’ folder to the ADB folder in the C drive that was created by the automatic installer.
    4. Yes, replace all the old files in ‘ADB’ with all the new files from ‘platform tools’ folder. Done!

Once ADB, Fastboot and Drivers are installed, the setup window will automatically close and you’ll have a working ADB and Fastboot setup throughout your system. Enjoy!

How to use ADB and Fastboot from the ‘platform tools’ folder

So, if you can’t add the path of the ADB and Fastboot files (the ‘platform tools’ folder, that is), here is how to use these tools.

Method 1: Open the CMD/PowerShell window in platform tools folder

  1. Open the ‘platform tools’ folder on your PC.
  2. Left-click on the empty space in the folder. (This is to remove any selection in the folder.)
  3. Now, shift+right-click on the empty space.
  4. Click ‘Open PowerShell Window here’ option.
  5. A PowerShell window will open up whose location will be the ‘platform tools’ folder only.
  6. Type the command adb devices to test it. (Make sure you have enabled USB Debugging on your Android device.)
  7. Run the command by hitting the enter key. You shall get a random serial number like below.
  8. That shows that ADB is working. Test a fastboot command too. Before you do that, reboot the device in fastboot mode (run the command adb reboot bootloader). When in fastboot mode, try a fastboot command like fastboot devices to confirm fastboot is also working alright.
  9. That’s all. To reboot the device, run the fastboot command fastboot reboot and it shall restart right away.

Done!

Method 2: Use the path of adb.exe or fastboot.exe as required anywhere

You can copy the path of adb.exe and fastboot.exe files for use in the command/PowerShell window that has been opened anywhere on Windows. Here is how we can use and run ADB/fastboot command:

  1. Open a PowerShell/command window. You can use Windows search for this.
  2. You can see the location of the PowerShell window above is nor the ‘platform tools’ folder. It’s opened in the user folder, where I don’t have the adb and fastboot files.
  3. To use adb, we need to copy the adb.exe’s path. Go to the folder where you have the adb.exe (the ‘platform tools’ folder), and shift+right-click on it.
  4. Click Copy as path.
  5. Paste it in the PowerShell window.
  6. Remove the invited commas from path address.
  7. Hit the space bar, and then type the rest of the command. For example, to run the adb devices command, we only need to add the ‘devices’ in the PowerShell window. Here’s how it will look.
  8. Hit the enter key now. It will run the adb devices command. Here’s the result:
  9. You can flash the files like this. For example, if you wish to install TWRP recovery, then download its .img file (let’s call it twrp.img), go to that folder, open a command windows in that folder using shoft+right click, and then use this command with the device in fastboot mode: C:platform-toolsfastboot.exe flash recovery twrp.img

Done. Let us know if you need any help in this regard.

Method 3: Use the path of the file on your PC

A quick workaround to Method 2 above is to use the path of the file in the ADB folder.

  1. Go to the folder where you have the adb.exe and fastboot.exe files. Basically, this is your ‘platform tools’ folder.
  2. Open a PowerShell/command window here using the shit+right click trick mentioned above.
  3. Run the ADB commands as you like (in PowerShell, add . before adb without any space):

    1. For restarting the device into fastboot mode, simply type adb reboot bootloader and then hit the enter key. (In PowerShell, the command will become: .adb reboot bootloader)
    2. For restarting the device into recovery mode, simply type adb reboot recovery and then hit the enter key.
    3. To transfer a file, type adb push <insert path of the file on your windows PC> /sdcard/
    4. To sideload an update in recovery mode, type adb sideload <insert path of the file on your windows PC>
      (Example: adb sideload “D:Downloads/walleye-rpp1.200123.016image-walleye-rpp1.200123.016.zip”)
  4. Run the fastboot commands as you like (make sure the device is in fastboot/bootloader mode; and you will need to add . in PowerShell window)):

    1. For restarting the device, simply type fastboot reboot and then hit the enter key.
    2. To boot the device using TWRP file: fastboot boot <path of twrp recovery file on your PC>
    3. To flash the TWRP file in the boot partition (modern phones): fastboot flash boot <path of twrp recovery file on your PC>
    4. To flash the TWRP file in the recovery partition (older phones): fastboot flash boot <path of twrp recovery file on your PC>
    5. To install a factory image, extract the factory image zip file, and copy all files from it in the ‘platform tools’ folder. (Or, copy the files in the platform tool folder to the folder where you extracted the factory image file, so that all the files from factory image and platform tools (adb.exe, fastboot.exe, etc.) are in a single folder). And then, simply run the flash-all.bat to install the factory image.

That’s all.

Опытные пользователи любят настраивать смартфоны по своему усмотрению. В этом помогают специальные утилиты. Одна из таких программ — Xiaomi ADB Fastboot Tools. Это инструмент, позволяющий удалить ненужные системные приложения, очистить кэш, сбросить устройство до заводских настроек, заблокировать загрузчик и т. д. Сегодня мы подробно поговорим о данной утилите: выясним, как ее установить на компьютеры Windows, Linux, Mac и как правильно пользоваться.

ADB Fastboot Tools представляет собой служебное приложение с расширенными возможностями. Функционал больше всего оценят владельцы телефонов с активным бутлоадером и рут-правами. Если же у вас отсутствует root, а загрузчик заблокирован – возможности программы будут довольно ограничены.

При подключении смартфона утилита выдает подробную информацию о модели: серийный номер, кодовое имя и состояние бутлоадера.

Обратите внимание, что Xiaomi ABD/Fastboot Tools – это программа исключительно для опытных пользователей. Все действия в ней вы проводите на свой страх и риск. Убедитесь, что обладаете необходимыми навыками и знаниями.

Функции и особенности

Программа в основном используется для удаления системных приложений на Android. Но есть и другие функции:

  • Перевод смартфона в режим Fastboot, Recovery или EDL.
  • Очистка кэша или полное удаление данных (сброс до заводских настроек).
  • Блокировка/разблокировка загрузчика – только для моделей из серии Android One.
  • Включение Google камеры (с использованием TWRP Recovery).
  • Прошивка через Фастбут.

Где скачать программу

Официального сайта с Xiaomi ADB Fastboot Tools нет. Но программу можно без проблем загрузить по ссылкам ниже с репозитория Github. Есть как утилита только для Windows, так и универсальная версия java, которая рассчитана на операционные системы Windows, Linux и Mac.

Файл с расширением .jar обладает расширенным функционалом и чаще обновляется. Но если вы не знакомы с программным обеспечением java – рекомендуем скачать стандартную версию, которая подойдет для Windows 10 и более ранних сборок.

Установка Xiaomi ADB Fastboot

Последние сборки Xiaomi ADB/Fastboot Tools идут только в JAVA приложении, то есть с расширением .jar. Для включения утилиты нужно установить дополнительный компонент Oracle Java отсюда.

Установка программы на Windows 10

Нижеописанная инструкция подойдет, если вы скачивали Windows-версию (не java!).

  1. Открываем Проводник и находим скачанный архив. Распаковываем его – желательно, на системный диск.
    Установка Xiaomi ADB Fastboot Tools на Windows 10
  2. Находим распакованный файл с расширением .exe и запускаем его. Утилита откроется сразу, установка не требуется. Теперь можно приступать непосредственно к использованию программы.

Рассмотрим правильное подключение смартфона и основные взаимодействия с утилитой. Инструкции представлены в ознакомительных целях, редакция не несет ответственности за ваши действия.

Проверка работоспособности adb и fastboot

Для начала нужно убедиться, что программа распознает подключенное мобильное устройство. Соединяем телефон с компьютером по USB-проводу и запускаем утилиту. Не забываем, что перед этим необходимо включить отладку по ЮСБ.

В программе кликаем по большой кнопке «Debloater». Начнется распознавание подключенного смартфона. Если синхронизация успешная, появится информация о модели. Надпись «No device found» сообщает об отсутствии необходимых драйверов. Установите универсальные драйвера adb и fastboot, и повторите попытку.
Работа с Xiaomi ADB Fastboot Tools

Еще сопряжение можно проверить, перезагрузив смартфон через вкладку «Reboot into system» (в пунктах «ADB Tools» и «Fastboot Tools»). Если телефон откликнулся на команду и перезагрузился, значит, подключение установлено.

Удаление системных приложений

Пользователи чаще всего используют утилиту, чтобы удалить ненужные предустановленные приложения. У нас есть подробная статья, в которой мы поэтапно рассказывали о процедуре, а также о том, какие приложения можно удалять на MIUI 10 и MIUI 11 без вреда для операционной системы. Этот перечень будет актуален и для Миюай 12. Здесь вкратце опишем весь процесс:

  1. Активируем режим для разработчиков и включаем отладку по USB.
  2. Ставим на компьютер все необходимые драйвера.
  3. С помощью кабеля подключаем смартфон к компьютеру.
  4. На телефоне в режиме работы ЮСБ выставляем «Передача файлов».
  5. В ADB Fastboot Tools кликаем «Debloater», а в смартфоне разрешаем отладку по USB (тапаем «ОК» в появившемся окне).
  6. Опять нажимаем «Debloater». Появляется список программ, которые можно удалить. Выставляем галочки напротив названий, и жмем «Uninstall».
    Удаление системных приложений на Xiaomi без рут прав
  7. Если удаление прошло успешно, в левой стороне экрана появится список операций, а внизу «Done».
  8. Отключаем мобильное устройство от ПК и перезагружаем.

Теперь вы знаете, как быстро и легко удалить системные приложения и игры на телефоне Xiaomi.

Дополнительные функции

С помощью Xiaomi ADB/Fastboot Tools вы можете:

  • Перевести смартфон в режим расширенной перезагрузки: Fastboot, Recovery или EDL, кликнув по соответствующим вкладкам.
  • На устройствах с разблокированным загрузчиком есть возможность включить Camera2 API.
  • Прошить конкретный раздел или весь телефон через Фастбут.
  • Владельцы смартфонов из линейки Android One могут разблокировать/заблокировать загрузчик, используя данную программу.
  • Выполнить очистку кэша или удаление всех параметров и данных со смартфона.

Частые проблемы

  • Ошибка «Cannot find Adb/Fastboot Xiaomi» возникает, если на компьютере не хватает драйверов. В видео «Универсальные драйвера на Xiaomi для подключения к ПК» мы рассказывали, как установить drivers на Windows. После данной процедуры приложения без проблем будут распознавать подключенный девайс.
  • Программа не видит телефон, хотя драйвера стоят. Здесь может быть несколько причин: отладка по USB отключена, либо в типе подключения просто указана зарядка, а не передача файлов. Еще влияет версия утилиты: возможно, ее нужно обновить, как и программное обеспечение на телефоне. Если ничего не помогает, попробуйте воспользоваться java-версией.
  • Приложение не удаляется. Проверьте, установлено ли оно на телефоне. Возможно, вы удаляли его ранее. Если ADB Fastboot Tools виснет на этапе удаления, просто закройте программу, отсоедините телефон и через некоторое время повторите попытку. Зависания часто случаются на Global ROM.

Видео-инструкция

Ответы на популярные вопросы

Что можно удалять из списка приложений в Xiaomi ADB Fastboot Tools?

Любое приложение теоретически можно удалить без вреда для телефона. Как вы могли заметить, в перечне нет важных сервисов, таких как Безопасность, Контакты, Звонки. Но пользователи отмечают, что удаление некоторых приложений, указанных в программе, все равно вызывает сбои в смартфоне. Более подробная информация есть в видео-инструкции.

Как восстановить системное приложение?

Большинство системных приложений есть в Google Play, например, Гугл Карты или Календарь. Загрузите их оттуда и установите стандартным способом. Либо сбросьте девайс до заводских настроек.

Чем отличаются отключенные программы от удаленных?

Отключенные программы продолжают потреблять оперативную память и занимать место на смартфоне. Также система может их включить без вашего ведома.

Мы рассмотрели скачивание, установку и основной функционал утилиты Xiaomi ADB Fastboot Tools. Как видим, этот инструмент точно понравится и пригодится опытному пользователю. Если у вас остались вопросы – обращайтесь за помощью в комментарии.

  • Ошибка cannot find a valid baseurl for repo base
  • Ошибка cannot find 800x600x32 video mode скачать патч
  • Ошибка cannot find 800x600x32 video mode при запуске гта сан андреас решение
  • Ошибка cannot find 640x480 video mode gta vice city windows 10
  • Ошибка cannot find 1536x864x32 video mode samp