From b54e2b8f3dbb75f04c6b32612194682276d34bd9 Mon Sep 17 00:00:00 2001 From: Radiquum Date: Mon, 1 Sep 2025 00:12:16 +0500 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=B0=D1=82=D1=87=D0=B0=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=B8=D0=BC=D0=B5=D0=BD=D0=B8=20=D0=BF=D0=B0?= =?UTF-8?q?=D0=BA=D0=B5=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- patches/package_name.py | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/patches/package_name.py b/patches/package_name.py index 068c428..7759495 100644 --- a/patches/package_name.py +++ b/patches/package_name.py @@ -32,23 +32,26 @@ def apply(config: dict) -> bool: file.write(new_contents) except: pass + + if os.path.exists("./decompiled/smali/com/swiftsoft/anixartd"): + rename_dir( + "./decompiled/smali/com/swiftsoft/anixartd", + os.path.join( + "./decompiled", "smali", config["new_package_name"].replace(".", "/") + ), + ) + if os.path.exists("./decompiled/smali_classes2/com/swiftsoft/anixartd"): + rename_dir( + "./decompiled/smali_classes2/com/swiftsoft/anixartd", + os.path.join( + "./decompiled", + "smali_classes2", + config["new_package_name"].replace(".", "/"), + ), + ) - rename_dir( - "./decompiled/smali/com/swiftsoft/anixartd", - os.path.join( - "./decompiled", "smali", config["new_package_name"].replace(".", "/") - ), - ) - rename_dir( - "./decompiled/smali_classes2/com/swiftsoft/anixartd", - os.path.join( - "./decompiled", - "smali_classes2", - config["new_package_name"].replace(".", "/"), - ), - ) - - os.rmdir("./decompiled/smali_classes2/com/swiftsoft") + # в этой папке остаётся файл StringUtils.smali, который может быть важен + # os.rmdir("./decompiled/smali_classes2/com/swiftsoft") return True