forked from anixart-mod/patcher
38 lines
1.0 KiB
Python
38 lines
1.0 KiB
Python
# Change package icon of apk
|
|
|
|
import shutil
|
|
import os
|
|
|
|
|
|
def apply(config: dict) -> bool:
|
|
# Mod first launch window
|
|
shutil.copytree(
|
|
"./patches/resources/smali_classes4/", "./decompiled/smali_classes4/"
|
|
)
|
|
|
|
# Mod assets
|
|
shutil.copy("./patches/resources/wowlikon.png", "./decompiled/assets/wowlikon.png")
|
|
shutil.copy(
|
|
"./patches/resources/ytsans_medium.ttf",
|
|
"./decompiled/res/font/ytsans_medium.ttf",
|
|
)
|
|
shutil.copy(
|
|
"./patches/resources/OpenSans-Regular.ttf",
|
|
"./decompiled/assets/OpenSans-Regular.ttf",
|
|
)
|
|
shutil.copy(
|
|
"./patches/resources/ic_custom_crown.xml",
|
|
"./decompiled/res/drawable/ic_custom_crown.xml",
|
|
)
|
|
shutil.copy(
|
|
"./patches/resources/ic_custom_telegram.xml",
|
|
"./decompiled/res/drawable/ic_custom_telegram.xml",
|
|
)
|
|
shutil.copy(
|
|
"./patches/resources/torlook-fs8.torlook-fs8.png",
|
|
"./decompiled/res/drawable/torlook-fs8.png",
|
|
)
|
|
|
|
os.remove("./decompiled/res/font/ytsans_medium.otf")
|
|
return False
|