Failed remote unknown command fastboot что делать
Failed remote unknown command fastboot что делать
Platform-tools: r31.0.3
ADB: 1.0.41 (31.0.3-7562133)
Fastboot: 31.0.3-7562133
Make_f2fs: 1.14.0 (2020-08-24)
Mke2fs: 1.46.2 (28-Feb-2021)
Последнее обновление утилит в шапке: 01.08.2021
Если что-то неправильно, то в списке подключенных устройств (List of devices attached) будет пусто.
adb push Копировать файл/папку PC->девайс.
adb pull [ ] Копировать файл/папку девайс->PC.
adb sync [ ] Копировать PC->девайс только новые файлы.
Ключи:
-l Не копировать, только создать список.
adb shell Запуск упрощенного unix shell.
Примеры использования
adb emu Послать команду в консоль эмулятора
adb install [-l] [-r] [-s] Послать приложение на устройство и установить его.
Пример: adb install c:/adb/app/autostarts.apk Установить файл autostarts.apk лежащий в папке /adb/app/ на диске с:
Ключи:
-l Блокировка приложения
-r Переустановить приложение, с сохранением данных
-s Установить приложение на карту памяти
Установка split apk
adb uninstall [-k] Удаление приложения с устройства.
Ключи:
-k Не удалять сохраненные данные приложения и пользователя.
adb wait-for-device Ждать подключения устройства.
adb start-server Запустить службу/демон.
adb kill-server Остановить службу/демон.
adb get-state Получить статус:
offline Выключен.
bootloader В режиме начальной загрузки.
device В режиме работы.
adb get-serialno Получить серийный номер.
adb status-window Непрерывный опрос состояния.
adb remount Перемонтировать для записи. Требуется для работы скриптов, которые изменяют данные на.
adb reboot bootloader Перезагрузка в режим bootloader.
adb reboot recovery Перезагрузка в режим recovery.
adb root Перезапуск демона с правами root
adb usb Перезапуск демона, прослушивающего USB.
adb tcpip Перезапуск демона, прослушивающего порт TCP.
adb ppp [параметры] Запуск службы через USB.
Note: you should not automatically start a PPP connection. refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
Параметры:
defaultroute debug dump local notty usepeerdns
fastboot erase Стереть раздел.
Разделы: boot, recovery, system, userdata, radio
Пример: fastboot erase userdata Стирание пользовательских данных.
fastboot update Прошивка из файла имя_файла.zip
fastboot flashall Прошивка boot + recovery + system.
fastboot getvar Показать переменные bootloader.
Пример: fastboot getvar version-bootloader Получить версию bootloader.
fastboot boot [ ] Скачать и загрузить kernel.
fastboot flash:raw boot [ ] Создать bootimage и прошить его.
fastboot devices Показать список подключенных устройств.
fastboot continue Продолжить с автозагрузкой.
fastboot reboot Перезагрузить аппарат.
f astboot reboot-bootloader Перезагрузить девайсв режим bootloader.
Перед командами fastboot можно использовать ключи:
-w стереть данные пользователя и кэш
-s Указать серийный номер устройства.
-p
Указать название устройства.
-c Переопределить kernel commandline.
-i Указать вручную USB vendor id.
-b Указать в ручную базовый адрес kernel.
-n
Указать размер страниц nand. по умолчанию 2048.
Пример ниже выводит в лог все сообщения с тэгом «ActivityManager» с приоритетом «Info» или выше, и сообщения с тэгом «MyApp» и приоритетом «Debug» или выше:
adb logcat ActivityManager:I MyApp:D *:S
Последний элемент в выражении фильтра *:S устанавливает приоритет «silent» для всех остальных тэгов, тем самым обеспечивая вывод сообщений только для «View» и «MyApp». Использование *:S – это отличный способ для вывода в лог только явно указанных фильтров (т.е. в выражении фильтра указывается «белый список» сообщений, а *:S отправляет все остальное в «черный список»).
При помощи следующего выражения фильтра отображаются все сообщения с приоритетом «warning» или выше для всех тэгов:
adb logcat *:W
Если logcat запускается на машине разработчика (не через удаленный adb shell), можно также установить значение выражения фильтра по умолчанию задав переменную окружения ANDROID_LOG_TAGS:
export ANDROID_LOG_TAGS=»ActivityManager:I MyApp:D *:S»
Следует обратить внимание что задав переменную окружения ANDROID_LOG_TAGS она не будет работать в эмуляторе/устройстве, если вы будете использовать logcat в удаленном shell или используя adb shell logcat.
Вышеописанная команда export работает в ОС *nix и не работает в Windows.
Контроль формата вывода лога
brief Показывать приоритет/тэг и PID процесса (формат по умолчанию).
process Показывать только PID.
tag Показывать только приоритет/тэг.
thread Показывать только процесс:поток и приоритет/тэг.
raw Показать необработанное сообщение, без полей метаданных.
time Показывать дату, время вызова, приоритет/тэг и PID процесса.
long Показывать все поля метаданных и отдельно сообщения с пустыми строками.
How to Fix FAILED (remote: unknown command) Error
In this tutorial, we will show you how to fix the FAILED (remote: unknown command) Error. Android ecosystem, thanks to its open-source nature allows for a plethora of tips and tricks to be carried out. Everyday users usually satisfy their taste with icon packs, themes, and custom launchers. But that isn’t it where the capabilities of Android is limited to. It’s just the tip of the iceberg. If you go ahead and unlock the bootloader of your device, you simply open the gate to tons of custom developments. For example, installing a custom recovery like TWRP, flashing custom ROMs, getting administrative privileges in the form of the root, flashing kernels, all this is now possible.
We get it. Not everyone is a fan of this, considering the risks associated with it. But now there has been a tectonic shift in the landscape. More users are changing ships than ever before. This change of guard has happened even more so in the past few years. Thanks to the ease with which one could easily repair even some hard-bricked devices, many users are now ready to take this giant leap forward and join hands with the developer community. And since you have landed on this page, you might very well be an esteemed guest of the same.
The thing is while performing these tweaks, you are bound to face an error or two. But as far as my experience and many others across the online community, the FAILED (remote: unknown command) Error is there most frequent one. But why does this error show up in the first place and more importantly how to fix the same? Well, today we are going to answer all such things in detail. Follow along.
An Important Note
FAILED (remote: unknown command) Error: Everything you need to know
Although not limited to one domain, but we are seeing reports of most users facing this error while unlocking the bootloader or flashing a file. In the case of former, Motorola devices seem to be the major culprit (though it’s not limited to it). For the latter, booting a TWRP IMG file takes a major share of the blame. But again, these are just two of the ocean causes why this may happen. So fastboot oem unlock and fastboot boot recovery.img are the two most frequent times users face this error.
Furthermore, the strange thing is that your device gets successfully recognized, even when you face the FAILED (remote: unknown command) Error. For example, try executing the adb devices command when your device is connected in the ADB command. Or enter fastboot devices when the device is connected in fastboot mode. In both these cases, you will get the device code as well. So if the PC successfully recognizes your device in ADB and Fastboot Mode, why this error occurs? Well here is everything you need to be aware of and the potential fixes. Follow along.
When Unlocking Bootloader
We have seen many users, especially from the Motorola OEMs being greeted with the following error:
Apart from Motorola, you could also face this error on other OEMs as well. This is because the code in nearly all Android devices is either fastboot oem unlock or fastboot flashing critical. So here is what all you could try out as the fix:
Check ADB and Fastboot Binaries:
When: The Most General Cases
This is the most common error that many users end up committing. There are tons of ADB and Fastboot binaries present around. These include the 2Min ADB tools, the more popular Minimal ADB and Fastboot Tools, and many more. However, we would suggest you to never go for these tools. Only use the official Android SDK and Platform Tools provided by Google. The reason is these tools only contains a few files just necessary to carry out basis ADB and Fastboot commands.
While some times they work, most other times they wouldn’t. Likewise, these tools don’t even get regular updates. So we would request you to leave all the other tools aside and only go with the official one provided. However, if you are already using this build but even then facing the FAILED (remote: unknown command) Error, then refer to the next fix.
Check the OEM Unlock Toggle
When: While Unlocking Bootloader
Case 1
We have seen it happen in some cases that the OEM Unlock toggle might have been disabled. Why does this happen is rather unknown, but this is indeed the case for a few users. So reboot your device either by fastboot reboot command or using the hardware keys and then follow the below steps to enable OEM Unlocking:
Case 2
It might also be the case that you are using the wrong command to unlock the bootloader. A very common cause of this error happened with the Nexus 6P users. Unknowingly they were using the fastboot oem unlock command and getting greeted with the said error. The thing was the correct command had been changed now and they had to enter fastboot flashing unlock and in some cases, fastboot flashing unlock critical.
Once you use the new commands, please let us know whether the FAILED (remote: unknown command) Error gets rectified or not.
Case 3
Some devices have stopped the unlocking bootloader process all-together. Nokia and Huawei are two such OEMs that are really against the notion of custom development, it seems. Similarly, you could also see similar messages for other carriers (taken from one of the Motorola Community for one of their devices)
“Your phone is not unlockable as it is not on the unlock list, has a mediatek processor, and doesn’t support the unlock commands”.
Check the Build/Version of the File
When: While Dealing with TWRP and other flashable ZIPs
Since the inception of A/B partition, the recovery partition has been removed. So you no longer can directly flash the twrp file on those devices. As a result, you will first have to boot the img file via fastboot boot twrp.img and then flash the TWRP installer ZIP file to permanently get this custom recovery. However, if you are flashing an incompatible build of TWRP, then this error is bound to occur. If your device officially supports a TWRP Recover, then there is no issue as you could directly get a hold of the same from the TWRP home page. However, the problem stems out from unofficial builds.
Many sites are offering incorrect TWRP builds, which you might have flashed on your device, then the FAILED (remote: unknown command) Error is imminent. Regarding the unofficial build, we would only suggest you search on XDA. The unofficial recoveries that we share here at Droidwin are also taken from XDA as well.
That is the only source of trustworthy unofficial TWRP builds. Also, we would suggest not to flash one variant’s recovery on another. For example, in most cases, you might get success by flashing the Redmi Note 8 TWRP on Note 8 Pro, but in some cases, it might even brick your device. So always keep these points in mind, and you shouldn’t face this issue ever again.
Other General Fixes
When: No specific categorization. Can happen any time and while performing any tweak
If none of the above things worked out, you could also try these tricks. More of than not, it is not the above highly technical tips but the below-mentioned tweaks that do the job. So we would request you to give them a shot as well.
Case 1: Remove All Lock Screen Security Measures
First of all, before booting your device to Fastboot or ADB Mode, we would request you to delete all the security locks, including Fingerprint, Face unlock, pattern or Password. Set the lock screen to None, at least for the time being. Here is how it could be done:
Case 2: USB Drivers
Also, keep in mind that the correct USB drivers are installed. By USB Drivers, we mean both the OEM specific drivers as well as the Fastboot drivers. The former is needed when you connect your device to PC in a switched-on state. This is the case when you wish to execute ADB commands, as in ADB commands, your device remains in a switched-on state. The Fastboot drivers will be needed, as the name suggests when your device is booted to Fastboot Mode.
In that case, you will be needing the drivers from Android SDK and Platform Tools installed on your PC. If you face this error when your device is booted to EDL or Emergency Download Mode, then make sure that the Device Manager shows Qualcomm HS-USB QDLoader 9008, rather than the earlier QUSB_BULK. If that is not the case, then refer to our detailed guide on how to get these drivers. If you have successfully installed the above-mentioned drivers, then proceed with your ADB or Fastboot commands. The FAILED (remote: unknown command) Error might have been rectified by now.
Case 3: USB Port, Cable and Windows Version
Well, all these might sound too easy to be true, yet they sometimes end up doing wonders. All these three have managed to work out in my favor when everything failed. The thing is I was constantly getting bugged with an error or two. Dug up my brain, found out tons of tweaks lying in a corner, and tried them all. Unfortunately, nothing worked out.
Then I just simply switched over to another USB port (it doesn’t matter whether its USB 2.0 or 3.0 port), with another USB cable, and I finally achieved success at one-go. Likewise, you should also consider switching from a Windows 10 laptop or PC to Windows 7. It was also able to fix the FAILED (remote: unknown command) Error one or twice. Just remember to install the SDK and Platform Tools on that Windows 7 PC.
Conclusion
So this is all from his guide on how to fix the FAILED (remote: unknown command) issue. We have mentioned all the different scenarios under which this error could show up. Likewise, their associated fixes are also given. If you have any queries concerning any of the above-mentioned steps. do let us know in the comments. Furthermore, if you are facing any other ADB or Fastboot error, do let us know in comments. We will let you know the solution to that as well.
About Chief Editor
Sadique Hassan
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!”
Решение ошибок в MiFlash
MIUI ROM Flashing Tool – это программа, с помощью которой можно прошить телефон Xiaomi, используя режим Fastboot. Утилита довольно проста в использовании, но в ней часто возникают неполадки, которые мешают корректно перепрошить смартфон. В статье мы рассмотрим все известные ошибки MiFlash и выясним, как их решить.
Популярные причины возникновения ошибок
Для того чтобы прошивка на смартфон или планшет Xiaomi установилась нормально — нужно выполнить большое количество подготовительных действий. Но даже при их выполнении, это не избавит вас от банальных причин в работе Ми Флэш. Вот список общих советов:
Полная инструкция по прошивке через Fastboot есть здесь.
Известные ошибки MiFlash и их решение
Теперь рассмотрим конкретные ошибки, которые может выдавать Xiaomi Flashing Tool. Подробнее о самой программе.
Ошибка: Reached the end of the file (0x80070026).
Решение: Если программа показывает, что достигнут конец файла, установите более новую версию MiFlash. Также можно попробовать использовать Pro версию.
Ошибка: Cannot receive hello packet.
Решение: Ошибка может обозначаться как «Не удается получить пакет приветствия» или «Try to reset status». Чаще всего помогает переключение кабеля в другой разъем, либо использование другого компьютера. Проблема часто появляется на Windows 7 и 8/8.1.
Ошибка: The specified file can not be found (0x80070002).
Решение: Неполадка «Не удается найти указанный файл» означает, что утилита не может отыскать определенный файл (чаще всего это flash_all.bat). Повторно загрузите архив с прошивкой или самостоятельно найдите недостающий файл. Если проблема повторяется — попробуйте переустановить папку с программой.
Ошибка: Unspecified error (0xffffffff).
Решение: При надписи «Undefined error» нужно самостоятельно указать путь к файлу flash_all.bat. После этого неопознанная ошибка пропадет.
Ошибка: 0x8007007b.
Решение: Путь к файлу содержит кириллицу, либо в названии самого файла есть русские буквы. Переименуйте все в латиницу. Также проверьте чтобы все файлы для прошивки находились на системной диске (чаще всего это диск С).
Ошибка: Mismatching image and device.
Решение: Вы скачали прошивку, которая не предназначена для вашего устройства. Повторно загрузите подходящую версию.
Ошибка: Заданное приведение является недопустимым.
Решение: Скачайте предыдущую версию Miflash Flashing Tool.
Ошибка: 0x80004005 FAILED (remote: unknown command).
Решение: Загрузите версию оболочки, которая подходит для вашей модели смартфона, чтобы избавиться от неполадки «remote: data too large».
Ошибка: Недостаточно ресурсов памяти для завершения операции (0x8007000e).
Решение: Используйте компьютер с большим количеством оперативной памяти, либо попробуйте поставить прошивку через TWRP Recovery.
Ошибка: Длина не может быть меньше нуля.
Решение: Отключите цифровую подпись драйверов и подключите кабель в порт USB 2.0. Как это сделать читайте в наших статьях о подключении телефона к компьютеру.
Ошибка: Failed Remote: Partition Flashing Is Not Allowed
Решение: Строка «critical partition flashing is not allowed» означает, что загрузчик заблокирован. Попробуйте прошить телефон через режим EDL, или активируйте бутлоадер.
Ошибка: Flash crclist error.
Решение: Неполадка возникает при неправильной распаковке архива. Выберите другой архиватор, и поместите файлы в папку с коротким названием. Используйте бесплатный вариант — 7-Zip.
Ошибка: Can not found file flash_all.bat.
Решение: Отсутствует необходимый файл для прошивки под названием flash_all.bat. Зайдите в настройки MiFlash, перейдите в пункт «Advanced» и укажите файл xxx.bat.
Ошибка: Can not found file flash_all_lock.bat.
Решение: Попробуйте проделать такие же действия, как и в вышеописанной ошибке. Если не помогло – убедитесь, что архив полностью распакован и файлы находятся на системном диске.
Ошибка: Несоответствие изображения и ошибки устройства.
Решение: Повторно подключите смартфон к компьютеру, используя порт ЮСБ 2.0. Не забывайте, что сначала нужно перевести смартфон в режим Фастбут, а потом уже синхронизироваться с ПК.
Ошибка: В экземпляре объекта не задана ссылка на объект.
Решение: Проблема «Ссылка на объект не указывает на экземпляр объекта» чаще всего возникает на 32-битной версии Windows. Желательно использовать 64 bit. Если смена разрядности не помогла, проверьте, чтобы на пути к прошивке не встречалось русских букв, а кабель был подключен к разъему USB 2.0.
Ошибка: Couldn’t find flash script.
Решение: Укажите правильную папку с прошивкой, а именно «images».
Ошибка: ERROR: Время ожидания операции записи истекло.
Решение: Неполадка возникает из-за отсутствия драйверов. Посмотрите наше видео и самостоятельно поставьте необходимые драйвера. Если утилита не видит прошивку, перепроверьте названия папок и файлов. Не забудьте повторно перезапустить ПК.
Ошибка: Синтаксическая ошибка в имени файла.
Решение: MiFlash выдает такую ошибку при установке прошивки, которая предназначена для рекавери или «три точки». Найдите сборку для Fastboot с расширением tgz на сайте Mi Community в разделе Download ROM. Также причиной может стать кириллица в названии файла/папки.
Ошибка: Flash TZ error.
Решение: Обычно ошибка появляется при использовании китайской прошивки. Выберите Global ROM и убедитесь, что загрузчик разблокирован.
Ошибка: You are not authorized to download Mi Flash.
Решение: Проблема указывает на то, что вы не авторизованы для работы в Ми Флэш. Нужно пройти EDL Authentication.
Ошибка: Flash Partition Error.
Решение: Разблокируйте загрузчик и при прошивке НЕ выставляйте опцию «Clean all and lock».
Ошибка: Not catch checkpoint.
Решение: Проигнорируйте данную неполадку и попробуйте перепрошиться через TestPoint.
Ошибка: Необрабатываемое исключение в приложении.
Решение: Ошибка может возникать при неправильной установке драйверов. Удалите программу, повторно загрузите все нужные файлы и повторите попытку. Только обратите внимание, что это не дает точной гарантии, что проблема исчезнет. Так как есть множество других факторов, которые могут влиять на прошивку, и их нельзя предугадать.
Ошибка: Can not read from port com.
Решение: Подключите мобильное устройство в разъем USB 2.0. Если оболочка не устанавливается – замкните контакты ТестПоинт.
Ошибка: Ping target via firehose.
Решение: Конкретных решений для устранения данной неполадки нет. Помогут универсальные способы, такие как переустановка Ми Флеш и повторное скачивание сборки.
Ошибка: Разрушительный сбой.
Решение: При возникновении данной ошибки воспользуйтесь универсальными методами. Проверьте, подходит ли скачанная прошивка для установки через Фастбут, и ориентирована ли она на вашу модель телефона. Отключите проверку подписи драйверов и вручную поставьте ADB-драйвера, если они не загрузились автоматически. Попробуйте более старую/новую версию MiFlash. Такие комбинации обычно помогают, если процесс прошивки прерывается, или программа вообще не видит телефон.
Ошибка: Требуемый ресурс занят (0x800700aa).
Решение: Также прибегните к универсальным вариантам.
Ошибка: Can not found programmer file.
Решение: Скачайте с официального источника прошивку, которая подходит для Fastboot.
Ошибка: Flash xbl error.
Решение: Попробуйте универсальные советы. Также проверьте: правильность выбранной прошивки; разблокированный загрузчик; текущую версию MIUI (возможно стоит сторонняя сборка); допущена ошибка при скачивании архива с прошивкой или он распакован неправильно; проблема с ARB.
Если вы нашли дополнительное решения для конкретной ошибки — напишите об этом, помогите другим пользователям!
Вы можете дополнить список ошибок и их решений. Напишите об этом в комментариях!
fastboot boot twrp.img FAILED (remote: unknown command)
Breadcrumb
JonSchnee777
New member
Hey guys,
I have an European LG G5 H850 with an unlocked bootloader. It is my first time rooting, and after unlocking the bootloader, I wanted to boot TWRP once, but I didn’t want to install it, but instead keep the stock recovery untouched. So I booted into the bootloader, entered «fastboot boot twrp.img» and I got this message:
downloading ‘boot.img’.
OKAY [ 0.462s]
booting.
FAILED (remote: unknown command)
finished. total time: 0.482s
I have absolutely no idea what I’m doing wrong. I made sure twrp.img is referring to the correct file, and I tried both the Android SDK platform tools and the 15 seconds ADB installer, but none of them worked. When I try flashing the recovery with «fastboot flash recovery twrp.img», it seems to work because this appears:
target reported max download size of 536870912 bytes
sending ‘recovery’ (20900 KB).
OKAY [ 0.471s]
writing ‘recovery’.
OKAY [ 0.198s]
finished. total time: 0.670s
But when I try to boot into the bootloader again, it just gives me the option to do a factory reset, nothing else. So I assume that something went wrong. I have absolutely no idea what it could be, so please help me. I also asked on reddit, but didn’t get any answers so far. Any help would be greatly appreciated!
Thanks in advance!
obs3rv
Senior Member
Hey guys,
I have an European LG G5 H850 with an unlocked bootloader. It is my first time rooting, and after unlocking the bootloader, I wanted to boot TWRP once, but I didn’t want to install it, but instead keep the stock recovery untouched. So I booted into the bootloader, entered «fastboot boot twrp.img» and I got this message:
downloading ‘boot.img’.
OKAY [ 0.462s]
booting.
FAILED (remote: unknown command)
finished. total time: 0.482s
I have absolutely no idea what I’m doing wrong. I made sure twrp.img is referring to the correct file, and I tried both the Android SDK platform tools and the 15 seconds ADB installer, but none of them worked. When I try flashing the recovery with «fastboot flash recovery twrp.img», it seems to work because this appears:
target reported max download size of 536870912 bytes
sending ‘recovery’ (20900 KB).
OKAY [ 0.471s]
writing ‘recovery’.
OKAY [ 0.198s]
finished. total time: 0.670s
But when I try to boot into the bootloader again, it just gives me the option to do a factory reset, nothing else. So I assume that something went wrong. I have absolutely no idea what it could be, so please help me. I also asked on reddit, but didn’t get any answers so far. Any help would be greatly appreciated!
Thanks in advance!
This is important: after fastboot flash recovery twrp.img, you need to pull the battery to power down, and then follow the instructions above to enter TWRP. Do not boot into system with the stock ROM after fastboot. It will replace TWRP with the stock recovery at boot time, and in that scenario, the full erase mentioned above actually does erase data and internal storage.
TWRP will on first start change the system image (once you «allow modification») so that the stock ROM stops replacing it at boot time.
If you did boot up the stock ROM after fastboot, you will need to re-enter fastboot and flash TWRP again (power down with USB-C port clear, hold down Volume Up, insert USB-C cable, fastboot flash recovery twrp.img). Then pull the battery with fastboot still running, then boot into TWRP as above.
Unfortunately most writeups aren’t crystal clear about the correct sequence of steps. Most cover some steps and gloss over others.