francescotescari / XiaoMiToolV2

XiaomiTool V2 - Modding tool for xiaomi devices
https://www.xiaomitool.com
Apache License 2.0
627 stars 123 forks source link

login fail only for linux and max because login url is incorrect for linux branch and mac #40

Open edd34 opened 2 years ago

edd34 commented 2 years ago

Login url in linux branch is incorrect and should be the same as master branch. This is related to issue #23 especially this comment https://github.com/francescotescari/XiaoMiToolV2/issues/23#issuecomment-924575903

The URL should be : "https://account.xiaomi.com/pass/serviceLogin?sid=unlockApi&json=false&passive=true&hidden=false&_snsDefault=facebook&checkSafePhone=true&_locale=" + Locale.getDefault().getLanguage().toLowerCase();" at file "./src/main/java/com/xiaomitool/v2/gui/controller/LoginController.java" line 39 for linux branch and mac branch.