Удаление входа по VK и Google и обновление патчей api

This commit is contained in:
2025-09-11 14:44:07 +03:00
parent 3b2e5bee18
commit d6f616da7a
3 changed files with 30 additions and 3 deletions
+11
View File
@@ -2,6 +2,7 @@
priority = -1
import os
from lxml import etree
def rename_dir(src, dst):
@@ -86,6 +87,16 @@ def apply(config: dict) -> bool:
except:
pass
file_path = "./decompiled/res/layout/fragment_sign_in.xml"
parser = etree.XMLParser(remove_blank_text=True)
tree = etree.parse(file_path, parser)
root = tree.getroot()
last_linear = root.xpath("//LinearLayout/LinearLayout[4]")[0]
last_linear.set(f"{{{config['xml_ns']['android']}}}visibility", "gone")
tree.write(file_path, pretty_print=True, xml_declaration=True, encoding="utf-8")
return True