|
@@ -16,10 +16,12 @@ import gw_data_center
|
|
|
|
|
|
|
|
ANDROID_NS = 'http://schemas.android.com/apk/res/android'
|
|
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):
|
|
def script_init(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
|
|
|
# gw_data_center.pack_small=True
|
|
# gw_data_center.pack_small=True
|
|
|
return
|
|
return
|
|
|
|
|
|
|
|
|
|
+
|
|
|
def script_second(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
|
|
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))
|
|
logging.info('script_second: ' + str(channel_sdk_info))
|
|
|
# 逆向渠道id
|
|
# 逆向渠道id
|
|
@@ -122,8 +124,7 @@ def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
|
|
|
|
|
|
|
|
|
|
|
|
|
def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
|
|
def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
|
|
|
-
|
|
|
|
|
- return
|
|
|
|
|
|
|
+ return
|
|
|
|
|
|
|
|
|
|
|
|
|
def create_mutil_smali(decompileDir):
|
|
def create_mutil_smali(decompileDir):
|
|
@@ -201,6 +202,7 @@ def modify_manifest(decompileDir, removeKey):
|
|
|
|
|
|
|
|
root_node.write(xmlparse, 'utf-8')
|
|
root_node.write(xmlparse, 'utf-8')
|
|
|
|
|
|
|
|
|
|
+
|
|
|
def handle_public_xml(public_xml_path, remove_node):
|
|
def handle_public_xml(public_xml_path, remove_node):
|
|
|
if not os.path.exists(public_xml_path):
|
|
if not os.path.exists(public_xml_path):
|
|
|
logging.info('public_xml is null: ' + public_xml_path)
|
|
logging.info('public_xml is null: ' + public_xml_path)
|
|
@@ -217,6 +219,7 @@ def handle_public_xml(public_xml_path, remove_node):
|
|
|
f.writelines(new_lines)
|
|
f.writelines(new_lines)
|
|
|
return
|
|
return
|
|
|
|
|
|
|
|
|
|
+
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
|
# replace_super_application("D:\work\wzdq")
|
|
# replace_super_application("D:\work\wzdq")
|
|
|
modify_manifest("E:\\apk\\youhua\\youhua.zip.out", "requestLegacyExternalStorage")
|
|
modify_manifest("E:\\apk\\youhua\\youhua.zip.out", "requestLegacyExternalStorage")
|