dongguoliang@kuaifazs.com пре 2 година
родитељ
комит
380c74be6f
3 измењених фајлова са 79 додато и 0 уклоњено
  1. 38 0
      倩女幽魂酷派/script.py
  2. 37 0
      劲舞时代酷派/script.py
  3. 4 0
      神仙道3酷派/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__":
+    ""

+ 37 - 0
劲舞时代酷派/script.py

@@ -0,0 +1,37 @@
+# -*- 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):
+    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)
+
+
+def move_smallsheep(decompileDir):
+   ""
+
+if __name__ == "__main__":
+    ""

+ 4 - 0
神仙道3酷派/script.py

@@ -28,6 +28,10 @@ def script_second(SDK, decompileDir, channelSdkInfo, new_game_channel_info, game
     handle_public_xml(xml,"APKTOOL")
 
 
+    xml=os.path.join(decompileDir,"res/values/layouts.xml")
+    handle_public_xml(xml,"APKTOOL")
+
+
 def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
     logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
     if channelSdkInfo['id'] == '597':