Mi flash unlock linux

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Linux port of MiFlash utility

License

limitedeternity/MiFlash-Linux

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

  1. Restart the device in fastboot mode;
  2. Connect the device to the PC via USB cable;
  3. Start the «XIAOMI TOOL» program from the terminal (cd Xiaomi_MiFlash/ && sudo ./go.sh) and copy the file of the .tgz firmware inside the «/Xiaomi_MiFlash/XIAOMI-FILE/» folder;
  4. Type «1» to start «FLASH Firmware»;
  5. Select the firmware file (tgz) and wait for the end of the operation;
  6. Select the affected .sh file. The device will restart automatically.
  1. Restart the device in TWRP mode;
  2. Type «2» to start backup and end operations by pressing any key;
  1. Restart the device in fastboot mode;
  2. Connect the device to the PC via USB cable;
  3. Start the «XIAOMI TOOL» program from the terminal (cd Xiaomi_MiFlash/ && sudo ./go.sh) and copy the file of the twrp recovery (.img) inside the «/Xiaomi_MiFlash/XIAOMI-FILE/» folder;
  4. Type «3» to start «TWRP flash»;
  5. Select the recovery file for twrp (.img);
  6. The device will automatically restart in TWRP mode.
  1. Restart the device in fastboot mode;
  2. Connect the device to the PC via USB cable;
  3. Start the «XIAOMI TOOL» program from the terminal (cd Xiaomi_MiFlash/ && sudo ./go.sh) and copy the file boot.img inside the «/Xiaomi_MiFlash/XIAOMI-FILE/» folder;
  4. Type «4» to start «flash boot.img»;
  5. Select the boot.img file);
  6. The device will restart automatically in normal mode.
Читайте также:  Linux simple port forwarding

About

Linux port of MiFlash utility

Источник

How to Unlock Xiaomi Devices on Linux and Mac

Owners of Xiaomi devices who want to flash and unlock their devices have the official MiFlashUnlock tool available to them – however, it does not run on Linux. The MiFlashUnlock software can be ran inside Wine or a VM, but there exists a better way.

MiUnlockTool is an unofficial tool based on MiFlashUnlock, which runs natively on Linux (but can also be installed on Mac and Windows). MiUnlockTool is a bridge between fastboot, your Xiaomi credentials, and the Xiaomi server. It retrieves your device info and sends it to the Xiaomi server together with your login token, then checks if you meet all the requirements to receive an unlock key from the server.

The tool will then send the unlock key to your Xiaomi device utilizing a custom build of fastboot. There are no different requirements for receiving an unlock key via MiUnlockTool compared to MiFlashUnlock – you require an authorized Xiaomi account tied to the device through Developer Options.

Requirements

Linux Users

  1. Download the MiUnlockTool, it comes in a .zip file.
  2. Open your terminal and CD to the extracted directory.
  3. In the terminal, type “sudo ./MiUnlockTool.sh”, which will launch the GUI interface. Alternatively, you can use “sudo ./MiUnlockTool.sh username password” for a command-line interface.

Windows and Mac Users

  1. After extracting the .zip file, launch MiFlashUnlock.bat for a graphical interface.
  2. Alternatively you can open a command prompt, CD to the extracted directory, and type “MiUnlockTool.bat username password” for a command-line interface.

After you have launched the MiUnlockTool in whatever OS you’re using, connect your Xiaomi device to your computer while it is in Fastboot Mode.

Читайте также:  Раздача лицензий 1с linux

If you launched the GUI mode, follow the on screen directions. If you are using the command-line interface, there won’t be a confirmation request before unlocking, nor will it check if the bootloader is already unlocked.

Troubleshooting

  • If you receive permission errors on Linux or Mac when launching the MiUnlockTool, you need to open a terminal and CD to the extracted directory.
  • Then grant it 777 permissions using “chmod 777 MiUnlockTool.sh” (or MiUnlockTool.command on Mac), which will set the proper permissions.
  • If you have problems launching the tool even with the Sudo command, you can try the command “java -jar bin/MiUnlockTool.jar”.
  • If you encounter errors with JavaFX class not being found, you are missing JavaFX library from your package. Check the OpenJFX package on Linux.

Final Notes

This tool is absolutely safe to use, as is the unlock procedure. Your Xiaomi device will not be damaged, even if the MiUnlockTool attempts an incorrect unlock key.

However, Windows users should probably stick to the official Xiaomi unlock tool. Because MiUnlockTool is a third-party copy built more specifically for Linux users, it can have additional bugs, and Windows will not manage the drivers for example. So MiUnlockTool does work on Windows, its just not recommended.

Источник

Как разблокировать устройства Xiaomi на Linux и Mac

