XiaoMiToolV2 icon indicating copy to clipboard operation
XiaoMiToolV2 copied to clipboard

Error 20045: Please use the common user tool on the official website

Open Andre8900 opened this issue 2 years ago • 15 comments

Hello, I want to unlock my bootloader, but I get the following response (in Linux) after confirming all dialogs:

Unlock request response: {"code":20045,"description":"请使用官网普通用户解锁工具进行操作","descCN":"请使用官网普通用户解锁工具进行操作","descEN":"Please use the common user tool on the official website.","uid":""}

Andre8900 avatar Sep 09 '22 16:09 Andre8900

Phone is Poco F3 (alioth) and I am using the latest version with the sessionToken fix from #23 (https://github.com/francescotescari/XiaoMiToolV2/issues/23#issuecomment-904082515)

Andre8900 avatar Sep 09 '22 16:09 Andre8900

Same error.

I was finally able to get past "service token error" by following this thread. https://forum.xda-developers.com/t/tool-win-lin-mac-miunlocktool-unlock-bootloader-of-xiaomi-devices-on-mac-linux.3782444/page-13#post-85932539

Now I am getting "Failed to unlock your device, Xiaomi server returned error 20045"

LampPrinter avatar Oct 11 '22 19:10 LampPrinter

Is this project dead?

shubham-cpp avatar Nov 10 '22 05:11 shubham-cpp

Download the latest version using git clone https://github.com/francescotescari/XiaoMiToolV2.git and run it with gradlew run. This issue is already fixed.

Nik-Kot avatar Dec 08 '22 18:12 Nik-Kot

@Nik-Kot I've cloned the project, build and run. But with this the software can't found some important pieces and was not working as well (with fonts).

Cannot execute fastboot command "fastboot devices", reason: Cannot run program "./res/tools/fastboot": error=2, No such file or directory

Any tips? Captura de Tela 2022-12-27 às 10 21 27

pedrofsn avatar Dec 27 '22 13:12 pedrofsn

I'm runnig MacOS Monterrey. I checked the folder and just found .exe files. I need to specify some argument when I run .gradlew?

pedrofsn avatar Dec 27 '22 13:12 pedrofsn

I've changed to mac git branch and now I've right files on tools folder. I don't know how to fix Font errors yet but app is running fastboot as well.

pedrofsn avatar Dec 27 '22 13:12 pedrofsn

Captura de Tela 2022-12-27 às 10 27 37

Looking to the terminal, I'm getting the same error from issues: #85 #61 etc

[10:28:05][WARN  ][52a4d629] Pre-unlock requests failed [getServiceToken] Missing serviceToken cookie
[10:28:05][ERROR ][52a4d629] com.xiaomitool.v2.xiaomi.XiaomiProcedureException: [getServiceToken] Missing serviceToken cookie
        at com.xiaomitool.v2.xiaomi.XiaomiServiceEntry.httpGetServiceToken(XiaomiServiceEntry.java:89)
        at com.xiaomitool.v2.xiaomi.XiaomiServiceEntry.requireSSandST(XiaomiServiceEntry.java:129)
        at com.xiaomitool.v2.xiaomi.XiaomiKeystore.requireServiceKeyAndToken(XiaomiKeystore.java:69)
        at com.xiaomitool.v2.xiaomi.unlock.UnlockRequest.exec(UnlockRequest.java:37)
        at com.xiaomitool.v2.xiaomi.unlock.UnlockCommonRequests.nonceV2(UnlockCommonRequests.java:100)
        at com.xiaomitool.v2.xiaomi.unlock.UnlockRequest.addNonce(UnlockRequest.java:80)
        at com.xiaomitool.v2.xiaomi.unlock.UnlockCommonRequests.userInfo(UnlockCommonRequests.java:116)
        at com.xiaomitool.v2.procedure.install.FastbootInstall$4.run(FastbootInstall.java:250)
        at com.xiaomitool.v2.procedure.RInstall.runInternal(RInstall.java:23)
        at com.xiaomitool.v2.procedure.RNode$RNodeSequence.run(RNode.java:108)
        at com.xiaomitool.v2.procedure.RNode.runInternal(RNode.java:77)
        at com.xiaomitool.v2.procedure.RNode$RNodeSequence.run(RNode.java:108)
        at com.xiaomitool.v2.procedure.RNode.runInternal(RNode.java:77)
        at com.xiaomitool.v2.procedure.RNode$RNodeSequence.run(RNode.java:108)
        at com.xiaomitool.v2.procedure.Procedures$6.run(Procedures.java:236)
        at com.xiaomitool.v2.procedure.RInstall.runInternal(RInstall.java:23)
        at com.xiaomitool.v2.procedure.RNode$RNodeSequence.run(RNode.java:108)
        at com.xiaomitool.v2.procedure.RNode.runInternal(RNode.java:77)
        at com.xiaomitool.v2.procedure.RNode$RNodeSequence.run(RNode.java:108)
        at com.xiaomitool.v2.procedure.RNode.runInternal(RNode.java:77)
        at com.xiaomitool.v2.procedure.RNode$RNodeSequence.run(RNode.java:108)
        at com.xiaomitool.v2.engine.actions.ActionsDynamic$5.run(ActionsDynamic.java:604)
        at com.xiaomitool.v2.procedure.install.GenericInstall$10$1.run(GenericInstall.java:292)
        at java.base/java.lang.Thread.run(Thread.java:829)

