XiaoMiToolV2 icon indicating copy to clipboard operation
XiaoMiToolV2 copied to clipboard

Failed to get service token [ArchLinux]

Open skylabhalo opened this issue 2 years ago • 10 comments

Screenshot_20220327_151936 Kinda annoying that this is still an issue :<

skylabhalo avatar Mar 27 '22 17:03 skylabhalo

Screenshot from 2022-03-27 22-38-23 I am stuck at this point, where the captcha always fails...
Logging in from the web, it doesn't uses this type of captcha, but instead uses google's reCaptcha

I guess it's something recent change that someone might have to figureout before the tool starts working again

ps, yes, the screenshot is for https://github.com/MariosK239/XMT_V2-linux-fixed which is a mere fork and patches from other issues... the same is happening when I am following the instructions in #23 myself...

dumbPy avatar Mar 27 '22 17:03 dumbPy

clone the repo first install java and javafx compile using gradlew build run using gradlew run

surender77180 avatar Mar 28 '22 18:03 surender77180

build fails

 Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
 java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed module @0x6b4a0933) cannot access class com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module @0x6b4a0933

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

skylabhalo avatar Mar 28 '22 18:03 skylabhalo

build fails

 Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
 java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed module @0x6b4a0933) cannot access class com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module @0x6b4a0933

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

sudo pacman -Syu jdk11-openjdk && sudo archlinux-java set java-11-openjdk

edisionnano avatar Apr 13 '22 21:04 edisionnano

I'm experiencing getServiceToken issue on LinuxMint for over a month. Is there any solution for this?

skylabhalo is the solution "sudo pacman -Syu jdk11-openjdk && sudo archlinux-java set java-11-openjdk" successful ?

rafniedz avatar May 04 '22 15:05 rafniedz

I've tested the same scenario on Windows version (Win10, current updates) and the result is the same. It seems that error is platform-independent... image

rafniedz avatar May 04 '22 16:05 rafniedz

I'm experiencing getServiceToken issue on LinuxMint for over a month. Is there any solution for this?

skylabhalo is the solution "sudo pacman -Syu jdk11-openjdk && sudo archlinux-java set java-11-openjdk" successful ?

My "solution" is just for building the app, it won't solve the tokken issue

edisionnano avatar May 10 '22 00:05 edisionnano

I think i fount the solution! I spent 3 day trying to unlock the bootloader of my redmi 4x, without success. The token error was do to my miui account not matching the account with wich i was logged in on my phone. Eaven if you email and password match, Xiaomi can create two different account ID's. The double ID problem was do to the possibilty to recive the sms confirmation with the same phone number, with or without "0" at the beginning. Like "+44076xxxx190" or "+4476xxxx190". The second error was the fastboot connection error. This is do to the screen lock. You need to turn off all screen lock password, fingerprints and patterns. Also, VERY IMPORTANT, on the developer option menu you need to to turn on "skip screen lock" and "stay awake option". The phone needs to be active all the time eaven during the fastboot screen. Reply if you are successful!

ClockwiseLabs avatar Jun 16 '22 09:06 ClockwiseLabs

I think i fount the solution! I spent 3 day trying to unlock the bootloader of my redmi 4x, without success. The token error was do to my miui account not matching the account with wich i was logged in on my phone. Eaven if you email and password match, Xiaomi can create two different account ID's. The double ID problem was do to the possibilty to recive the sms confirmation with the same phone number, with or without "0" at the beginning. Like "+44076xxxx190" or "+4476xxxx190". The second error was the fastboot connection error. This is do to the screen lock. You need to turn off all screen lock password, fingerprints and patterns. Also, VERY IMPORTANT, on the developer option menu you need to to turn on "skip screen lock" and "stay awake option". The phone needs to be active all the time eaven during the fastboot screen. Reply if you are successful!

Does this mean you should or shouldn't include the preceding 0? Please let me know :)

blocksrey avatar Jun 22 '22 09:06 blocksrey

I think i fount the solution! I spent 3 day trying to unlock the bootloader of my redmi 4x, without success. The token error was do to my miui account not matching the account with wich i was logged in on my phone. Eaven if you email and password match, Xiaomi can create two different account ID's. The double ID problem was do to the possibilty to recive the sms confirmation with the same phone number, with or without "0" at the beginning. Like "+44076xxxx190" or "+4476xxxx190". The second error was the fastboot connection error. This is do to the screen lock. You need to turn off all screen lock password, fingerprints and patterns. Also, VERY IMPORTANT, on the developer option menu you need to to turn on "skip screen lock" and "stay awake option". The phone needs to be active all the time eaven during the fastboot screen. Reply if you are successful!

Sadly, this method didn't work for me :(

samyakbardiya avatar Nov 27 '23 18:11 samyakbardiya