How to : Xiaomi Mi A2 Bootloader Unlock (Windows/Mac/Linux)

Владельцы устройств Xiaomi, которые хотят прошить и разблокировать свои устройства, имеют доступный официальный инструмент MiFlashUnlock, однако он не работает в Linux. Программное обеспечение MiFlashUnlock можно запускать внутри Wine или виртуальной машины, но есть способ лучше.

MiUnlockTool — это неофициальный инструмент, основанный на MiFlashUnlock, который изначально работает в Linux (но также может быть установлен на Mac и Windows). MiUnlockTool — это мост между fastboot, вашими учетными данными Xiaomi и сервером Xiaomi. Он извлекает информацию о вашем устройстве и отправляет ее на сервер Xiaomi вместе с вашим токеном входа, а затем проверяет, соответствуете ли вы всем требованиям для получения ключа разблокировки с сервера.

Затем инструмент отправит ключ разблокировки на ваше устройство Xiaomi с помощью специальной сборки fastboot. Нет никаких других требований для получения ключа разблокировки через MiUnlockTool по сравнению с MiFlashUnlock — вам требуется авторизованная учетная запись Xiaomi, привязанная к устройству через Параметры разработчика.

Требования

Пользователи Linux

  1. Загрузите MiUnlockTool в виде файла .zip.
  2. Откройте свой терминал и компакт-диск в извлеченный каталог.
  3. В терминале введите «sudo ./MiUnlockTool.sh», чтобы запустить графический интерфейс. В качестве альтернативы вы можете использовать «sudo ./MiUnlockTool.sh username password» для интерфейса командной строки.
Читайте также:  Linux второй системой mac

Пользователи Windows и Mac

  1. После распаковки файла .zip запустите MiFlashUnlock.bat для просмотра графического интерфейса.
  2. В качестве альтернативы вы можете открыть командную строку, записать компакт-диск в извлеченный каталог и ввести «MiUnlockTool.bat username password» для интерфейса командной строки.

После запуска MiUnlockTool в любой ОС, которую вы используете, подключите устройство Xiaomi к компьютеру, пока оно находится в режиме быстрой загрузки.

Если вы запустили режим GUI, следуйте инструкциям на экране. Если вы используете интерфейс командной строки, перед разблокировкой не будет ни запроса на подтверждение, ни проверки, разблокирован ли загрузчик.

Исправление проблем

  • Если при запуске MiUnlockTool вы получаете ошибки разрешений в Linux или Mac, вам необходимо открыть терминал и компакт-диск с извлеченным каталогом.
  • Затем предоставьте ему права доступа 777 с помощью «chmod 777 MiUnlockTool.sh» (или MiUnlockTool.command на Mac), который установит соответствующие разрешения.
  • Если у вас есть проблемы с запуском инструмента даже с помощью команды Sudo, вы можете попробовать команду «java -jar bin / MiUnlockTool.jar».
  • Если вы столкнулись с ошибками, когда класс JavaFX не найден, значит, в вашем пакете отсутствует библиотека JavaFX. Проверьте пакет OpenJFX в Linux.

Заключительные примечания

Этот инструмент абсолютно безопасен в использовании, как и процедура разблокировки. Ваше устройство Xiaomi не будет повреждено, даже если MiUnlockTool попытается ввести неверный ключ разблокировки.

Однако пользователям Windows, вероятно, следует придерживаться официального инструмента разблокировки Xiaomi. Поскольку MiUnlockTool является сторонней копией, созданной специально для пользователей Linux, в ней могут быть дополнительные ошибки, и Windows, например, не будет управлять драйверами. Итак, MiUnlockTool действительно работает в Windows, но это просто не рекомендуется.

Xiaomi Mi 9 появится во всем мире, согласно отчетам, компания открывает флагманы для большего количества рынков

Xiaomi известна тем, что делает один из самых экономичных телефонов на рынке. Будь то бюджетные предложения или флагманы, их телефоны вряд ли разочаруют. Xiaomi Mi 8, флагман компании, вышел в прошлом.

Читать дальше

State of Decay стала бесплатной в течение ограниченного времени, поскольку Microsoft тестирует Windows 10 Build 18334

За последние несколько месяцев Microoft дала понять, что они хотят улучшить игры в Window 10. Компания попросила членов сообщества помочь, отправив и проголосовав за свои идеи. Сегодня Microoft объяви.

Читать дальше

Плохие новости для поклонников AMD: 7-нм графические процессоры Navi отложены до октября 2019 года

AMD недавно представила Radeon VII, высокопроизводительная видеокарта на базе архитектуры Vega 2-го поколения, построенная на новейших 7 нм процесс изготовления кремния. В этом году все возлагали боль.

Источник

Оцените статью
Adblock
detector