forked from anixart-mod/patcher
Удаление входа по VK и Google и обновление патчей api
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user