瀏覽代碼

添加了新的游戏

dongguoliang@kuaifazs.com 2 年之前
父節點
當前提交
9fb2de5709
共有 3 個文件被更改,包括 83 次插入0 次删除
  1. 38 0
      天命传说酷派/script.py
  2. 9 0
      蛋仔派对酷派/script.py
  3. 36 0
      雪地大冒险酷派/script.py

+ 38 - 0
天命传说酷派/script.py

@@ -0,0 +1,38 @@
+# -*- coding:utf-8 -*-
+__author__ = 'ALIXie'
+
+import os
+import logging
+import distutils.dir_util
+import gw_apk_tool
+
+
+def script_init(workspace_sdk_dir, extract_dir, channelSdkInfo, new_game_channel_info, game_info):
+    return
+
+
+def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
+
+    if channelSdkInfo['id'] == '597':
+        move(decompileDir)
+    else:
+        move_smallsheep(decompileDir)
+
+
+def move(decompileDir):
+    ""
+
+
+def move_smallsheep(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes3", "androidx")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(smali_classes2_dir, "androidx")
+    list_package = ["activity","arch","constraintlayout","cursoradapter","drawerlayout","legacy","annotation","asynclayoutinflater","coordinatorlayout","customview","fragment","lifecycle","appcompat","collection","core","documentfile","interpolator"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+if __name__ == "__main__":
+    ""

+ 9 - 0
蛋仔派对酷派/script.py

@@ -245,6 +245,7 @@ def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameIn
                 distutils.dir_util.mkpath(s3)
             move_package(s1, s3, list_package)
 
+
     if sdk_id == "549" or sdk_id=="591":
         s1 = os.path.join(decompileDir, "smali_classes7", "com")
         if os.path.exists(s1):
@@ -288,6 +289,14 @@ def move_smallsheep(decompileDir):
         distutils.dir_util.mkpath(s3)
     gw_apk_tool.move_package(s1, s3, list_package)
 
+    s1 = os.path.join(decompileDir, "smali_classes7","androidx")
+    if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"androidx")
+            list_package = ["legacy","lifecycle","loader","localbroadcastmanager","print","savedstate","slidingpanelayout"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
 
 def create_mutil_smali(decompileDir):
     f_idx = 2

+ 36 - 0
雪地大冒险酷派/script.py

@@ -0,0 +1,36 @@
+# -*- coding:utf-8 -*-
+__author__ = 'ALIXie'
+
+import os
+import logging
+import distutils.dir_util
+import gw_apk_tool
+
+
+def script_init(workspace_sdk_dir, extract_dir, channelSdkInfo, new_game_channel_info, game_info):
+    return
+
+
+def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
+
+    if channelSdkInfo['id'] == '597':
+        move(decompileDir)
+    else:
+        ""
+
+
+def move(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes2")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(smali_classes2_dir)
+    list_package = ["com"]
+    if not os.path.exists(s3):
+          distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+def move_smallsheep(decompileDir):
+    ""
+
+if __name__ == "__main__":
+    ""