After adding account on phone u need to wait 72hours.First off, thanks for your hard work. I'm trying to use your tool on Fedora, and I'm not sure if everything's working right.
If I just type 'sudo ./MiUnlockTool.sh', it says 'Unable to start gui application. Are you running this tool on a display environment?'
Which is not a big issue, since I can simply type 'sudo ./MiUnlockTool.sh (username) (password)' to run the tool in CLI mode.
But when I do that, I get a 'Add your account and device in MIUI's Settings' error. Which is weird, because I've already linked my account to the phone in the 'Mi unlock' screen of the Settings.
Does that error message always appear when I still have to wait for some hours? Or should I be getting a different message?
Yes, I know I need to wait (although I'm not sure if it's 72 or 360 hours). My question is: should I be getting a "you need to wait xxx hours" message instead of a "you need to enable xxx option in the Settings"?
sudo apt-get purge openjdk*
sudo apt autoremove
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt install oracle-java8-set-default
JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre/"
Downloads/MiUnlockTool/MiUnlockTool.command ; exit;
Exception in thread "main" java.lang.NoClassDefFoundError: javafx/application/Application
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:801)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:699)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:622)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at com.xiaomitool.miunlock.Main.main(SourceFile:46)
Caused by: java.lang.ClassNotFoundException: javafx.application.Application
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 10 more
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
I am stuck on Loading... Unlocking Bootloader screen and nothing happens forever...What did I do wrong?
Are u using GUI or terminal ?After retrieving the token the next screen says just that and does nothing else
The same for me , ever 20091 errorIt shows error 20091 and says to add account and device. But when i try to add under developer option, it always shows error 20091. I have tried with vpn with china server but still this happens. Please help
device: redmi note 4x
miui global beta 8.9.20
Unfortunately no. The only way that I found to unlock the bootloader was to install Windows and then use Xiaomi's unlock tool.I'm using the latest Linux Mint but the MiUnlockTool don't work, do you know if there is another tool to unlock the bootloader using GNU/Linux?
You either have to install the USB drivers from xiaomigeek.com or you have to register your phone at the Xiaomi web site. See my blog post about it.Couldn't get Mi Unlock working on my Windows 10 for the life of me (Unlock button would stay grey even if I had plugged in my phone), but this seemed to work fine until it requested the unlock key.