RohitVerma882 / termux-miunlock

A program that can be used to retrieve the bootloader unlock token for Xiaomi devices. (and unlock the bootloader) using Termux
Apache License 2.0
519 stars 86 forks source link

Added interface in zenity and dialog and automations #30

Closed bigbruno closed 9 months ago

bigbruno commented 10 months ago

Added interface in zenity and dialog and automations were also added to detect the product and the token, in addition to executing commands to perform the unlock.

This method can also be used on any computer with Linux and Java installed, not just through Termux, i'm tested with BigLinux distro.

I haven't tested it, but it should also work on BSD systems and computers with the Apple system.

RohitVerma882 commented 10 months ago

It would be nice to have a Java installation checking feature for other systems

RohitVerma882 commented 10 months ago

fastboot provided by termux does not work without root permission, so I use my own modified version of fastboot (mi-fastboot) with termux api support, Use mi-fastboot instead of fastboot for termux

command fastboot oem-unlock <hex-token> does not exist on original version of fastboot and If you are using fastboot stage <token.bin> & fastboot oem unlock command then this command is not required.

bigbruno commented 9 months ago

I made the suggested changes and also unlocked my smartphone using the zenity interface and everything worked fine