-
Install dependencies:
sudo apt install default-jdk openjfx git fastboot adb
-
Clone repo:
git clone -b linux --single-branch --depth 1 https://github.com/shvchk/XiaoMiToolV2.git && cd XiaoMiToolV2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
wg_config="/tmp/wg-client-autoconf" | |
fw_min_date="20220601" | |
wg_up_dir="/pss/wg-up.d" | |
custom_routes_script_path="${wg_up_dir}/10-custom-routes" | |
custom_routes_script_url="https://gist.github.com/shvchk/675c363f8f241ec2d3300295d86de5cd/raw" | |
included_routes_path="/pss/wg_client_included_routes" | |
included_routes_url="https://gist.github.com/shvchk/ad0ae5c0a46036e5d1c164b3e9cdfb50/raw" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
die() { | |
echo "${1}. Exit." | |
exit 1 | |
} | |
yes_or_no() { | |
echo | |
while true; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hosts | |
142.250.185.225 # yt3.ggpht.com | |
# ---------- | |
# Custom | |
# Syncthing | |
82.196.12.0/22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
LOG="logger -t wireguard" | |
. /etc/scripts/global.sh | |
iface="wgcli0" | |
included_routes="/pss/wg_client_included_routes" | |
$LOG "WireGuard custom routes script: started" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env sh | |
host="" | |
wait=10 | |
max_tries=3 | |
up_cmd="" | |
down_cmd="" | |
# -------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env sh | |
host="" | |
wait=10 | |
max_tries=3 | |
# -------------------- | |
log="logger -t wg-if-up" | |
host_up="false" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/convert.c b/src/convert.c | |
index 55426da..8dc44dd 100644 | |
--- a/src/convert.c | |
+++ b/src/convert.c | |
@@ -744,6 +744,75 @@ getdns_wire2msg_dict_scan( | |
else GLDNS_ ## Y ## _CLR(header); \ | |
} | |
+static getdns_return_t | |
+_getdns_reply_dict2wire_hdr( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Emoji ranges source: https://www.unicode.org/Public/UCD/latest/ucd/emoji/emoji-data.txt --> | |
<match target="font"> | |
<test name="family" compare="not_eq"> | |
<string>JoyPixels</string> | |
</test> | |
<test name="family" compare="not_eq"> | |
<string>Noto Sans</string> | |
</test> | |
<test name="family" compare="not_eq"> | |
<string>Arimo</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<range> | |
<int>0x0023</int> | |
<int>0x0023</int> | |
</range> | |
<range> | |
<int>0x002A</int> | |
<int>0x002A</int> | |
</range> | |
<range> | |
<int>0x0030</int> |