Перейти к содержимому

Android product out not set что делать

  • автор:

Ошибки в MiFlash — как исправить?

Телефоны бренда Xiaomi пользуются немалой популярностью, так как по сравнительно невысокой цене они имеют сбалансированные характеристики. Многие пользователи прошивают свои гаджеты, делая их более функциональными. Делается это при помощи утилиты MIUI ROM Flashing Tool, в режиме Fastboot. С самой программой разобраться несложно, но в ней, как и в любом программном обеспечении, могут возникать сбои и неполадки, мешающие корректной прошивке. Ниже рассмотрим, какие ошибки встречаются при работе с MiFlash, и какими методами их устранить.

Ошибки в работе Mi Flash

Ошибки в работе Mi Flash возникают из-за неправильной подготовки к процессу перепрошивки смартфона.

Причины возникновения проблем

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

Чтобы прошивка установилась нормально, придерживайтесь следующих рекомендаций:

  • вопрос наличия драйверов. Обычно, когда первый раз подключаешь мобильное устройство к ПК шнуром USB, драйвера «подхватываются» сами, но не всегда. Если этого не произошло – нужно загрузить и установить их самому;
  • версия MiFlash. Это и есть та самая программа, используемая для прошивки, и лучше, если она будет «свежей», где устранены баги и ошибки;
  • выбор прошивки. Каждая модель смартфона поддерживает определенную версию MIUI. Простой пример: если телефон Redmi 8, нет смысла на него пытаться поставить сборку, предназначенную для Redmi 8A. Кроме того, убедитесь, что загружаемый архив имеет расширение .tgz;
  • авторизация в Mi-аккаунте. Прежде чем выполнять какие-либо действия с гаджетом, проверьте, что вошли в учетную запись;
  • один или несколько файлов прошивки повреждены. Рекомендуется скачивать архив с проверенных источников, чтобы такое не случилось. Также во время распаковки не стоит ничего нажимать;
  • папка или файл содержат в названии русские буквы. Такого быть не должно – утилита «видит» только латиницу;
  • используемый шнур для подключения к ПК. Лучше пользоваться кабелем, идущим в коробке с гаджетом, и подключать его к разъему USB 2.0, а не 3.0.

Распространенные ошибки и их исправление

