Browse Source

一波新游戏脚本

dongguoliang@kuaifazs.com 2 years ago
parent
commit
cec68935eb

+ 123 - 0
三刀符石酷派/script.py

@@ -0,0 +1,123 @@
+# coding:utf8
+import os
+import logging
+import re
+import glob
+import shutil
+import xml.etree.ElementTree as ET
+import distutils.dir_util
+
+import gw_file_system
+
+ANDROID_NS = 'http://schemas.android.com/apk/res/android'
+
+
+def script(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
+    return
+
+
+def script_second(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
+    logging.info('script_second: ' + str(channel_sdk_info))
+    return
+
+
+def script_pre(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
+    return
+
+
+def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
+
+    if not os.path.exists(os.path.join(decompileDir, "smali_classes3/androidx")):
+        return
+
+    s1 = os.path.join(decompileDir, "smali_classes3")
+    smali_classes2_dir = create_mutil_smali(decompileDir)
+    s3 = smali_classes2_dir
+    list_package = ["androidx"]
+    if not os.path.exists(s3):
+         distutils.dir_util.mkpath(s3)
+    move_package(s1, s3, list_package)
+
+
+def move_package(s1, s3, list_package):
+    for d in list_package:
+        src = os.path.join(s1, d)
+        if os.path.exists(src):
+            dst = os.path.join(s3, d)
+            distutils.dir_util.copy_tree(src, dst)
+            distutils.dir_util.remove_tree(src)
+
+
+def create_mutil_smali(decompileDir):
+    f_idx = 2
+    while True:
+        tmp = gw_file_system.get_full_path(os.path.join(decompileDir, 'smali_classes%d' % f_idx))
+        tmp = tmp.replace('\\', '/')
+        tmp = re.sub('/+', '/', tmp)
+
+        if os.path.exists(tmp):
+            files = os.listdir(tmp)
+            if len(files) == 0:
+                smali_classes2_dir = tmp
+                break
+            f_idx += 1
+        else:
+            smali_classes2_dir = tmp
+            break
+    # endwhile
+    if not os.path.exists(smali_classes2_dir):
+        os.mkdir(smali_classes2_dir)
+    return smali_classes2_dir
+
+
+def handle_public_xml_param(public_xml_path, remove_node):
+    if not os.path.exists(public_xml_path):
+        logging.info('public_xml is null: ' + public_xml_path)
+        return
+    new_lines = []
+    with open(public_xml_path, 'r+') as f:
+        for line in f.readlines():
+            # l = line.strip()
+            if line.find(remove_node) > -1:
+                continue
+            new_lines.append(line)
+        f.seek(0)
+        f.truncate()
+        f.writelines(new_lines)
+    return
+
+
+def handle_public_xml(public_xml_path):
+    if not os.path.exists(public_xml_path):
+        logging.info('public_xml is null: ' + public_xml_path)
+        return
+    new_lines = []
+    with open(public_xml_path, 'r+') as f:
+        for line in f.readlines():
+            # l = line.strip()
+            if line.find("offline_banners") > -1 or line.find("outfit7") > -1 or line.find(
+                    "countries") > -1 or line.find(
+                "county_codes") > -1 or line.find("felis_error_reporting_files") > -1:
+                continue
+            new_lines.append(line)
+        f.seek(0)
+        f.truncate()
+        f.writelines(new_lines)
+    return
+
+
+def remove_navigate(decompileDir):
+    tmp_res = os.path.join(decompileDir, "res", "navigation")
+    tmp_public_xml = os.path.join(decompileDir, "res", "values", "public.xml")
+    if os.path.exists(tmp_res):
+        distutils.dir_util.remove_tree(tmp_res)
+    if os.path.exists(tmp_public_xml):
+        os.remove(tmp_public_xml)
+
+
+if __name__ == '__main__':
+    script_last("/tmp/ss", "G:/autopack2.0_kuaifa/tool/workspace/wdajl/15957/extract/", {"id": "309"}, "", "")
+    # xml_path = "E:/apk/youhua/jingmenfengyue_216122/res/values/public.xml"
+    # handle_public_xml(xml_path)
+    # hideSplash("/mnt/share/yanghuang/python_test/cr")

+ 90 - 0
伏龙酷派/script.py

@@ -0,0 +1,90 @@
+# coding:utf8
+
+__author__ = 'dong'
+
+import os
+import logging
+import xml.dom.minidom
+import re
+import shutil
+import glob
+import distutils.dir_util
+import os
+import gw_apk_tool
+import gw_data_center
+
+
+def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    # if channelSdkInfo['id'] == '597':
+    #     gw_data_center.pack_small = True
+    return
+
+
+def script_second(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    return
+
+
+def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    # logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
+    # if channelSdkInfo['id'] == '597':
+    #     logging.info("remove_navigate")
+    #     remove_navigate(decompileDir)
+    return
+
+
+def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
+    if channelSdkInfo['id'] == '597':
+       return
+    else:
+        move(decompileDir)
+
+def move(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes3/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "androidx")
+    list_package = ["activity","arch","constraintlayout","cursoradapter","drawerlayout","legacy","localbroadcastmanager","annotation","asynclayoutinflater","coordinatorlayout","customview","fragment","lifecycle","appcompat","collection","core","documentfile","interpolator","loader"]
+
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def remove_navigate(decompileDir):
+    tmp_res = os.path.join(decompileDir, "res", "navigation")
+    tmp_public_xml = os.path.join(decompileDir, "res", "values", "public.xml")
+    if os.path.exists(tmp_res):
+        distutils.dir_util.remove_tree(tmp_res)
+    if os.path.exists(tmp_public_xml):
+        os.remove(tmp_public_xml)
+
+
+def move_10_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["ttgame"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def handle_public_xml(public_xml_path, remove_node):
+    if not os.path.exists(public_xml_path):
+        logging.info('public_xml is null: ' + public_xml_path)
+        return
+    new_lines = []
+    with open(public_xml_path, 'r+') as f:
+        for line in f.readlines():
+            # l = line.strip()
+            if line.find(remove_node) > -1:
+                continue
+            new_lines.append(line)
+        f.seek(0)
+        f.truncate()
+        f.writelines(new_lines)
+    return
+
+if __name__ == '__main__':
+    # del_qihoo("C:\\Users\\Administrator\\Desktop\\zt")
+    remove_navigate("G:\\autopack2.0_kuaifa\\tool\\workspace\\lrs360\\13651\\extract")

+ 29 - 0
传说之城酷派/script.py

@@ -0,0 +1,29 @@
+# -*- 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':
+        ""
+    else:
+        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","localbroadcastmanager","annotation","asynclayoutinflater","coordinatorlayout","customview","fragment","lifecycle","media","appcompat","collection","core","documentfile","interpolator","loader","print"]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+if __name__ == "__main__":
+    ""

+ 17 - 1
元气骑士酷派/script.py

@@ -39,6 +39,11 @@ def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
 
 def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
     sdk_id = channelSdkInfo['id']
+    if sdk_id == "597":
+        ""
+    else:
+        move(decompileDir)
+
     if sdk_id == "549":
         f_idx = 2
         while True:
@@ -49,7 +54,7 @@ def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameIn
 
             if os.path.exists(androidx):
                 new_dex_dir = create_mutil_smali(decompileDir)
-                move_package(tmp, new_dex_dir, ["bitter","cn"])
+                move_package(tmp, new_dex_dir, ["bitter", "cn"])
                 break
 
             if not os.path.exists(tmp):
@@ -59,6 +64,17 @@ def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameIn
     return
 
 
+def move(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes2/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["chillyroomsdk", "fasterxml", "fish", "google", "tencent"]
+
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
 def create_mutil_smali(decompileDir):
     f_idx = 2
     while True:

+ 577 - 0
光明冒险其它CP/script.py

@@ -0,0 +1,577 @@
+# coding:utf8
+
+__author__ = 'dong'
+
+import os
+import logging
+import xml.dom.minidom
+import re
+import shutil
+import glob
+from xml.etree.ElementTree import ElementTree, Element
+import distutils.dir_util
+from xml.etree import ElementTree as ET
+import gw_file_system
+
+ANDROID_NS = 'http://schemas.android.com/apk/res/android'
+
+
+def script_second(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
+    logging.info('script_second: ' + str(channel_sdk_info))
+    # 逆向渠道id
+    sdk_id =  channel_sdk_info['id']
+    if sdk_id == "597" :#深圳 成都都是用这个id
+        public_xml = os.path.join(extract_dir, "res/values/public.xml")
+        handle_public_xml(public_xml, "attr-private")
+
+        # public_xml = os.path.join(extract_dir, "res/layout/design_bottom_sheet_dialog.xml")
+        # handle_public_xml(public_xml, "attr-private")
+        #
+        # public_xml = os.path.join(extract_dir, "res/layout/mtrl_layout_snackbar.xml")
+        # # handle_public_xml(public_xml, "attr-private")
+        # os.remove(public_xml)
+        #
+        # public_xml = os.path.join(extract_dir, "res/layout-sw600dp/mtrl_layout_snackbar.xml")
+        # # handle_public_xml(public_xml, "attr-private")
+        # os.remove(public_xml)
+        #
+        # public_xml = os.path.join(extract_dir, "res/values/public.xml")
+        # handle_public_xml(public_xml, "mtrl_layout_snackbar")
+        #
+        # public_xml = os.path.join(extract_dir, "res/layout/mtrl_layout_snackbar_include.xml")
+        # handle_public_xml(public_xml, "attr-private")
+        #
+        # public_xml = os.path.join(extract_dir, "res/drawable-v21/abc_dialog_material_background.xml")
+        # handle_public_xml(public_xml, "attr-private")
+        #
+        # public_xml = os.path.join(extract_dir, "res/values/styles.xml")
+        # handle_public_xml(public_xml, "attr-private")
+        #
+        # public_xml = os.path.join(extract_dir, "res/values-v21/styles.xml")
+        # handle_public_xml(public_xml, "attr-private")
+
+    return
+
+
+def handle_public_xml(public_xml_path, remove_node):
+    if not os.path.exists(public_xml_path):
+        logging.info('public_xml is null: ' + public_xml_path)
+        return
+    new_lines = []
+    with open(public_xml_path, 'r+') as f:
+        for line in f.readlines():
+            # l = line.strip()
+            if line.find(remove_node) > -1:
+                continue
+            new_lines.append(line)
+        f.seek(0)
+        f.truncate()
+        f.writelines(new_lines)
+    return
+
+
+def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    logging.info("-----debug-----")
+
+
+def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    return
+    sdk_id = channelSdkInfo['id']
+    if sdk_id == "597":
+        s1 = os.path.join(decompileDir, "smali","androidx")
+        if os.path.exists(s1):
+            smali_classes_new = create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"androidx")
+            list_package = ["activity","appcompat","collection","core","customview","exifinterface","interpolator","lifecycle","annotation","arch","constraintlayout","cursoradapter","drawerlayout","fragment","legacy","loader"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes2")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir)
+            list_package = ["androidx"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes2","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["albaba","alipay","android","asus","bumptech","bun","ccsingle","cmge","facebook"]
+            list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes3","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["albaba","alipay"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes3","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["android","asus"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes3","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["bumptech","bun"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes3","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["ccsingle","cmge"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes3","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["facebook"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes3","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            list_package.extend(["google","heytap"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+
+        s1 = os.path.join(decompileDir, "smali_classes3","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            list_package.extend(["hihonor","huawei"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes3","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            list_package.extend(["ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes3","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            list_package.extend(["lzy","mcs"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes3","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            list_package.extend(["meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes3")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,)
+            list_package = []
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            list_package.extend(["androidx"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes4","com")
+        if os.path.exists(s1):
+
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["albaba","alipay"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes4","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["android","asus"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes4","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["bumptech","bun"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes4","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["ccsingle","cmge"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes4","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["facebook"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes4","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            list_package.extend(["google","heytap"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+
+        s1 = os.path.join(decompileDir, "smali_classes4","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            list_package.extend(["hihonor","huawei"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes4","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            list_package.extend(["ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes4","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            list_package.extend(["lzy","mcs"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes4","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            list_package.extend(["meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes4")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,)
+            list_package = []
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            list_package.extend(["androidx"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes5","com")
+        if os.path.exists(s1):
+
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["albaba","alipay"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes5","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["android","asus"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes5","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["bumptech","bun"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes5","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["ccsingle","cmge"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes5","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["facebook"]
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes5","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            list_package.extend(["google","heytap"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+
+        s1 = os.path.join(decompileDir, "smali_classes5","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            list_package.extend(["hihonor","huawei"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes5","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            list_package.extend(["ipaynow","jtly","koushikdutta"])
+            # list_package.extend(["lzy","mcs","meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes5","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            list_package.extend(["lzy","mcs"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes5","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = []
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            list_package.extend(["meizu","onevcat","renderheads"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes5")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,)
+            list_package = []
+            # list_package.extend(["google","heytap","hihonor","huawei","ipaynow","jtly","koushikdutta"])
+            list_package.extend(["androidx"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes7","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,)
+            list_package = []
+            list_package.extend(["facebook","google","heytap"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes7","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,)
+            list_package = []
+            list_package.extend(["hihonor","huawei"])
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+    return
+
+def create_mutil_smali(decompileDir):
+    f_idx = 2
+    while True:
+        tmp = gw_file_system.get_full_path(os.path.join(decompileDir, 'smali_classes%d' % f_idx))
+        tmp = tmp.replace('\\', '/')
+        tmp = re.sub('/+', '/', tmp)
+        if os.path.exists(tmp):
+            f_idx += 1
+        else:
+            smali_classes2_dir = tmp
+            break
+    # endwhile
+    os.mkdir(smali_classes2_dir)
+    return smali_classes2_dir
+
+
+def move_package(s1, s3, list_package):
+    for d in list_package:
+        src = os.path.join(s1, d)
+        if os.path.exists(src):
+            dst = os.path.join(s3, d)
+            distutils.dir_util.copy_tree(src, dst)
+            distutils.dir_util.remove_tree(src)
+
+
+def move_package_one(src, dst):
+    if os.path.exists(src):
+        distutils.dir_util.copy_tree(src, dst)
+        distutils.dir_util.remove_tree(src)
+
+
+change_map = {".super Landroid/app/Application;": ".super Lcom/kf/framework/KFApplication;",
+              "invoke-direct {p0}, Landroid/app/Application;-><init>()V": "invoke-direct {p0}, Lcom/kf/framework/KFApplication;-><init>()V",
+              "invoke-super {p0, p1}, Landroid/app/Application;->attachBaseContext(Landroid/content/Context;)V": "invoke-super {p0, p1}, Lcom/kf/framework/KFApplication;->attachBaseContext(Landroid/content/Context;)V",
+              "invoke-super {p0}, Landroid/app/Application;->onCreate()V": "invoke-super {p0}, Lcom/kf/framework/KFApplication;->onCreate()V", }
+
+
+def replace_super_application(decompileDir):
+    smali_files = glob.glob(
+        os.path.join(decompileDir, 'smali*/com/radical/huangshangjixiang/qh360/CoronaApplication.smali'))
+    if len(smali_files) == 1:
+        game_application_file = smali_files[0];
+        print game_application_file
+        if os.path.isfile(game_application_file):
+            with open(game_application_file, "r+") as f:
+                file_str = f.read()
+                for k, v in change_map.items():
+                    file_str = file_str.replace(k, v)
+            with open(game_application_file, "w+") as f:
+                f.write(file_str)
+
+
+def modify_manifest(decompileDir, removeKey):
+    ET.register_namespace('android', ANDROID_NS)
+    xmlparse = os.path.join(decompileDir, 'AndroidManifest.xml')
+    root_node = ET.parse(xmlparse)
+    root = root_node.getroot()
+    name = '{' + ANDROID_NS + '}name'
+    authorities = '{' + ANDROID_NS + '}' + removeKey
+    package_name = root.attrib.get('package')
+    if package_name == None:
+        return
+    providers = root.findall('./application')
+    if providers != None:
+        for provider in providers:
+            # providerName = provider.attrib.get(name)
+            # if 'com.netease.ntunisdk.CcMomentRecordingForegroundService' == providerName:
+            # 使用try 主要是为了 防止此属性不在时,导致的错误,而程序终止
+            try:
+                del provider.attrib[authorities]
+            except:
+                ""
+
+    root_node.write(xmlparse, 'utf-8')
+
+
+if __name__ == '__main__':
+    # replace_super_application("D:\work\wzdq")
+    modify_manifest("E:\\apk\\youhua\\youhua.zip.out", "requestLegacyExternalStorage")

+ 68 - 1
大唐无双酷派/script.py

@@ -8,13 +8,20 @@ import re
 import distutils.dir_util
 import gw_file_system
 import gw_data_center
+import gw_apk_tool
+import xml.etree.ElementTree as ET
 
-
+ANDROID_NS = 'http://schemas.android.com/apk/res/android'
 def script_init(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
     gw_data_center.pack_small = False
 
 
 def script_pre(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
+    sdk_id = channel_sdk_info['id']
+    if sdk_id == "512" or sdk_id=="589":
+        modify_manifest(extract_dir)
+        game_mode_config = os.path.join(extract_dir, "res/xml-v22/game_mode_config.xml")
+        os.remove(game_mode_config)
     return
 
 def script(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
@@ -38,6 +45,10 @@ def script_last(workspace_sdk_dir, decompileDir, channel_sdk_info, new_game_chan
             distutils.dir_util.mkpath(s3)
         move_package(s1, s3, list_package)
 
+        move(decompileDir)
+    else:
+       move_smallsheep(decompileDir)
+
     if channel_sdk_info['id'] == "549":
         s1 = os.path.join(decompileDir, "smali_classes3")
         smali_classes_new = create_mutil_smali(decompileDir)
@@ -48,6 +59,39 @@ def script_last(workspace_sdk_dir, decompileDir, channel_sdk_info, new_game_chan
         move_package(s1, s3, list_package)
     return
 
+def move_smallsheep(extract_dir):
+    s1 = os.path.join(extract_dir, "smali_classes5","com/netease")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(extract_dir)
+    s3 = os.path.join(smali_classes2_dir,"com/netease")
+    list_package = ["android","cc","download","environment","httpdns","mobsec","neox","androidcrashhandler","ccrlsdk","downunifix","glide","loginapi","mpay"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+def move(extract_dir):
+    s1 = os.path.join(extract_dir, "smali_classes4")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(extract_dir)
+    s3 = os.path.join(smali_classes2_dir)
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, ["androidx"])
+
+    s1 = os.path.join(extract_dir, "smali_classes7","androidx")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(extract_dir)
+    s3 = os.path.join(smali_classes2_dir,"androidx")
+    list_package = ["activity","appcompat","asynclayoutinflater","core","customview","interpolator","lifecycle","localbroadcastmanager","annotation","arch","cardview","cursoradapter","documentfile","legacy","loader","media"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(extract_dir, "smali_classes8","com/netease/ntunisdk")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(extract_dir)
+    s3 = os.path.join(smali_classes2_dir,"com/netease/ntunisdk")
+    list_package = ["application","base","child","coolpad_sdk","extend","gamemode","langutil","ngshare","okio","picedit","atr","cclive","common","cutout","external","glide","modules","okhttp3","permissionkit","piclib"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
 
 def add_checkSelfPermission(extract_dir):
     goal_file = os.path.join(extract_dir, 'smali/android/support/v4/content/ContextCompat.smali')
@@ -93,6 +137,29 @@ def add_method(goal_file):
             fl.write(''.join(lines))
 
 
+def modify_manifest(decompileDir):
+    ET.register_namespace('android', ANDROID_NS)
+    xmlparse = os.path.join(decompileDir, 'AndroidManifest.xml')
+    root_node = ET.parse(xmlparse)
+    root = root_node.getroot()
+    name = '{' + ANDROID_NS + '}name'
+    authorities = '{' + ANDROID_NS + '}foregroundServiceType'
+    package_name = root.attrib.get('package')
+    if package_name == None:
+        return
+    providers = root.findall('./application/service')
+    if providers != None:
+        for provider in providers:
+            providerName = provider.attrib.get(name)
+            if 'com.netease.ntunisdk.CcMomentRecordingForegroundService' == providerName:
+                # 使用try 主要是为了 防止此属性不在时,导致的错误,而程序终止
+                try:
+                    del provider.attrib[authorities]
+                except:
+                    ""
+
+    root_node.write(xmlparse, 'utf-8')
+
 def move_package(s1, s3, list_package):
     for d in list_package:
         src = os.path.join(s1, d)

+ 46 - 2
天下酷派/script.py

@@ -6,6 +6,8 @@ import glob
 import shutil
 import xml.etree.ElementTree as ET
 import gw_data_center
+import gw_apk_tool
+import distutils.dir_util
 
 ANDROID_NS = 'http://schemas.android.com/apk/res/android'
 
@@ -15,14 +17,56 @@ def script_init(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_chann
     logging.info('script_init: ' + str(channel_sdk_info))
 
 
-def script_pre(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
+def script_last(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
+    s1 = os.path.join(extract_dir, "smali_classes3")
+    s2 = os.path.join(extract_dir, "smali_classes3", "androidx")
+    if os.path.exists(s2):
+        smali_classes2_dir = gw_apk_tool.create_mutil_smali(extract_dir)
+        s3 = smali_classes2_dir
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, ["androidx"])
+
+    sdk_id = channel_sdk_info['id']
+    if sdk_id == "512" or sdk_id=="589":
+        move(extract_dir)
+    else:
+       move_smallsheep(extract_dir)
     return
 
 
+def move(extract_dir):
+    s1 = os.path.join(extract_dir, "smali_classes5", "com")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(extract_dir)
+    s3 = os.path.join(smali_classes2_dir, "com")
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, ["netease"])
+
+def move_smallsheep(extract_dir):
+    s1 = os.path.join(extract_dir, "smali_classes4", "androidx")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(extract_dir)
+    s3 = os.path.join(smali_classes2_dir, "androidx")
+    move_page=["interpolator","lifecycle","localbroadcastmanager","print","slidingpanelayout","tracing","versionedparcelable","legacy","loader","media","savedstate","swiperefreshlayout","vectordrawable","viewpager"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, move_page)
+
+    s1 = os.path.join(extract_dir, "smali_classes6", "com/netease")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(extract_dir)
+    s3 = os.path.join(smali_classes2_dir, "com/netease")
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, ["ntunisdk","pharos","screen_recorder","sr101","tx","unifix","unisdk","utils","videoedit"])
+
+
 def script_pre(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
     sdk_id = channel_sdk_info['id']
-    if sdk_id == "512":
+    if sdk_id == "512" or sdk_id=="589":
         modify_manifest(extract_dir)
+        game_mode_config = os.path.join(extract_dir, "res/xml-v22/game_mode_config.xml")
+        os.remove(game_mode_config)
+
 
 
 def intoFirstLine(target, repl, cont):

BIN
天下酷派/script.pyc


BIN
天下酷派/天下酷派.zip


+ 34 - 0
奥奇传说酷派/script.py

@@ -0,0 +1,34 @@
+# -*- 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))
+    s1 = os.path.join(decompileDir, "smali_classes6", "com")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(decompileDir)
+
+    s3 = smali_classes2_dir
+    list_package = ["btgame"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes11", "com")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(smali_classes2_dir,"com")
+    list_package = ["btgame"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+if __name__ == "__main__":
+    ""

+ 15 - 0
奥拉星酷派/script.py

@@ -24,6 +24,21 @@ def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameIn
         distutils.dir_util.mkpath(s3)
     gw_apk_tool.move_package(s1, s3, list_package)
 
+    s1 = os.path.join(decompileDir, "smali_classes11", "com")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(smali_classes2_dir,"com")
+    list_package = ["btgame"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes12", "com")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(smali_classes2_dir,"com")
+    list_package = ["baitian"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
 
 
 if __name__ == "__main__":

BIN
奥拉星酷派/script.pyc


BIN
奥拉星酷派/奥拉星酷派.zip


+ 53 - 0
我本千金酷派/script.py

@@ -35,6 +35,59 @@ def script_pre(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInf
             loading_png9 = os.path.join(decompileDir, p)
             remove_source(loading_png9)
 
+def script_second(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
+    logging.info('script_second: ' + str(channel_sdk_info))
+    # 逆向渠道id
+    if channel_sdk_info['id'] == '597':
+        public_xml = os.path.join(extract_dir, "res/values/public.xml")
+        handle_public_xml(public_xml, "attr-private")
+
+        public_xml = os.path.join(extract_dir, "res/layout/design_bottom_sheet_dialog.xml")
+        handle_public_xml(public_xml, "attr-private")
+
+        public_xml = os.path.join(extract_dir, "res/layout/mtrl_layout_snackbar.xml")
+        # handle_public_xml(public_xml, "attr-private")
+        if os.path.exists(public_xml):
+            os.remove(public_xml)
+
+        public_xml = os.path.join(extract_dir, "res/layout-sw600dp/mtrl_layout_snackbar.xml")
+        # handle_public_xml(public_xml, "attr-private")
+        if os.path.exists(public_xml):
+            os.remove(public_xml)
+
+        public_xml = os.path.join(extract_dir, "res/values/public.xml")
+        handle_public_xml(public_xml, "mtrl_layout_snackbar")
+
+        public_xml = os.path.join(extract_dir, "res/layout/mtrl_layout_snackbar_include.xml")
+        handle_public_xml(public_xml, "attr-private")
+
+        public_xml = os.path.join(extract_dir, "res/drawable-v21/abc_dialog_material_background.xml")
+        handle_public_xml(public_xml, "attr-private")
+
+        public_xml = os.path.join(extract_dir, "res/values/styles.xml")
+        handle_public_xml(public_xml, "attr-private")
+
+        public_xml = os.path.join(extract_dir, "res/values-v21/styles.xml")
+        handle_public_xml(public_xml, "attr-private")
+    return
+
+
+def handle_public_xml(public_xml_path, remove_node):
+    if not os.path.exists(public_xml_path):
+        logging.info('public_xml is null: ' + public_xml_path)
+        return
+    new_lines = []
+    with open(public_xml_path, 'r+') as f:
+        for line in f.readlines():
+            # l = line.strip()
+            if line.find(remove_node) > -1:
+                continue
+            new_lines.append(line)
+        f.seek(0)
+        f.truncate()
+        f.writelines(new_lines)
+    return
+
 
 def remove_source(path_source):
     logging.info(path_source)

+ 654 - 0
新仙剑奇侠传之挥剑问情酷派/script.py

@@ -0,0 +1,654 @@
+# coding:utf8
+
+__author__ = 'dong'
+
+import os
+import logging
+import xml.dom.minidom
+import re
+import shutil
+import glob
+import distutils.dir_util
+import os
+import gw_apk_tool
+import gw_data_center
+
+
+def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    # if channelSdkInfo['id'] == '597':
+    #     gw_data_center.pack_small = True
+    return
+
+
+def script_second(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    return
+
+
+def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    # logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
+    # if channelSdkInfo['id'] == '597':
+    #     logging.info("remove_navigate")
+    #     remove_navigate(decompileDir)
+    return
+
+
+def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
+    if channelSdkInfo['id'] == '597':
+       return
+    else:
+        move_224_bytedance(decompileDir)
+
+
+def move(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes10/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["facebook"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes11/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["facebook", "feiyu", "google", "hermes"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes11/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["sedna", "service", "sina"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes11/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["heytap", "huawei", "hw", "ixigua", "just", "loc", "luck"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes11/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["squareup", "ss", "swmansion"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes12/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "androidx")
+    list_package = ["activity", "annotation", "appcompat", "arch", "asynclayoutinflater", "cardview", "collection",
+                    "concurrent", "constraintlayout", "coordinatorlayout"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes12/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "androidx")
+    list_package = ["print", "room", "sqlite", "tracing", "versionedparcelable", "viewpager2", "recyclerview",
+                    "savedstate", "startup", "transition", "viewbinding", "window", "resourceinspection",
+                    "slidingpanelayout", "swiperefreshlayout", "vectordrawable", "viewpager"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes12/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "androidx")
+    list_package = ["core", "customview", "drawerlayout", "emoji2", "fragment", "legacy", "loader", "media",
+                    "navigation", "cursoradapter", "documentfile", "dynamicanimation", "exifinterface", "interpolator",
+                    "lifecycle", "localbroadcastmanager", "multidex"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes2", "com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["swmansion", "sxd3", "taptap", "tds", "tencent", "ttnet", "unicom", "unity3d", "uodis", "vivo",
+                    "volcengine", "vv", "weibo", "xiaomi", "xm", "yqritc"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def remove_navigate(decompileDir):
+    tmp_res = os.path.join(decompileDir, "res", "navigation")
+    tmp_public_xml = os.path.join(decompileDir, "res", "values", "public.xml")
+    if os.path.exists(tmp_res):
+        distutils.dir_util.remove_tree(tmp_res)
+    if os.path.exists(tmp_public_xml):
+        os.remove(tmp_public_xml)
+
+
+def move_10_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["ttgame"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["ttnet"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["ug"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["unbridge"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["usergrowth"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["watson"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes19/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["ixigua", "just", "loc", "luck"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_11_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["rocketapi", "wrapper_account", "wrapper_alog", "wrapper_appcloud", "wrapper_applog"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["wrapper_download", "wrapper_encrypt", "wrapper_jsbridge", "wrapper_librarian", "wrapper_net"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["wrapper_pangolinsdk", "wrapper_push", "wrapper_sdk_monitor", "wrapper_service_manager",
+                    "wrapper_setting_manager"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["wrapper_share", "wrapper_smartrouter", "wrapper_utility"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_4_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes4/com/bytedance")
+    list_b = ["android", "apm6", "article", "bdinstall", "boost_multidex", "cloudplay", "crash", "ttgame",
+              "apkidentity", "apmsdk", "bdauditsdk", "bdlocation", "boringssl", "common", "crashthanos", "apm",
+              "applog", "bdauditsdkbase", "bdturing", "channelmigrator", "constants2", "frameworks"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_5_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes5/com/bytedance")
+    list_b = ["frameworks", "gamerecord", "lynx", "perf", "reader_apk", "shadowhook", "thanos", "framwork", "geckox",
+              "mira", "permissions", "remote", "share_channel_douyin", "tpssdk", "frankie", "grecorder", "monitor",
+              "pipeline", "retrofit2", "share_channel_weibo", "tracing", "frankie_sohotfix_util", "gumiho", "mpaas",
+              "platform", "robust", "share_image_token", "ttgame", "frankie_sohotfix_util_emulator", "hidden_watermark",
+              "msgsdk", "praisedialoglib", "router", "share_qq", "fresco", "ies", "news", "push", "sdk", "share_ui",
+              "game", "keva", "notification", "react", "security", "share_wechat", "gameprotect", "librarian", "pangle",
+              "reactnative", "services", "sync"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_6_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes6/com/bytedance/ttgame")
+    list_b = ["account", "base", "core", "framework", "glog", "gsdk_base_common_ui", "gsdk_base_utils", "library",
+              "module", "audio", "channel", "engine", "gecko", "gsdk", "gsdk_base_sdk_config", "gsdksync", "main"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_60_ss(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes60/com/ss/android")
+    list_b = ["account", "applog", "bytedcert", "deviceregister", "downloadad", "downloadlib", "newmedia",
+              "push_3rd_module", "pushmanager", "token", "ug", "agilelogger", "article", "common", "download",
+              "downloadapi", "message", "push", "push_common_lib", "socialbase", "ttmd5", "ugc"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/ss/android")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_64_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes64/com/bytedance/ttgame")
+    list_b = ["rocket", "rocketapi", "sdk", "tps", "unity"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_7_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes7/com/bytedance/ttgame/module")
+    list_b = ["compliance", "crash", "deeplink", "download", "fileupload", "gameinfo", "gameprotect", "compress",
+              "database", "demo", "dynamic", "friendchain", "gamelivesdk"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_8_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes8/com/bytedance/ttgame/module")
+    list_b = ["location", "log", "mediaupload", "netdiagnose", "pay", "push", "rn", "rnengine", "screenrecord",
+              "loccom", "main", "monitor", "notice", "privacy", "rating", "rncore"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_9_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes9/com/bytedance/ttgame/module")
+    list_b = ["screenrecord", "share", "thanos", "unitelive"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_37_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes37/com/bytedance/apm6")
+    list_b = ["foundation", "hub", "memory", "monitor", "perf", "service", "util"]
+    # for a in list_b:
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/apm6")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_49_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes49/com/bytedance/common")
+    list_b = ["perf_block", "process", "profilesdk", "push", "support", "util", "utility", "wschannel"]
+    # for a in list_b:
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/common")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_103_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes103/com/bytedance/sdk")
+    list_b = ["bridge", "account", "open", "openadsdk"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_125_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes125/com/bytedance/ttgame/module")
+    list_b = ["abtest", "account", "apimonitor", "asr", "boost", "bridge", "cdkey", "cloud", "cloudgame", "common",
+              "compliance", "gpm", "location"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_158_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes158/com/bytedance/ttgame/sdk/module")
+    list_b = ["entity", "location", "pojo", "skin", "ui", "utils"]
+    # for a in list_b:
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/sdk/module")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes158/com/bytedance/ttgame/sdk/module")
+    list_b = ["account", "bridge"]
+    # for a in list_b:
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/sdk/module")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes161/com/bytedance/ttgame/module/compliance")
+    list_b = ["bridge"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module/compliance")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes190/com/bytedance/ttgame/module/screenrecord")
+    list_b = ["bridge", "download", "impl", "interceptor", "lib", "log", "net"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module/screenrecord")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes191/com/bytedance/ttgame/module/share")
+    list_b = ["bridge", "api", "impl"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module/share")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes197/com/bytedance/sdk/account")
+    list_b = ["api", "bpea", "constants", "extra"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes197/com/bytedance/sdk/account")
+    list_b = ["impl", "information", "mobile", "network"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes197/com/bytedance/sdk/account")
+    list_b = ["save", "sso", "user", "bdopen", "common"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes197/com/bytedance/sdk/account")
+    list_b = ["execute", "helper", "induce", "job", "monitor"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes197/com/bytedance/sdk/account")
+    list_b = ["response", "special", "third", "utils"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes197/com/bytedance/sdk/account")
+    list_b = ["param", "platform_china"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes197/com/bytedance/sdk/account")
+    list_b = ["platform", "open"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes210/com/bytedance/ttgame/module/compliance")
+    list_b = ["bridge"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module/compliance")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes214/com/bytedance/ttgame/sdk/module/account")
+    list_b = ["api", "login"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/sdk/module/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes214/com/bytedance/ttgame/sdk/module/account")
+    list_b = ["pojo"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/sdk/module/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes214/com/bytedance/ttgame/sdk/module/account")
+    list_b = ["platform"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/sdk/module/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes216/com/bytedance/ttgame/module/screenrecord")
+    list_b = ["bridge"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module/screenrecord")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes217/com/bytedance/ttgame/module/share")
+    list_b = ["bridge"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module/share")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes217/com/bytedance/ttgame/module/share")
+    list_b = ["api"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module/share")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes228/com/bytedance/ttgame/sdk/module/account/platform")
+    list_b = ["api", "douyin", "huoshan", "onekey"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/sdk/module/account/platform")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+def move_224_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes2")
+    list_b = ["androidx"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new)
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+
+def move_2(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes23/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["ixigua", "just", "loc", "luck"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes24/com/ss")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/ss")
+    list_package = ["bduploader", "cgpa", "mediakit"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes24/com/ss")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/ss")
+    list_package = ["android"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes26/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/androidx")
+    list_package = ["tracing", "transition", "vectordrawable", "versionedparcelable", "viewbinding", "viewpager",
+                    "viewpager2", "window"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes27/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/androidx")
+    list_package = ["interpolator", "legacy", "lifecycle", "loader"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes27/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/androidx")
+    list_package = ["localbroadcastmanager", "media", "multidex", "navigation"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes29/com/bytedance/ttgame")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame")
+    list_package = ["rocket", "rocketapi", "sdk", "tps", "unity"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+def handle_public_xml(public_xml_path, remove_node):
+    if not os.path.exists(public_xml_path):
+        logging.info('public_xml is null: ' + public_xml_path)
+        return
+    new_lines = []
+    with open(public_xml_path, 'r+') as f:
+        for line in f.readlines():
+            # l = line.strip()
+            if line.find(remove_node) > -1:
+                continue
+            new_lines.append(line)
+        f.seek(0)
+        f.truncate()
+        f.writelines(new_lines)
+    return
+
+if __name__ == '__main__':
+    # del_qihoo("C:\\Users\\Administrator\\Desktop\\zt")
+    remove_navigate("G:\\autopack2.0_kuaifa\\tool\\workspace\\lrs360\\13651\\extract")

+ 12 - 0
极无双酷派/script.py

@@ -9,6 +9,7 @@ import re
 import shutil
 import glob
 import distutils.dir_util
+import gw_apk_tool
 
 
 def script_second(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
@@ -60,6 +61,17 @@ def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
             distutils.dir_util.mkpath(s3)
         move_package(s1, s3, list_package)
 
+        move_597(decompileDir)
+
+def move_597(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes2/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["qiniu","reyun","squareup","tencent","tools","unity","uwa","youme","RenderHeads","sina","taiyouxi","tendcloud","twobigears","unity3d","yingxiong"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
 
 def replace_life_method(extract_dir):
     goal_file = glob.glob(os.path.join(extract_dir, 'smali*/com/taiyouxi/a3k/MainActivity.smali'))[0]

+ 70 - 0
洪荒西行录酷派/script.py

@@ -0,0 +1,70 @@
+# coding:utf8
+
+
+import os
+import logging
+import xml.dom.minidom
+import re
+import shutil
+import glob
+import distutils.dir_util
+import os
+import gw_apk_tool
+
+
+def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
+    # if channelSdkInfo['id'] == '597':
+    #     logging.info("remove_navigate")
+    #     remove_navigate(decompileDir)
+    # if channelSdkInfo['id'] == '549':
+        # del_qihoo(decompileDir)
+        # gw_apk_tool.yml_remove_uncompress(decompileDir)
+
+def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+       s1 = os.path.join(decompileDir, "smali_classes2","com")
+       if os.path.exists(s1):
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"com")
+            list_package = ["qtt","samsung","sqdl","st"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"com")
+            list_package = ["umeng","unionpay","unity3d","ut","vivo","xiaomi","yulong","zui"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"com")
+            list_package = ["ta","tencent","tjqy","twobigears","uc"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+       s1 = os.path.join(decompileDir, "smali_classes3","com")
+       if os.path.exists(s1):
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"com")
+            list_package = ["dcproxy","dcsdk","efs","getkeepsafe","google","heitu","heytap","huawei"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+
+
+def remove_navigate(decompileDir):
+    tmp_res = os.path.join(decompileDir, "res", "navigation")
+    tmp_public_xml = os.path.join(decompileDir, "res", "values", "public.xml")
+    if os.path.exists(tmp_res):
+        distutils.dir_util.remove_tree(tmp_res)
+    if os.path.exists(tmp_public_xml):
+        os.remove(tmp_public_xml)
+
+
+if __name__ == '__main__':
+    # del_qihoo("C:\\Users\\Administrator\\Desktop\\zt")
+    remove_navigate("G:\\autopack2.0_kuaifa\\tool\\workspace\\lrs360\\13651\\extract")

+ 41 - 0
漂在江湖酷派/script.py

@@ -0,0 +1,41 @@
+# -*- 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))
+    s1 = os.path.join(decompileDir, "smali","androidx")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(smali_classes2_dir,"androidx")
+    list_package = ["interpolator","lifecycle","loader","savedstate","vectordrawable","versionedparcelable","viewpager"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali","androidx")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(smali_classes2_dir,"androidx")
+    list_package = ["collection","core","cursoradapter","customview","drawerlayout","fragment"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes2", "com")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(smali_classes2_dir,"com")
+    list_package = ["mergeSdk","sdk","util"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+if __name__ == "__main__":
+    ""

+ 45 - 0
烈焰皇朝酷派/script.py

@@ -0,0 +1,45 @@
+# coding:utf8
+
+
+import os
+import logging
+import xml.dom.minidom
+import re
+import shutil
+import glob
+import distutils.dir_util
+import os
+import gw_apk_tool
+
+
+def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
+    # if channelSdkInfo['id'] == '597':
+    #     logging.info("remove_navigate")
+    #     remove_navigate(decompileDir)
+    # if channelSdkInfo['id'] == '549':
+        # del_qihoo(decompileDir)
+        # gw_apk_tool.yml_remove_uncompress(decompileDir)
+
+def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+       s1 = os.path.join(decompileDir, "smali_classes3","androidx")
+       if os.path.exists(s1):
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"androidx")
+            list_package = ["interpolator","lifecycle","localbroadcastmanager","print","savedstate","slidingpanelayout","vectordrawable","viewpager","legacy","loader","media","recyclerview","security","swiperefreshlayout","versionedparcelable"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+def remove_navigate(decompileDir):
+    tmp_res = os.path.join(decompileDir, "res", "navigation")
+    tmp_public_xml = os.path.join(decompileDir, "res", "values", "public.xml")
+    if os.path.exists(tmp_res):
+        distutils.dir_util.remove_tree(tmp_res)
+    if os.path.exists(tmp_public_xml):
+        os.remove(tmp_public_xml)
+
+
+if __name__ == '__main__':
+    # del_qihoo("C:\\Users\\Administrator\\Desktop\\zt")
+    remove_navigate("G:\\autopack2.0_kuaifa\\tool\\workspace\\lrs360\\13651\\extract")

+ 30 - 0
热血习武酷派/script.py

@@ -0,0 +1,30 @@
+# -*- 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))
+
+    # smali_classes6
+    s1 = os.path.join(decompileDir, "smali_classes3", "androidx")
+    smali_classes2_dir = gw_apk_tool.create_mutil_smali(decompileDir)
+
+    s3 = smali_classes2_dir
+    list_package = ["fragment","legacy","loader","media","recyclerview","slidingpanelayout","vectordrawable","viewpager","interpolator","lifecycle","localbroadcastmanager","print","savedstate","swiperefreshlayout","versionedparcelable"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+
+if __name__ == "__main__":
+    ""

+ 19 - 1
王牌战争酷派/script.py

@@ -10,7 +10,8 @@ import shutil
 import glob
 
 import distutils.dir_util
-
+import gw_apk_tool
+import gw_data_center
 
 def replace_life_method(extract_dir):
     goal_files = glob.glob(os.path.join(extract_dir, 'smali*/com/yingxiong/hero/UnityPlayerActivity.smali'))
@@ -67,6 +68,23 @@ def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameIn
                 distutils.dir_util.mkpath(s3)
             move_package(s1, s3, list_package)
 
+    if channelSdkInfo['id'] == '597':
+        move(decompileDir)
+    else:
+        ""
+
+
+def move(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes2/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["alibaba","aliyun","baidu","bdchero","bloc","crisisfire","example","gme","google","hero","hu","netease","qiniu","sina","squareup"]
+
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
 def create_mutil_smali(decompileDir):
     f_idx = 2
     while True:

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

@@ -0,0 +1,689 @@
+# coding:utf8
+
+__author__ = 'dong'
+
+import os
+import logging
+import xml.dom.minidom
+import re
+import shutil
+import glob
+import distutils.dir_util
+import os
+import gw_apk_tool
+import gw_data_center
+
+
+def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    # if channelSdkInfo['id'] == '597':
+    #     gw_data_center.pack_small = True
+    return
+
+
+def script_second(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    xml=os.path.join(decompileDir,"res/values/drawables.xml")
+    handle_public_xml(xml,"APKTOOL")
+
+    xml=os.path.join(decompileDir,"res/values/public.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':
+        logging.info("remove_navigate")
+        remove_navigate(decompileDir)
+
+
+def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
+    if channelSdkInfo['id'] == '597':
+        move_11_bytedance(decompileDir)
+        move(decompileDir)
+        move_10_bytedance(decompileDir)
+        move_4_bytedance(decompileDir)
+        move_2(decompileDir)
+        move_5_bytedance(decompileDir)
+        move_6_bytedance(decompileDir)
+        move_60_ss(decompileDir)
+        move_64_bytedance(decompileDir)
+        move_7_bytedance(decompileDir)
+        move_8_bytedance(decompileDir)
+        move_9_bytedance(decompileDir)
+        move_37_bytedance(decompileDir)
+        move_49_bytedance(decompileDir)
+        move_103_bytedance(decompileDir)
+        move_125_bytedance(decompileDir)
+        move_158_bytedance(decompileDir)
+    else:
+        move_224_bytedance(decompileDir)
+
+
+def move(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes10/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["facebook"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes11/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["facebook", "feiyu", "google", "hermes"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes11/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["sedna", "service", "sina"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes11/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["heytap", "huawei", "hw", "ixigua", "just", "loc", "luck"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes11/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["squareup", "ss", "swmansion"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes12/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "androidx")
+    list_package = ["activity", "annotation", "appcompat", "arch", "asynclayoutinflater", "cardview", "collection",
+                    "concurrent", "constraintlayout", "coordinatorlayout"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes12/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "androidx")
+    list_package = ["print", "room", "sqlite", "tracing", "versionedparcelable", "viewpager2", "recyclerview",
+                    "savedstate", "startup", "transition", "viewbinding", "window", "resourceinspection",
+                    "slidingpanelayout", "swiperefreshlayout", "vectordrawable", "viewpager"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes12/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "androidx")
+    list_package = ["core", "customview", "drawerlayout", "emoji2", "fragment", "legacy", "loader", "media",
+                    "navigation", "cursoradapter", "documentfile", "dynamicanimation", "exifinterface", "interpolator",
+                    "lifecycle", "localbroadcastmanager", "multidex"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes2", "com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["swmansion", "sxd3", "taptap", "tds", "tencent", "ttnet", "unicom", "unity3d", "uodis", "vivo",
+                    "volcengine", "vv", "weibo", "xiaomi", "xm", "yqritc"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def remove_navigate(decompileDir):
+    tmp_res = os.path.join(decompileDir, "res", "navigation")
+    tmp_public_xml = os.path.join(decompileDir, "res", "values", "public.xml")
+    if os.path.exists(tmp_res):
+        distutils.dir_util.remove_tree(tmp_res)
+    if os.path.exists(tmp_public_xml):
+        os.remove(tmp_public_xml)
+
+
+def move_10_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["ttgame"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["ttnet"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["ug"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["unbridge"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["usergrowth"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["watson"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes19/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["ixigua", "just", "loc", "luck"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_11_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["rocketapi", "wrapper_account", "wrapper_alog", "wrapper_appcloud", "wrapper_applog"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["wrapper_download", "wrapper_encrypt", "wrapper_jsbridge", "wrapper_librarian", "wrapper_net"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["wrapper_pangolinsdk", "wrapper_push", "wrapper_sdk_monitor", "wrapper_service_manager",
+                    "wrapper_setting_manager"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["wrapper_share", "wrapper_smartrouter", "wrapper_utility"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_4_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes4/com/bytedance")
+    list_b = ["android", "apm6", "article", "bdinstall", "boost_multidex", "cloudplay", "crash", "ttgame",
+              "apkidentity", "apmsdk", "bdauditsdk", "bdlocation", "boringssl", "common", "crashthanos", "apm",
+              "applog", "bdauditsdkbase", "bdturing", "channelmigrator", "constants2", "frameworks"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_5_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes5/com/bytedance")
+    list_b = ["frameworks", "gamerecord", "lynx", "perf", "reader_apk", "shadowhook", "thanos", "framwork", "geckox",
+              "mira", "permissions", "remote", "share_channel_douyin", "tpssdk", "frankie", "grecorder", "monitor",
+              "pipeline", "retrofit2", "share_channel_weibo", "tracing", "frankie_sohotfix_util", "gumiho", "mpaas",
+              "platform", "robust", "share_image_token", "ttgame", "frankie_sohotfix_util_emulator", "hidden_watermark",
+              "msgsdk", "praisedialoglib", "router", "share_qq", "fresco", "ies", "news", "push", "sdk", "share_ui",
+              "game", "keva", "notification", "react", "security", "share_wechat", "gameprotect", "librarian", "pangle",
+              "reactnative", "services", "sync"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_6_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes6/com/bytedance/ttgame")
+    list_b = ["account", "base", "core", "framework", "glog", "gsdk_base_common_ui", "gsdk_base_utils", "library",
+              "module", "audio", "channel", "engine", "gecko", "gsdk", "gsdk_base_sdk_config", "gsdksync", "main"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_60_ss(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes60/com/ss/android")
+    list_b = ["account", "applog", "bytedcert", "deviceregister", "downloadad", "downloadlib", "newmedia",
+              "push_3rd_module", "pushmanager", "token", "ug", "agilelogger", "article", "common", "download",
+              "downloadapi", "message", "push", "push_common_lib", "socialbase", "ttmd5", "ugc"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/ss/android")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_64_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes64/com/bytedance/ttgame")
+    list_b = ["rocket", "rocketapi", "sdk", "tps", "unity"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_7_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes7/com/bytedance/ttgame/module")
+    list_b = ["compliance", "crash", "deeplink", "download", "fileupload", "gameinfo", "gameprotect", "compress",
+              "database", "demo", "dynamic", "friendchain", "gamelivesdk"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_8_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes8/com/bytedance/ttgame/module")
+    list_b = ["location", "log", "mediaupload", "netdiagnose", "pay", "push", "rn", "rnengine", "screenrecord",
+              "loccom", "main", "monitor", "notice", "privacy", "rating", "rncore"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_9_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes9/com/bytedance/ttgame/module")
+    list_b = ["screenrecord", "share", "thanos", "unitelive"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_37_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes37/com/bytedance/apm6")
+    list_b = ["foundation", "hub", "memory", "monitor", "perf", "service", "util"]
+    # for a in list_b:
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/apm6")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_49_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes49/com/bytedance/common")
+    list_b = ["perf_block", "process", "profilesdk", "push", "support", "util", "utility", "wschannel"]
+    # for a in list_b:
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/common")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_103_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes103/com/bytedance/sdk")
+    list_b = ["bridge", "account", "open", "openadsdk"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_125_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes125/com/bytedance/ttgame/module")
+    list_b = ["abtest", "account", "apimonitor", "asr", "boost", "bridge", "cdkey", "cloud", "cloudgame", "common",
+              "compliance", "gpm", "location"]
+    for a in list_b:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def move_158_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes158/com/bytedance/ttgame/sdk/module")
+    list_b = ["entity", "location", "pojo", "skin", "ui", "utils"]
+    # for a in list_b:
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/sdk/module")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes158/com/bytedance/ttgame/sdk/module")
+    list_b = ["account", "bridge"]
+    # for a in list_b:
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/sdk/module")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes161/com/bytedance/ttgame/module/compliance")
+    list_b = ["bridge"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module/compliance")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes190/com/bytedance/ttgame/module/screenrecord")
+    list_b = ["bridge", "download", "impl", "interceptor", "lib", "log", "net"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module/screenrecord")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes191/com/bytedance/ttgame/module/share")
+    list_b = ["bridge", "api", "impl"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module/share")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes197/com/bytedance/sdk/account")
+    list_b = ["api", "bpea", "constants", "extra"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes197/com/bytedance/sdk/account")
+    list_b = ["impl", "information", "mobile", "network"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes197/com/bytedance/sdk/account")
+    list_b = ["save", "sso", "user", "bdopen", "common"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes197/com/bytedance/sdk/account")
+    list_b = ["execute", "helper", "induce", "job", "monitor"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes197/com/bytedance/sdk/account")
+    list_b = ["response", "special", "third", "utils"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes197/com/bytedance/sdk/account")
+    list_b = ["param", "platform_china"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes197/com/bytedance/sdk/account")
+    list_b = ["platform", "open"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes210/com/bytedance/ttgame/module/compliance")
+    list_b = ["bridge"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module/compliance")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes214/com/bytedance/ttgame/sdk/module/account")
+    list_b = ["api", "login"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/sdk/module/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes214/com/bytedance/ttgame/sdk/module/account")
+    list_b = ["pojo"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/sdk/module/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes214/com/bytedance/ttgame/sdk/module/account")
+    list_b = ["platform"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/sdk/module/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes216/com/bytedance/ttgame/module/screenrecord")
+    list_b = ["bridge"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module/screenrecord")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes217/com/bytedance/ttgame/module/share")
+    list_b = ["bridge"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module/share")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes217/com/bytedance/ttgame/module/share")
+    list_b = ["api"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/module/share")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes228/com/bytedance/ttgame/sdk/module/account/platform")
+    list_b = ["api", "douyin", "huoshan", "onekey"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/sdk/module/account/platform")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+def move_224_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes224/com/bytedance/sdk/account")
+    list_b = ["open"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/sdk/account")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes25/androidx")
+    list_b = ["cardview","collection","concurrent","constraintlayout","coordinatorlayout"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "androidx")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes28/com")
+    list_b = ["unity3d","uodis","vivo","volcengine","vv","weibo","xiaomi","xiaomi","xm","yqritc"]
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = list_b
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+def move_2(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes23/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["ixigua", "just", "loc", "luck"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes24/com/ss")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/ss")
+    list_package = ["bduploader", "cgpa", "mediakit"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes24/com/ss")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/ss")
+    list_package = ["android"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes26/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/androidx")
+    list_package = ["tracing", "transition", "vectordrawable", "versionedparcelable", "viewbinding", "viewpager",
+                    "viewpager2", "window"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes27/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/androidx")
+    list_package = ["interpolator", "legacy", "lifecycle", "loader"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes27/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/androidx")
+    list_package = ["localbroadcastmanager", "media", "multidex", "navigation"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes29/com/bytedance/ttgame")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame")
+    list_package = ["rocket", "rocketapi", "sdk", "tps", "unity"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+def handle_public_xml(public_xml_path, remove_node):
+    if not os.path.exists(public_xml_path):
+        logging.info('public_xml is null: ' + public_xml_path)
+        return
+    new_lines = []
+    with open(public_xml_path, 'r+') as f:
+        for line in f.readlines():
+            # l = line.strip()
+            if line.find(remove_node) > -1:
+                continue
+            new_lines.append(line)
+        f.seek(0)
+        f.truncate()
+        f.writelines(new_lines)
+    return
+
+if __name__ == '__main__':
+    # del_qihoo("C:\\Users\\Administrator\\Desktop\\zt")
+    remove_navigate("G:\\autopack2.0_kuaifa\\tool\\workspace\\lrs360\\13651\\extract")

+ 125 - 0
童话镇大冒险酷派/script.py

@@ -0,0 +1,125 @@
+# coding:utf8
+
+__author__ = 'dong'
+
+import os
+import logging
+import xml.dom.minidom
+import re
+import shutil
+import glob
+from xml.etree.ElementTree import ElementTree, Element
+import distutils.dir_util
+from xml.etree import ElementTree as ET
+import gw_file_system
+import gw_apk_tool
+
+ANDROID_NS = 'http://schemas.android.com/apk/res/android'
+
+
+def script_second(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
+    logging.info('script_second: ' + str(channel_sdk_info))
+    # 逆向渠道id
+
+    if  channel_sdk_info['id'] == '597':
+        public_xml = os.path.join(extract_dir, "res/values/public.xml")
+        handle_public_xml(public_xml, "attr-private")
+        handle_public_xml(public_xml, "mtrl_layout_snackbar")
+
+        public_xml = os.path.join(extract_dir, "res/values/styles.xml")
+        handle_public_xml(public_xml, "attr-private")
+
+        public_xml = os.path.join(extract_dir, "res/values-v21/styles.xml")
+        handle_public_xml(public_xml, "attr-private")
+
+        public_xml = os.path.join(extract_dir, "res/layout/design_bottom_sheet_dialog.xml")
+        handle_public_xml(public_xml, "bottomSheetStyle")
+
+        public_xml = os.path.join(extract_dir, "res/layout/mtrl_layout_snackbar.xml")
+        os.remove(public_xml)
+        # handle_public_xml(public_xml, "snackbarStyle")
+
+        public_xml = os.path.join(extract_dir, "res/layout-sw600dp/mtrl_layout_snackbar.xml")
+        os.remove(public_xml)
+        # handle_public_xml(public_xml, "snackbarStyle")
+
+        public_xml = os.path.join(extract_dir, "res/layout/mtrl_layout_snackbar_include.xml")
+        handle_public_xml(public_xml, "textAppearanceBody2")
+
+
+        public_xml = os.path.join(extract_dir, "res/layout/mtrl_layout_snackbar_include.xml")
+        handle_public_xml(public_xml, "snackbarButtonStyle")
+
+    # handle_public_xml(public_xml, "sobot_fileEndingImage")
+    # handle_public_xml(public_xml, "sobot_fileEndingPPT")
+    # handle_public_xml(public_xml, "sobot_fileEndingPackage")
+    # handle_public_xml(public_xml, "sobot_fileEndingPdf")
+    # handle_public_xml(public_xml, "sobot_fileEndingText")
+    # handle_public_xml(public_xml, "sobot_fileEndingVideo")
+    # handle_public_xml(public_xml, "sobot_fileEndingWord")
+
+    return
+def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    logging.info("-----debug-----")
+
+
+def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    if channelSdkInfo['id'] == '597':
+        move(decompileDir)
+    else:
+        return
+
+def move(decompileDir):
+    s1 = os.path.join(decompileDir, "smali/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "androidx")
+    list_package = ["activity","arch","constraintlayout","cursoradapter","drawerlayout","legacy"]
+
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "androidx")
+    list_package = ["localbroadcastmanager","annotation","asynclayoutinflater","coordinatorlayout"]
+
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "androidx")
+    list_package = ["customview","fragment","lifecycle","appcompat","collection","core","documentfile","interpolator","loader"]
+
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+
+
+def handle_public_xml(public_xml_path, remove_node):
+    if not os.path.exists(public_xml_path):
+        logging.info('public_xml is null: ' + public_xml_path)
+        return
+    new_lines = []
+    with open(public_xml_path, 'r+') as f:
+        for line in f.readlines():
+            # l = line.strip()
+            if line.find(remove_node) > -1:
+                continue
+            new_lines.append(line)
+        f.seek(0)
+        f.truncate()
+        f.writelines(new_lines)
+    return
+
+
+
+
+
+if __name__ == '__main__':
+    # replace_super_application("D:\work\wzdq")
+    modify_manifest("E:\\apk\\youhua\\youhua.zip.out", "requestLegacyExternalStorage")

+ 187 - 0
繁花似锦酷派/script.py

@@ -0,0 +1,187 @@
+# coding:utf8
+
+__author__ = 'dong'
+
+import os
+import logging
+import xml.dom.minidom
+import re
+import shutil
+import glob
+from xml.etree.ElementTree import ElementTree, Element
+import distutils.dir_util
+import gw_file_system
+import gw_data_center
+import gw_apk_tool
+
+
+def script_init(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    return
+
+
+def script_first(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    return
+
+
+def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+
+    return
+
+
+def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    sdk_id = channelSdkInfo['id']
+    if sdk_id == "597":
+        move(decompileDir)
+    else:
+        move_smallsheep(decompileDir)
+    return
+
+def move_smallsheep(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes43/com/huawei/hms/base")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/huawei/hms/base")
+    list_package = ["availableupdate"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes52/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["baidu"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes56/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["uyfgyu"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes18/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["common","gzpublic","hnxz","huawei"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+def move(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes43/com/huawei/hms")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/huawei/hms")
+    list_package = ["baselegacyapi","framework","hatool","log","pay"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes43/com/huawei/hms")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/huawei/hms")
+    list_package = ["analytics"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes43/com/huawei/hms")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/huawei/hms")
+    list_package = ["apptouch"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes53/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["tools"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes53/com/bytedance/ttgame/tob")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/tob")
+    list_package = ["common"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes53/com/bytedance/ttgame/tob")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/tob")
+    list_package = ["optional"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes53/com/bytedance/ttgame/tob")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance/ttgame/tob")
+    list_package = ["packer"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes54/com/huawei")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/huawei")
+    list_package = ["ads"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes54/com/huawei")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/huawei")
+    list_package = ["ads","agconnect"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes54/com/huawei")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/huawei")
+    list_package = ["android"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes54/com/huawei")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/huawei")
+    list_package = ["appgallery","hms"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes54/com")
+    for a in ["hnxz","gzxs","gzpublic","fhsj","didi"]:
+        smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+        s3 = os.path.join(decompileDir, smali_classes_new, "com")
+        list_package = [a]
+        if not os.path.exists(s3):
+            distutils.dir_util.mkpath(s3)
+        gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes55/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["startobj"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes56/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["yulong"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+if __name__ == '__main__':
+    ""

+ 90 - 0
自创武林酷派/script.py

@@ -0,0 +1,90 @@
+# coding:utf8
+
+__author__ = 'dong'
+
+import os
+import logging
+import xml.dom.minidom
+import re
+import shutil
+import glob
+import distutils.dir_util
+import os
+import gw_apk_tool
+import gw_data_center
+
+
+def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    # if channelSdkInfo['id'] == '597':
+    #     gw_data_center.pack_small = True
+    return
+
+
+def script_second(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    return
+
+
+def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
+    # logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
+    # if channelSdkInfo['id'] == '597':
+    #     logging.info("remove_navigate")
+    #     remove_navigate(decompileDir)
+    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/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "androidx")
+    list_package = ["activity","arch","coordinatorlayout","customview","fragment","lifecycle","annotation","asynclayoutinflater","core","documentfile","interpolator","loader","appcompat","collection","cursoradapter","drawerlayout","legacy","localbroadcastmanager"]
+
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def remove_navigate(decompileDir):
+    tmp_res = os.path.join(decompileDir, "res", "navigation")
+    tmp_public_xml = os.path.join(decompileDir, "res", "values", "public.xml")
+    if os.path.exists(tmp_res):
+        distutils.dir_util.remove_tree(tmp_res)
+    if os.path.exists(tmp_public_xml):
+        os.remove(tmp_public_xml)
+
+
+def move_10_bytedance(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes10/com/bytedance")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/bytedance")
+    list_package = ["ttgame"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
+def handle_public_xml(public_xml_path, remove_node):
+    if not os.path.exists(public_xml_path):
+        logging.info('public_xml is null: ' + public_xml_path)
+        return
+    new_lines = []
+    with open(public_xml_path, 'r+') as f:
+        for line in f.readlines():
+            # l = line.strip()
+            if line.find(remove_node) > -1:
+                continue
+            new_lines.append(line)
+        f.seek(0)
+        f.truncate()
+        f.writelines(new_lines)
+    return
+
+if __name__ == '__main__':
+    # del_qihoo("C:\\Users\\Administrator\\Desktop\\zt")
+    remove_navigate("G:\\autopack2.0_kuaifa\\tool\\workspace\\lrs360\\13651\\extract")

+ 41 - 0
萌猫保卫战酷派/script.py

@@ -221,6 +221,47 @@ def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameIn
                 distutils.dir_util.mkpath(s3)
             move_package(s1, s3, list_package)
 
+   s1 = os.path.join(decompileDir, "smali_classes3","com/bytedance") # 从第11个开始都是移动的
+   if os.path.exists(s1):
+            smali_classes_new = create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"com/bytedance")
+            list_package = ["notpluginpro","pangle","sdk","tea"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+            smali_classes_new = create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"com/bytedance")
+            list_package = ["ad","android","mapplog","mapplog_dr","msdk"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+   s1 = os.path.join(decompileDir, "smali_classes3","com") # 从第11个开始都是移动的
+   if os.path.exists(s1):
+            smali_classes_new = create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"com")
+            list_package = ["czhj"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+            smali_classes_new = create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"com")
+            list_package = ["mbridge"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+   s1 = os.path.join(decompileDir, "smali_classes6","androidx") # 从第11个开始都是移动的
+   if os.path.exists(s1):
+            smali_classes_new = create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"androidx")
+            list_package = ["interpolator","lifecycle","localbroadcastmanager","print","slidingpanelayout","vectordrawable","viewpager","legacy","loader","media","recyclerview","swiperefreshlayout","versionedparcelable"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
    return
 
 

+ 191 - 10
蛋仔派对酷派/script.py

@@ -22,18 +22,13 @@ def script_init(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameIn
 def script_first(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
     return
 
+def script_pre(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
+    sdk_id = channel_sdk_info['id']
+    if sdk_id == "597":
+        game_mode_config = os.path.join(extract_dir, "res/xml-v22/game_mode_config.xml")
+        os.remove(game_mode_config)
 
 def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
-    # logging.info('------------SDK:'+SDK)
-    # logging.info('------------decompileDir:'+decompileDir)
-    # logging.info('------------channelSdkInfo:'+str(channelSdkInfo))
-    # logging.info('------------new_game_channel_info:'+str(new_game_channel_info))
-    # logging.info('------------gameInfo:'+str(gameInfo))
-    # logging.info("------rm baidu smali------")
-    # restdir = decompileDir+"/"+"smali_classes2/com/baidu/gamesdk"
-    # if os.path.exists(restdir):
-    # shutil.rmtree(restdir)
-
     return
 
 
@@ -88,6 +83,168 @@ def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameIn
                 distutils.dir_util.mkpath(s3)
             move_package(s1, s3, ["netease"])
 
+        s1 = os.path.join(decompileDir, "smali_classes6/androidx")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir, "androidx")
+            list_package = ["documentfile","drawerlayout","fragment","interpolator","legacy","lifecycle","loader","localbroadcastmanager","multidex"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes7/com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir, "com")
+            list_package = ["lzy","meizu","mp4parser","netease","tencent","xiaomi","yulong"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes8/com/netease/ntunisdk")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir, "com/netease/ntunisdk")
+            list_package = ["modules","ngpush","okhttp","permissionkit","piclib","protocollib","receiver","ui"," zxing","ngdetect","ngshare","okio"," picedit"," protocolapp","qrcode","shortcuts","util"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes6")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir)
+            list_package = ["androidx"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes8")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir)
+            list_package = ["androidx"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes9","com/netease/ntunisdk")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com/netease/ntunisdk")
+            list_package = ["ui","unifix","util","zxing"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes9","com/netease/ntunisdk")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com/netease/ntunisdk")
+            list_package = ["application","ccmoment","clipboard","cpubound","download","external","httpdns","langutil","lbscommon","base","child","coolpad_sdk","cutout","extend","gamemode","imageutil","lbs"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes9","com/netease/ntunisdk")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com/netease/ntunisdk")
+            list_package = ["modules","ngdetect","ngpush","ngshare","okio"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes9","com/netease/ntunisdk")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com/netease/ntunisdk")
+            list_package = ["permissionkit","piclib","protocolapp","qrcode","sdkpersonalinfolist","picedit","placeholdertest","protocollib","receiver","shortcuts"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes9","com/netease")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com/netease")
+            list_package = ["ntunisdk"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes9","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["bytedance"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes3")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir)
+            list_package = ["androidx"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes9","com/netease/ntunisdk")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com/netease/ntunisdk")
+            list_package = ["application","ccmoment","clipboard","cpubound","download","external","httpdns","langutil","lbscommon","base","child","coolpad_sdk","cutout","extend","gamemode","imageutil","lbs"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes6","com/netease/ntunisdk")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com/netease/ntunisdk")
+            list_package = ["modules","ngdetect","ngpush","ngshare","okio"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes6","com/netease/ntunisdk")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com/netease/ntunisdk")
+            list_package = ["permissionkit","piclib","protocolapp","qrcode","sdkpersonalinfolist","picedit","placeholdertest","protocollib","receiver","shortcuts"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes6","com/netease")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com/netease")
+            list_package = ["ntunisdk"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            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 = ["activity","appcompat","asynclayoutinflater","collection","core","customview","drawerlayout","annotation","arch","cardview","coordinatorlayout","cursoradapter","documentfile","interpolator"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            move_package(s1, s3, list_package)
+
+        s1 = os.path.join(decompileDir, "smali_classes8","com")
+        if os.path.exists(s1):
+            smali_classes2_dir = create_mutil_smali(decompileDir)
+            s3 = os.path.join(smali_classes2_dir,"com")
+            list_package = ["googlecode","jakewharton","lzy","meizu","mp4parser","netease","tencent","xiaomi","yulong"]
+            if not os.path.exists(s3):
+                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):
@@ -105,9 +262,33 @@ def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameIn
         #         distutils.dir_util.mkpath(s3)
         #     move_package(s1, s3, ["netease"])
 
+
+    if sdk_id=="597":
+        ""
+    else:
+        move_smallsheep(decompileDir)
+
     return
 
 
+def move_smallsheep(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes13/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com")
+    list_package = ["tencent","xiaomi","yulong"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes13/com/netease")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new, "com/netease")
+    list_package = ["androidcrashhandler","blqx","cloud","gl","inner","mpay","ngpush","ntunisdk","aoe","cc","download","godlikeshare","mc","ngdetect","ntsharesdk","pharos"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+
 def create_mutil_smali(decompileDir):
     f_idx = 2
     while True:

+ 174 - 0
魔域手游2酷派/script.py

@@ -33,6 +33,14 @@ def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameIn
                 distutils.dir_util.mkpath(s3)
             gw_apk_tool.move_package(s1, s3, list_package)
 
+       s1 = os.path.join(decompileDir, "smali_classes4","com")
+       if os.path.exists(s1):
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"com")
+            list_package = ["google","nd"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
 
    if channelSdkInfo['id'] == '597':
        s1 = os.path.join(decompileDir, "smali_classes2","androidx")
@@ -97,6 +105,106 @@ def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameIn
                 distutils.dir_util.mkpath(s3)
             gw_apk_tool.move_package(s1, s3, list_package)
 
+       s1 = os.path.join(decompileDir, "smali","androidx")
+       if os.path.exists(s1):
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"androidx")
+            list_package = ["activity","collection","documentfile","legacy","print","startup","viewpager2"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"androidx")
+            list_package = ["annotation","concurrent","drawerlayout","lifecycle","recyclerview","swiperefreshlayout","webkit"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"androidx")
+            list_package = ["appcompat","constraintlayout","dynamicanimation","loader","resourceinspection","tracing","work"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"androidx")
+            list_package = ["appcompat","constraintlayout","dynamicanimation","loader","resourceinspection","tracing","work"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"androidx")
+            list_package = ["arch","coordinatorlayout","emoji2","localbroadcastmanager","room","transition"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"androidx")
+            list_package = ["asynclayoutinflater","core","fragment","media","savedstate","vectordrawable"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"androidx")
+            list_package = ["browser","cursoradapter","inspection","multidex","slidingpanelayout","versionedparcelable"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"androidx")
+            list_package = ["cardview","customview","interpolator","navigation","sqlite","viewpager"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+       s1 = os.path.join(decompileDir, "smali_classes2","com")
+       if os.path.exists(s1):
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"com")
+            list_package = ["lh"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+       s1 = os.path.join(decompileDir, "smali_classes2","com")
+       if os.path.exists(s1):
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"com")
+            list_package = ["lh"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+       s1 = os.path.join(decompileDir, "smali_classes2","com")
+       if os.path.exists(s1):
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"com")
+            list_package = ["nd","tencent"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+       s1 = os.path.join(decompileDir, "smali_classes2","com")
+       if os.path.exists(s1):
+            smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+            s3 = os.path.join(decompileDir, smali_classes_new,"com")
+            list_package = ["kingsoft"]
+            if not os.path.exists(s3):
+                distutils.dir_util.mkpath(s3)
+            gw_apk_tool.move_package(s1, s3, list_package)
+
+   sdk_id = channelSdkInfo['id']
+   if sdk_id == "597":
+        move(decompileDir)
+   else:
+       move_smallsheep(decompileDir)
+
 def remove_navigate(decompileDir):
     tmp_res = os.path.join(decompileDir, "res", "navigation")
     tmp_public_xml = os.path.join(decompileDir, "res", "values", "public.xml")
@@ -105,6 +213,72 @@ def remove_navigate(decompileDir):
     if os.path.exists(tmp_public_xml):
         os.remove(tmp_public_xml)
 
+def move_smallsheep(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes12/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new)
+    list_package = ["onevcat","RenderHeads","tencent"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes4/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new)
+    list_package = ["jssy"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+def move(decompileDir):
+    s1 = os.path.join(decompileDir, "smali_classes3")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new)
+    list_package = ["androidx"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes3/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new,"com")
+    list_package = ["google","nd","onevcat","RenderHeads","tencent"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes4/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new,"com")
+    list_package = ["google"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes4/com")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new,"com")
+    list_package = ["iflytek"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes5/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new,"androidx")
+    list_package = ["navigation","room","sqlite","startup","tracing","transition","viewpager2","work"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
+    s1 = os.path.join(decompileDir, "smali_classes6/androidx")
+    smali_classes_new = gw_apk_tool.create_mutil_smali(decompileDir)
+    s3 = os.path.join(decompileDir, smali_classes_new,"androidx")
+    list_package = ["media","print","recyclerview","savedstate","swiperefreshlayout","vectordrawable","versionedparcelable","webkit"]
+    if not os.path.exists(s3):
+        distutils.dir_util.mkpath(s3)
+    gw_apk_tool.move_package(s1, s3, list_package)
+
 
 if __name__ == '__main__':
     # del_qihoo("C:\\Users\\Administrator\\Desktop\\zt")