|
|
@@ -20,7 +20,7 @@ def script_pre(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInf
|
|
|
logging.info("in 549")
|
|
|
# loading_png9 = os.path.join(SDK, "100qu/ForRes/drawable-hdpi/loading_bg.9.png")
|
|
|
loading_png9 = os.path.join(decompileDir, "res/drawable-hdpi/loading_bg.png")
|
|
|
- png_list=[
|
|
|
+ png_list = [
|
|
|
"res/drawable-mdpi/abc_list_pressed_holo_dark.png",
|
|
|
"res/drawable-hdpi/abc_list_pressed_holo_dark.png",
|
|
|
"res/drawable-xhdpi/abc_list_pressed_holo_dark.png",
|
|
|
@@ -35,6 +35,7 @@ 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
|
|
|
@@ -72,6 +73,13 @@ def script_second(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_cha
|
|
|
return
|
|
|
|
|
|
|
|
|
+def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
|
|
|
+ logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
|
|
|
+
|
|
|
+ # if channelSdkInfo['id'] == "597":
|
|
|
+ remove_false_string(decompileDir + "/res/values/ids.xml")
|
|
|
+
|
|
|
+
|
|
|
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)
|
|
|
@@ -115,6 +123,19 @@ def modify_xml(path_xml, name_xml):
|
|
|
root_node.write(path_xml, 'utf-8')
|
|
|
|
|
|
|
|
|
+def remove_false_string(file_path):
|
|
|
+ # 打开文本文件并读取内容
|
|
|
+ with open(file_path, 'r') as file:
|
|
|
+ lines = file.readlines()
|
|
|
+
|
|
|
+ # 删除每一行中的指定字符串
|
|
|
+ filtered_lines = [line.replace('false', '') for line in lines]
|
|
|
+
|
|
|
+ # 打开文本文件以写入模式,将修改后的内容写回原文件
|
|
|
+ with open(file_path, 'w') as file:
|
|
|
+ file.writelines(filtered_lines)
|
|
|
+
|
|
|
+
|
|
|
if __name__ == '__main__':
|
|
|
# script_pre("", "f:\\ztest", "", "", "")
|
|
|
modify_xml("G:\\autopack2.0_kuaifa\\tool\\config\\sdk4\\public.xml", "loading_bg")
|