Обновление вывода информации о патчах, добавление патча лайков/дизлайков

This commit is contained in:
2025-10-11 18:40:44 +03:00
parent b646dbf6fe
commit 28c60aa7a3
27 changed files with 313 additions and 114 deletions
+9 -4
View File
@@ -1,5 +1,4 @@
"""
Изменяет имя пакета в apk, удаляет вход по google и vk
"""Изменяет имя пакета в apk, удаляет вход по google и vk
"package_name": {
"enabled": true,
@@ -34,7 +33,7 @@ def apply(config: Config, base: Dict[str, Any]) -> bool:
file_path = os.path.join(root, filename)
if os.path.isfile(file_path):
try:
try: # Изменяем имя пакета в файлах
with open(file_path, "r", encoding="utf-8") as file:
file_contents = file.read()
@@ -44,12 +43,16 @@ def apply(config: Config, base: Dict[str, Any]) -> bool:
new_contents = new_contents.replace(
"com/swiftsoft/anixartd",
config.package_name.replace(".", "/"),
).replace(
"com/swiftsoft",
"/".join(config.package_name.split(".")[:2]),
)
with open(file_path, "w", encoding="utf-8") as file:
file.write(new_contents)
except:
pass
# Изменяем названия папок
if os.path.exists("./decompiled/smali/com/swiftsoft/anixartd"):
rename_dir(
"./decompiled/smali/com/swiftsoft/anixartd",
@@ -72,7 +75,7 @@ def apply(config: Config, base: Dict[str, Any]) -> bool:
os.path.join(
"./decompiled",
"smali_classes4",
"/".join(config.package_name.split(".")[:-1]),
"/".join(config.package_name.split(".")[:2]),
),
)
@@ -85,6 +88,7 @@ def apply(config: Config, base: Dict[str, Any]) -> bool:
# ),
# )
# Замена названия пакета для smali_classes4
for root, dirs, files in os.walk("./decompiled/smali_classes4/"):
for filename in files:
file_path = os.path.join(root, filename)
@@ -103,6 +107,7 @@ def apply(config: Config, base: Dict[str, Any]) -> bool:
except:
pass
# Скрытие входа по Google и VK (НЕ РАБОТАЮТ В МОДАХ)
file_path = "./decompiled/res/layout/fragment_sign_in.xml"
parser = etree.XMLParser(remove_blank_text=True)
tree = etree.parse(file_path, parser)