There was a bug under Mac OS 9 (and maybe Mac OS 8 too?) that, under a special circumstance, prevented some files to be locked, unlocked or even deleted. They would sit there in your trash forever and prevent you to empty it even when the OPTION KEY is held down. Rebuilding the desktop does NOT resolve the issue. Trying to get file info with ResEdit results in the following error: The reason this is happening is generally due to the file type/creator code not being set properly or at all, which highly confuses the Finder. These files usually come from the internet (such as .iso files) and are generally transfered using a FAT32 (DOS) or NTFS (Windows) partition which does not store any resource fork (so no file type/creator code) to begin with and increases the chances of this happening. To resolve this issue: 1) You need to use a file type/creator changer app, such as: Creator Changer 2.8.4 2) Launch your type/creator code changer app and select the problematic file. If the file is locked, it will probably complain it will not save changes, but guess what: It actually does and it will work, so proceed. 3) You will notice that both type and creator boxes are currently empty, which is not supposed to be with any valid file on a Macintosh volume. This is how you will fix the issue: Type '????' (4 interrogation marks) in each of the 2 boxes like the following and apply the changes (click OK). Now, your file will have a default file type/creator code and it will be seen as valid by the Finder, allowing you to lock, unlock and delete the file. Moreover, you will now be able to get file info with ResEdit and use/edit the file's resource fork as you please! Cheers! :D |
If you have a Mac (mid-2013 or later) with macOS 10.13 or later, your Apple Watch can instantly unlock your Mac when it wakes from sleep. You need to be signed in to iCloud using the same Apple ID on both your Mac and Apple Watch.
Finally, while Xiaomi has not released the Mac and Linux version of its bootloader unlock tool, a third-party alternative is available. Download the unofficial version of MIUI bootloader unlocking tool from the mirror link below. This unofficial version is compatible on all computer running Windows 8/8.1/10, any Linux distros (Ubuntu, Debian, CentOS), or Apple Mac OS.
Thanks to Fransisco an XDA community member who develops the tool. He has managed to extract the core function of the official Mi Unlock Tool. He then modded the codes to make it work on Unix-based computers.
However, this does not mean you can bypass the official permission. You will still need to obtain the official permit from Xiaomi Dev Team prior using the tool.
Moreover, the Oracle Java package is also essential (JavaFX for GUI if not included in your JDK/JRE). The tool won’t work flawlessly without these dependencies.
You can grab the file from its official link hosted on Mega.nz here. Alternatively, you may also use the mirror link below. The mirror direct link below is hosted on the US and EU servers for better redundancy. Even better, it is a direct link that supports resume-able connections. It means the process will run smoothly either on a computer or an Android device.
You don’t have to understand how the stuff behind the tool works. However, you may find it interesting once you knew and how this tool is made possible.
The developer who shares this tool learned the mechanism of MIUI bootloader unlocking process. He explained that the original Mi Flash Unlock tool (for Windows) acts as a bridge between Xioami server, fastboot, and you with your Mi Account credentials. The actual part that conducts the unlocking task is actually fastboot.
The Mi Flash Unlock tool needs to fetch your device information. Next, it sends the information to the Xiaomi server with the account login token. Once received, the server checks whether all requirements are fulfilled. The requirements include whether the account has been authorized, whether the account associated (Mi Account binding) with the device in the Developer Settings and so on.
Once the server feels all the requirements are satisfied, it will reply back with the unlock key for your device instance. This instance key always changes everytime you reboot the phone.
The Mi Flash Unlock tool will then send the key to the device with a custom build of fastboot. Here’s then the magic happens: If the key is correct, the device bootloader will be unlocked. Otherwise, it will reboot.
All such nerdy stuff has encouraged Fransisco to create such a tool. He realizes that if he can replicate the mechanism, there is a possibility to do the mechanism on a Unix-based computer.
Check also: Mi Account Authorization Tips: Check and Apply for it!
First thing first, you need to unzip/extract the actual tool. Moreover, make sure you have already had Java installed.
On Linux:
On Apple Mac:
You just need to open (double click) the MiFlashUnlock.command file.
Alternatively, you can also do this on Terminal.
If you are using the command line version remember that there is no confirmation request before the unlocking process and there is no check if the bootloader is already unlocked.
Check also: How to unlock MIUI Bootloader on Windows.
Yeah, I know! It is not as simple as its Windows version. Since you are using Linux (or Mac), I assume you already understand the consequences, including the need to be a geek.
Here are some possible errors that might happen:
Despite some users found the tool quite messy, we think it is a useful tool still. At least it provides possibilities for Linux and Mac users to unlock the MIUI bootloader of their phones without the need to find a Windows PC.