MIUI ROM Flashing Tool выдает разные ошибки во время работы, и их обозначение обычно ни о чем не говорит неопытному пользователю.

  • достигнут конец файла 0x80070026 receiving hello packet (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 cannot be found (0x80070002). Утилита не «видит» нужный ей файл (как правило, это flash_all.bat). Решается повторной загрузкой дистрибутива с прошивкой или ручным поиском файла. Если ошибка все-равно продолжает выскакивать, попробуйте переустановить утилиту MiFlash;
  • ошибка 0xffffffff (или «не удалось найти часть пути»). Укажите путь, где сохранен файл flash_all.bat;
  • 0x8007007b. Эта ошибка свидетельствует о том, что в названии папки или какого-то файла присутствуют русские буквы. Допустим только латинский алфавит. Кроме того, сама прошивка должна быть сохранена на системном диске (если пользователь ничего не менял, это Disc C);
  • mismatching image and device. Пытаетесь поставить прошивку, созданную для другой модели смартфона;

mismatching image and device

Ошибка «mismatching image and device».

  • заданное приведение является недопустимым. Решается установкой более старой версии MiFlash;
  • 0x80004005 FAILED. Дело в оболочке – надо скачивать ту, которая поддерживается смартфоном;
  • недостаточно ресурсов памяти для завершения операции. Кодовое обозначение – 0x8007000e. Проблема проявляется, если на ПК мало ОЗУ, но это редкость. Есть обход – прошиться при помощи утилиты TWRP Recovery;
  • длина не может быть меньше нуля. Что делать – отключить цифровую подпись драйверов и попробовать заново, подсоединив устройство к разъему USB 2.0;
  • failed remote partition flashing in sot allowed. Ошибка говорит о том, что загрузчик заблокирован. Прошивайтесь, используя режим EDL, или же включите бутлоадер;
  • flash crclist error. Такое сообщение выскакивает из-за неправильной разархивации дистрибутива. Воспользуйтесь популярным архиватором 7Zip;
  • cannot found file flash_all.bat. Утилита не находит требуемый файл. Запустите MiFlash, откройте настройки, пункт «Advanced», и задайте путь к нему вручную;
  • cannot found file flash_all_lock.bat. Решение то же, что и в предыдущем случае. Также убедитесь, что файлы прошивки распаковываются на диск C;
  • несоответствие изображения и ошибки устройства. Активируйте на телефоне режим Fastboot и подключитесь к ПК по USB 2.0;
  • в экземпляре объекта не задана ссылка на объект. Такая ошибка обычно возникает, если перепрошивка выполняется на 32-битной системе. Решение – прошиваться на Windows 64 bit;
  • couldn’t find flash script. Работая с MiFlash, выберите папку «images»;

couldn’t find flash script

Ошибка «couldn’t find flash script».

  • время ожидания операции записи истекло. Утилита просто не видит «дрова». Если они не поставились сами, сделайте это вручную, а также проверьте, нет ли в названии папок/файлов русских букв;
  • синтаксическая ошибка в имени файла. Используется прошивка для recovery. Нужна сборка для Fastboot, имеющая расширение .tgz (ищите ее на портале Mi Community в разделе Download ROM). Также проблема проявляется, если в названии файлов или папок есть русские буквы;
  • flash TZ error. Проблема в том, что ставится китайская прошивка. Выбирать необходимо Global ROM, при этом требуется разблокировка загрузчика;
  • you are not authorized to download MiFlash. Необходима авторизация (EDL Authentication);
  • flash partition error. Разблокируйте загрузчик и во время прошивки не включайте опцию «Clean all and lock»;
  • not catch checkpoint. С этой ошибкой ничего не сделаешь, разве что прошивать гаджет посредством TestPoint;
  • необрабатываемое исключение в приложении. Дело в драйверах. Их, как и утилиту и архив, придется загрузить по новой;

Необрабатываемое исключение в приложении

Ошибка «необрабатываемое исключение в приложении».

  • cannot ream from port com. Выполните прошивку через TestPoint, подключившись к USB 2.0;
  • ping target via firehouse. Переустановите утилиту MiFlash, загрузите архив заново;
  • разрушительный сбой 0x8000fff. Помогут универсальные методы решения проблем: выбор прошивки для конкретной модели устройства, установка через Fastboot, отключение проверки «дров», переустановка МиФлеш;
  • требуемый ресурс занят (0x800700a). В этом случае тоже выручат универсальные способы;
  • cannot found programmer file. Загрузите дистрибутив по новой и проверьте, чтобы он поддерживал Fastboot;
  • flash xbl error. Решается проблема универсальными методами, описанными выше;
  • flashing is not allowed in lock state. Причина – заблокированный загрузчик. Выполните прошивку в режиме EDL (или включите Bootloader);
  • erase is not allowed in lock state. Разблокируйте загрузчик устройства;
  • FAILED remote dtb not found. Неправильная сборка recovery.img или отсутствие образа dtb.img. Решение – пересобрать recovery, используя утилиту AndimgTool;
  • FAILED remote command not allowed. Необходимо разблокировать загрузчик, установить драйвера на Фастбут по инструкции. Если не помогает, выполните прошивку с помощью QuickIMG;
  • this image failed to load. Требуется обновление «дров» на adb/fastboot;
  • FAILED remote not allowed on locked state. Загрузчик заблокирован;
  • FAILED remote device is locked cannot erase. Необходимо выйти и зайти по новой в Mi-аккаунт, а также включить обнаружение телефона;
  • android product out not set. Проверьте, что в архиве с прошивкой есть все нужные файлы;
  • flash already programmed. Поставьте галочку напротив «Force flashing regardless of security checkings»;
  • flash write failure. На форумах пишут, что единственное решение – замена NAND-чипа (флеш-памяти);
  • run flash image script failure. Дело в драйверах, возможно, они «криво» установлены;
  • fastboot failed remote command not allowed. Рекомендуют включить OEM-разблокировку на устройстве перед началом прошивки. При этом бутлоадер необходимо запускать от имени администратора;
  • ACK count don’t match Xiaomi. Прошивка не подходит для устройства. Если дело не в этом, убедитесь, что в распакованном архиве отсутствуют лишние папки. Там должна быть только «images» и файлы .bat;

ACK count don’t match

Ошибка «ACK count don’t match».

  • write time out maybe device was disconnected. Не отключая телефон от ПК зажмите кнопку включения на 20 секунд, чтобы переподключился порт. Если не помогло – очистите драйвера и поставьте их снова.

Как предотвратить возникновение ошибок

Не бывает одной и единственной причины неудачи, как и пути ее устранения. Чтобы процесс прошивки прошел как можно глаже:

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

ОС Android – довольно живучая система, которую сложно «убить» делая что-то не так. Но это вызывает сложности и неприятности даже у опытных пользователей. Отсюда совет – не прошивайте гаджет, если не знаете для чего это нужно. А если знаете, убедитесь, что делаете все верно.

How to fix fastboot:error:ANDROID_PRODUCT_OUT Not Set error

When you need to flash a GSI ROM or Custom Binary on your Android smartphone, they will basically require two important things – booting your device into the ADB Fastboot Mode and installing Android SDK platform tools. These are the primary requirements. However, sometimes Android users come across issues or errors when booting into the Fastboot Mode.

One of the issues involves the Android Product Out Not Set error. If you’re facing this issue, then you shouldn’t worry as this guide will be of great help to you.

This issue looks like “fastboot:error:ANDROID_PRODUCT_OUT not set. When taking a deep dive into this error, some users are trying to flash the vbmeta.img file to disable verify checks and begin to receive this error. However, there is an easy workaround to resolve this issue. In this guide, you will get to know how to fix this error.

Steps to fix fastboot:error:ANDROID_PRODUCT_OUT Not Set error

How to fix fastboot:error:ANDROID_PRODUCT_OUT Not Set error

  • First, you must ensure that you have enabled OEM Unlocking and USB Debugging on your Android smartphone
  • You must download and properly install the Android USB Drivers on your PC/Laptop
  • It is also required that you have installed the ADB and Fastboot Tool on your PC
  • Then, you must install the ADB and Fastboot Platform Tool for your Windows PC
  • Moreover, you will be adding the Android SDK Platform Tools folder to the environment variables path to the directory that contains the binary images
  • Transfer the file that you’re looking to flash inside the platform-tools folder
  • After that, type in CMD in the platform-tools folder address bar before hitting Enter
  • This would launch Command Prompt with the platform-tools folder directory
  • You’ll need to Fastboot Mode before connecting it to your PC using a USB Cable
  • Lastly, you should execute the desired flashing command and you’ll stop getting this error

Aviral Sharma

Aviral Sharma is a talented and passionate writer who has been using words to express his thoughts ever since he learnt how to hold a pen. He is passionate about outer space, history, sports and most importantly technology. Aviral is a regular writer for rootmygalaxy.net and has been getting better by the day.

Question How to fix fastboot: error: ANDROID_PRODUCT_OUT not set ?

I am trying to flash the vbmeta e GSI ROMs on my tablet TB128FU but I am receiving an error message on fastboot.
For instance, if I try:
fastboot —disable-verity —disable-verification flash vbmeta (location of the vbmeta file)

I get the message:
fastboot: error: ANDROID_PRODUCT_OUT not set

How do I fix this error??

nexuspb
Senior Member

Jul 9, 2014 60 3

the environment variable ANDROID_PRODUCT_OUT should be set to the directory containing the binary images.

mura20
Senior Member

Dec 17, 2012 501 92

the environment variable ANDROID_PRODUCT_OUT should be set to the directory containing the binary images.

Thank you. It worked

BobbyBoy123
New member

Mar 29, 2023 2 0

the environment variable ANDROID_PRODUCT_OUT should be set to the directory containing the binary images.

I am getting the same error. Can you please tell me how to set the variable as you are suggesting?

nexuspb
Senior Member

Jul 9, 2014 60 3
I am getting the same error. Can you please tell me how to set the variable as you are suggesting?

if you have linux just type
export NAME=VALUE in your terminal

if you have windows, u need to set some environment variable in ur settings idk

mura20
Senior Member

Dec 17, 2012 501 92
I am getting the same error. Can you please tell me how to set the variable as you are suggesting?

You need to type the following on a CMD prompt (Windows)
set ANDROID_PRODUCT_OUT = c:/(location of the folder in which you have platform tools installed)

I hope it’s understandable. Good luck!

Probaholic1
Senior Member

Dec 24, 2010 132 7 Palmdale www.twitter.com

the environment variable ANDROID_PRODUCT_OUT should be set to the directory containing the binary images.

I’m not quite sure I understand what this means. Mind explaining a bit more.

Paacho_
New member

May 8, 2023 1 0
I’m not quite sure I understand what this means. Mind explaining a bit more.

He means, that you gotta open your terminal (cmd, powershell, etc.) on the directory (folder) where you saved your file (or at least be in the same folder).

Go where your file is, shift + right clic on it and you should see an option that says open in terminal

cantthinkofagoodusername
Member

Feb 7, 2022 19 15 Google Pixel 6 Pro
thanks it worked!

Kelv0804
Member

Apr 30, 2023 8 1

I experience Android_Product_out not set and
I dont know what to do pls check on attached files to see where I failed.
Thanks

Attachments

27.4 KB · Views: 3,620
30.2 KB · Views: 3,640

Skykingrgc
Member

Oct 10, 2008 5 18 Lakeland

I experience Android_Product_out not set and
I dont know what to do pls check on attached files to see where I failed.
Thanks

This issue was likely caused by Google replacing the working platform-tools 34.0.1 release with a broken one. Use 33.0.3 for the time being. Thanks Strcat for helping me.

Kelv0804
Member

Apr 30, 2023 8 1

eduardinho30
Member

Jul 23, 2021 8 9

This issue was likely caused by Google replacing the working platform-tools 34.0.1 release with a broken one. Use 33.0.3 for the time being. Thanks Strcat for helping me.

this is the best solution, I spent hours trying to fix the same problem and nothing worked, I changed the version as you said and it worked immediately. here is the link where I find version 33.0.3 and others. https://androidsdkmanager.azurewebsites.net/Platformtools

funkoot
Senior Member

Nov 6, 2012 60 32

this is the best solution, I spent hours trying to fix the same problem and nothing worked, I changed the version as you said and it worked immediately. here is the link where I find version 33.0.3 and others. https://androidsdkmanager.azurewebsites.net/Platformtools

Thank you so much, that worked first time! I’d been trying to flash TWRP recovery on my Xperia for 2 weeks now, thinking windows 10 didn’t support my phone’s bootloader, when all the time it was the wrong platform tools version.
Dave

icantlogin
Senior Member

Aug 23, 2017 99 92

This issue was likely caused by Google replacing the working platform-tools 34.0.1 release with a broken one. Use 33.0.3 for the time being. Thanks Strcat for helping me.

Thanks for the hint about platform-tools 34 being broken. I initially ran into the ANDROID_PRODUCT_OUT not set error and landed here via DuckDuckGo. Fixed it by setting it to the platform-tools path and was able to flash the stock ROM image I downloaded from Google to my Pixel 4a, but then it wouldn’t boot. Using platform-tools 33.0.3 fixed it. Thanks a lot!

Isuru Dilan
New member

Aug 21, 2014 3 1 Kurunegala

This issue was likely caused by Google replacing the working platform-tools 34.0.1 release with a broken one. Use 33.0.3 for the time being. Thanks Strcat for helping me.

Thanx for the Skykingrgc for helping me its 100% working

CSX321
Senior Member

Aug 21, 2009 644 300 Southern IL USA

Whew. I hope things are okay now with my Pixel 6. I used my new work machine which I just set up a couple of weeks ago. It looks like I installed some variety of 34.0.1 on it. I initially got the ANDROID_PRODUCT_OUT error. After setting that in the environment and re-flashing, I got some of those weird «Warning: skip copying. » messages, but everything appears to working. It booted okay, root is working fine, and all the versions of everything are reported correctly in Settings/About. I’ve since replaced my platform_tools with 33.0.3, but do you think there’s anything I need to be concerned about? Is next month’s update going to end up screwed up somehow now?

error: could not load android-info.txt

I had successfully built the source code for nexus one (build 5), and I found that there is a android-info.txt file in the directory out/target/passion/. Also, I am sure that the phone is connected. When I run «fastboot devices», it shows the device. Anybody know the reason?

32.1k 18 18 gold badges 100 100 silver badges 158 158 bronze badges
asked May 1, 2011 at 3:19
258 1 1 gold badge 3 3 silver badges 12 12 bronze badges

4 Answers 4

Old thread so sorry for reactivating it, but it’s still one of the top hits and it’s unanswered. My fix was to ensure I had the ANDROID_PRODUCT_OUT environment variable, and that it was pointing to /home///out/target/product/

Again, sorry for resurrecting a dead post.

answered Jan 6, 2012 at 13:44
757 2 2 gold badges 11 11 silver badges 22 22 bronze badges

As $fastboot flashall -w

flash the Rom on connected device it needs to know which Run/Device/Product you want to flash as there might be many products available in out/target/product directory, And so product is obtained by ANDROID_PRODUCT_OUT variable which should point to any product i.e.

/home///out/target/product/

And to set the ANDROID_PRODUCT_OUT we just need to do:

source build/envsetup.sh lunch 

and choose your product in lunch menu, so that fastboot flashall -w would know which product you wanna flash.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *