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