Explorar el Código

添加天之禁诸界破碎酷派脚本,从第二个classes.dex中分出包androidx

dongguoliang@kuaifazs.com hace 4 años
padre
commit
1e8064a1fe

+ 2 - 0
.gitignore

@@ -1 +1,3 @@
 venv/
+.idea/
+*.zip

+ 45 - 0
天之禁_诸界破碎酷派/script.py

@@ -0,0 +1,45 @@
+# coding:utf8
+
+__author__ = 'Snow'
+
+import os
+import logging
+import xml.dom.minidom
+import re
+import shutil
+import glob
+import distutils.dir_util
+import gw_file_system
+import gw_data_center
+import gw_apk_tool
+
+ANDROID_NS = 'http://schemas.android.com/apk/res/android'
+from xml.etree import ElementTree as ET
+
+
+def script_init(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
+    return
+
+
+def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    return
+
+
+def script_pre(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    return
+
+
+def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
+    if channelSdkInfo['id'] == '549':
+        s1 = os.path.join(decompileDir, "smali_classes2")
+        smali_classes2_dir = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = smali_classes2_dir
+        list_package = ["androidx"]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+if __name__ == '__main__':
+    del_hjr("C:\\Users\\Administrator\\Desktop\\Shadow")

BIN
天之禁_诸界破碎酷派/script.pyc


BIN
楚留香/0WPeTC.zip


+ 10 - 2
楚留香/script.py

@@ -38,7 +38,7 @@ def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
 
 def script_pre(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
     sdk_id = channelSdkInfo['id']
-    if sdk_id == "549" or sdk_id=="412":
+    if sdk_id == "549" or sdk_id == "412":
         modify_manifest(decompileDir)
 
 
@@ -49,13 +49,21 @@ def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameIn
     # smali_classes4
     s1 = os.path.join(decompileDir, "smali_classes4", "com/netease")
     smali_classes2_dir = create_mutil_smali(decompileDir)
-
     s3 = smali_classes2_dir
     list_package = ["game", "messiah", "mpay", "ntunisdk", "screen_recorder", "unisdk", "wyclx", ]
     if not os.path.exists(s3):
         distutils.dir_util.mkpath(s3)
     move_package(s1, s3, list_package)
 
+    if channelSdkInfo['id'] == '444':
+        s1 = os.path.join(decompileDir, "smali_classes5", "com")
+        smali_classes2_dir = create_mutil_smali(decompileDir)
+        s3 = os.path.join(smali_classes2_dir, "com")
+        list_package = ["kymjs","netease"]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        move_package(s1, s3, list_package)
+
 
 def modify_manifest(decompileDir):
     ET.register_namespace('android', ANDROID_NS)

BIN
楚留香/script.pyc


BIN
楚留香/ur5C08.zip


BIN
楚留香/手游系统-押金台账(首页).xlsx


BIN
楚留香/楚留香.zip