mirror of
https://gitee.com/xmz7891/ykxmz.git
synced 2026-10-18 16:00:43 +00:00
鎵嬭〃绔?- 鍐呯疆 GTS Root R4 / GlobalSign Root CA
淇?SSLHandshakeException: Chain validation failed
锛堝粔浠锋墜琛ㄧ郴缁熸牴璇佷功搴撳父缂?GTS Root R4锛?- 杩炴帴閿欒缈昏瘧鎴愪汉璇濓細璇佷功 / 鏃堕棿 / 瑙f瀽 / 瓒呮椂鍒嗗埆缁欐彁绀?- 缁忎腑杞繛涓婂悗鐢ㄦ湇鍔″櫒鎶ョ殑鍦板潃鍒锋柊宸查厤瀵硅褰曪紙鍘熸潵涓€鐩存樉绀烘棫 IP锛?- 鐗堟湰鍙?1.3.0 -> 1.5.0锛圓ndroidManifest 涔嬪墠婕忔敼浜嗭級
鏈嶅姟鍣ㄧ
- 鏀寔 chunked 璇锋眰浣擄細淇瘡 16 绉掍竴娆$殑杩炴帴閿欎贡涓庡ぇ闈㈢Н 502
- 缃戠粶璋冧紭 net-tune.sh锛氬す MSS 1400 + 璺緞 MTU 鎺㈡祴
锛堝叕缃戝彲鐢ㄧ巼 48% -> 100%锛屽疄娴?15 鍒嗛挓 180/180锛? 鍋氭垚寮€鏈烘湇鍔?lanremote-nettune.service锛屽苟浼氳嚜鍔ㄩ噸寤洪毀閬?- 鏂板涓嬭浇鍖猴細GET /v1/downloads 鍒楄〃 + GET /download/<鏂囦欢>
鍙厑璁哥櫧鍚嶅崟鍚庣紑銆佷弗鏍兼牎楠屾枃浠跺悕锛堟尅鐩綍绌胯秺锛? 绠$悊椤靛姞涓嬭浇鍗$墖
- 闅ч亾鏀?HTTP/2 + 鍙岃繛鎺ワ紙QUIC 鍦ㄨ繖鏉$嚎璺笂鍙敤鐜囧彧鏈?48%锛?- 缃戠粶浣撴銆佹壒閲忓垹闄よ澶?
鎵撳寘鏂瑰紡鍙樻洿
- 鍘熸潵鏄笁涓儴鍒嗗悎鎴愪竴涓?zip锛岀幇鍦?*鍒嗘垚涓変釜鐙珛浜х墿**锛? ykxmz-agent-1.5.0.zip 琚帶绔? ykxmz-server-1.5.0.zip 鏈嶅姟鍣ㄧ
ykxmz-watch-1.5.0.apk 鎺у埗绔紙鐩存帴缁?APK锛屼笉鎵?zip锛? 涓変釜鍖?鏂囦欢閮藉甫涓婅鍙崗璁?/ 瀹夎鍓嶅繀璇?/ 瀹夎鍚庨』鐭?
鏂囨。
- 璁稿彲鍗忚 / 瀹夎鍓嶅繀璇?/ 瀹夎鍚庨』鐭ワ紙浣滆€咃細灏忛害瀛愶級
72 lines
2.7 KiB
Python
72 lines
2.7 KiB
Python
# -*- coding: utf-8 -*-
|
|
r"""精确补上 TlsCompat.java(上一版正则没匹配上)。
|
|
|
|
两处的实际写法:
|
|
test_package_remote.py:
|
|
for n in ("Json.java", "B64.java", "Transport.java",
|
|
"RelayTransport.java", "RemoteClient.java",
|
|
"DiscoveryCore.java")]
|
|
verify_all.ps1:
|
|
(Join-Path $root "android\src\com\lanremote\watch\RelayTransport.java") `
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(r"C:\Users\shu\Desktop\deepseekagent\LanRemote")
|
|
|
|
PY_OLD = ''' sources = [ROOT / "android" / "src" / "com" / "lanremote" / "watch" / n
|
|
for n in ("Json.java", "B64.java", "Transport.java",
|
|
"RelayTransport.java", "RemoteClient.java",
|
|
"DiscoveryCore.java")]'''
|
|
|
|
PY_NEW = ''' sources = [ROOT / "android" / "src" / "com" / "lanremote" / "watch" / n
|
|
for n in ("Json.java", "B64.java", "Transport.java",
|
|
"RelayTransport.java", "TlsCompat.java",
|
|
"RemoteClient.java",
|
|
"DiscoveryCore.java")]'''
|
|
|
|
PS1_OLD = ''' (Join-Path $root "android\\src\\com\\lanremote\\watch\\RelayTransport.java") `'''
|
|
|
|
PS1_NEW = ''' (Join-Path $root "android\\src\\com\\lanremote\\watch\\RelayTransport.java") `
|
|
# TlsCompat:内置根证书,修老手表 SSLHandshakeException
|
|
(Join-Path $root "android\\src\\com\\lanremote\\watch\\TlsCompat.java") `'''
|
|
|
|
|
|
def main() -> int:
|
|
ok = True
|
|
|
|
path = ROOT / "_tests" / "test_package_remote.py"
|
|
text = path.read_text(encoding="utf-8")
|
|
if "TlsCompat.java" in text:
|
|
print(" test_package_remote.py: 已经有了")
|
|
elif PY_OLD in text:
|
|
path.write_text(text.replace(PY_OLD, PY_NEW, 1),
|
|
encoding="utf-8", newline="\n")
|
|
print(" test_package_remote.py: 补上 TlsCompat.java")
|
|
else:
|
|
print(" [失败] test_package_remote.py 锚点没找到")
|
|
ok = False
|
|
|
|
path = ROOT / "_tests" / "verify_all.ps1"
|
|
raw = path.read_bytes()
|
|
had_bom = raw.startswith(b"\xef\xbb\xbf")
|
|
text = raw.decode("utf-8-sig")
|
|
if "TlsCompat.java" in text:
|
|
print(" verify_all.ps1: 已经有了")
|
|
elif PS1_OLD in text:
|
|
text = text.replace(PS1_OLD, PS1_NEW, 1)
|
|
path.write_bytes((b"\xef\xbb\xbf" if had_bom else b"")
|
|
+ text.replace("\r\n", "\n").encode("utf-8"))
|
|
print(" verify_all.ps1: 补上 TlsCompat.java")
|
|
else:
|
|
print(" [失败] verify_all.ps1 锚点没找到")
|
|
ok = False
|
|
|
|
return 0 if ok else 1
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|