pedrofsn avatar Dec 27 '22 13:12 pedrofsn

I've tried with @edd34 fix/mac_login_url branch (https://github.com/edd34/XiaoMiToolV2/tree/fix/mac_login_url) but still getting same error. Looking for request https://unlock.update.miui.com/sts and getting 401 Unauthorized.

pedrofsn avatar Dec 27 '22 13:12 pedrofsn

Hello, I want to unlock my bootloader, but I get the following response (in Linux) after confirming all dialogs:

Unlock request response: {"code":20045,"description":"请使用官网普通用户解锁工具进行操作","descCN":"请使用官网普通用户解锁工具进行操作","descEN":"Please use the common user tool on the official website.","uid":""}

I fixed it by creating another mi account with same number phone

drendog avatar Dec 28 '22 14:12 drendog

Hello, I want to unlock my bootloader, but I get the following response (in Linux) after confirming all dialogs: Unlock request response: {"code":20045,"description":"请使用官网普通用户解锁工具进行操作","descCN":"请使用官网普通用户解锁工具进行操作","descEN":"Please use the common user tool on the official website.","uid":""}

I fixed it by creating another mi account with same number phone

How you do it? Are you waited 7 days again with new mi account?

Neclude avatar Jan 13 '23 06:01 Neclude

I've changed to mac git branch and now I've right files on tools folder. I don't know how to fix Font errors yet but app is running fastboot as well.

Sorry, the mac branch was not patched at the moment, only that master branch was. Now I'm working on it and also on releasing a compiled binary.

Nik-Kot avatar Jan 15 '23 14:01 Nik-Kot

Hello, I want to unlock my bootloader, but I get the following response (in Linux) after confirming all dialogs: Unlock request response: {"code":20045,"description":"请使用官网普通用户解锁工具进行操作","descCN":"请使用官网普通用户解锁工具进行操作","descEN":"Please use the common user tool on the official website.","uid":""}

I fixed it by creating another mi account with same number phone

How you do it? Are you waited 7 days again with new mi account?

yes

drendog avatar Jan 28 '23 14:01 drendog

Same trouble at Debian Linux 11 Stable & POCO M4 Pro

xintrea avatar Aug 31 '23 12:08 xintrea

قم بتنزيل أحدث إصدار باستخدامه git clone https://github.com/francescotescari/XiaoMiToolV2.gitوقم بتشغيله باستخدام gradlew run. تم إصلاح هذه المشكلة بالفعل.

Whether the problem is solved or not xiaomi server returned error 20045

salhgmal avatar Apr 15 '24 01:04 salhgmal

xiaomi server reurned error 20045

salhgmal avatar Apr 15 '24 01:04 salhgmal

xiaomi server reurned error 20045

And what should I do now?

xintrea avatar Apr 26 '24 14:04 xintrea