generic dev version of xmt

Esse commit está contido em:
francescotescari
2021-03-25 08:45:59 +01:00
commit 8106edd615
5 arquivos alterados com 6 adições e 6 exclusões
@@ -28,9 +28,9 @@ import java.util.ArrayList;
import java.util.List;
public class ToolManager {
public static final String TOOL_VERSION = "20.7.21";
public static final String TOOL_VERSION = "99.9.9";
public static final String URL_DONATION = "https://www.xiaomitool.com/V2/donate";
public static final String TOOL_VERSION_EX = "beta";
public static final String TOOL_VERSION_EX = "dev";
public static final String XMT_HOST = "https://www.xiaomitool.com/V2";
public static final String URL_UPDATE_V2 = XMT_HOST + "/updateV2.php";
public static final String URL_LATEST = XMT_HOST + "/latest";
@@ -22,7 +22,7 @@
<Insets bottom="13.0" top="13.0" />
</HBox.margin>
</ImageView>
<Label prefHeight="29.0" prefWidth="402.0" text="XiaoMiTool V2 (by Francesco Tescari)" textFill="#363636">
<Label prefHeight="29.0" prefWidth="402.0" text="XiaoMiTool V2" textFill="#363636">
<HBox.margin>
<Insets bottom="6.0" top="5.0" />
</HBox.margin>
@@ -4,5 +4,5 @@ This tool uses advanced procedures that might brick your device, use it at your
This tool will send device related data (such as serial number, device model, ...) and user related data (such as userId) to Xiaomi server to use Xiaomi API in some procedures.
This tool might void your warranty depending on your seller.
This tool will NOT save or share any personal data, unless you clearly specify to save some on your local pc in the options.
The whole resposability of the possible outcomes of this tool is handled by the user who decides to use it (you), not by Xiaomi, not by the developer (me).
The whole responsibility of the possible outcomes of this tool is handled by the user who decides to use it (you), not by Xiaomi, not by the developer (me).
By using this tool, you accept that some anonymous data will be sent to the developer server to improve the tool.
@@ -7,7 +7,7 @@ import java.util.Map;
public class EasyHttp {
public static final String CHROME_USERAGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36";
private static final boolean DEBUG_PROXY = Log.ADVANCED_LOG;
private static final boolean DEBUG_PROXY = false; // Log.ADVANCED_LOG;
protected CustomHttpRequest request = new CustomHttpRequest();
private boolean headOnly = false;
private Map<String, String> cookies = new LinkedHashMap<>();
@@ -9,7 +9,7 @@ import java.io.PrintWriter;
import java.io.StringWriter;
public class Log {
public static final boolean ADVANCED_LOG = true;
public static final boolean ADVANCED_LOG = false;
private static final String PREFIX_DEBUG = "DEBUG";
private static final String PREFIX_INFO = "INFO";
private static final String PREFIX_WARN = "WARN";