Удаление автоматической замены сервера и полная сборка apk

This commit is contained in:
2025-09-13 19:29:29 +03:00
parent d6f616da7a
commit cc49aad2aa
3 changed files with 37 additions and 2 deletions
+10
View File
@@ -27,4 +27,14 @@ def apply(config: dict) -> bool:
with open(filepath, 'w') as f:
f.write(content.replace('const-string v1, "https://anixhelper.github.io/pages/urls.json"', f'const-string v1, "{new_api["gh"]}"'))
content = ""
tqdm.write("Удаление динамического выбора сервера")
filepath = './decompiled/smali_classes2/com/swiftsoft/anixartd/DaggerApp_HiltComponents_SingletonC$SingletonCImpl$SwitchingProvider.smali'
with open(filepath, 'r') as f:
for line in f.readlines():
if "addInterceptor" in line: continue
content += line
with open(filepath, 'w') as f:
f.write(content)
return True