|
|
@@ -9,26 +9,22 @@ from xml.etree import ElementTree as ET
|
|
|
|
|
|
ANDROID_NS = 'http://schemas.android.com/apk/res/android'
|
|
|
|
|
|
-
|
|
|
def script_second(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
|
|
|
- if channelSdkInfo['id'] == '587':
|
|
|
+ modify_manifest_common(decompileDir, "allowNativeHeapPointerTagging")
|
|
|
+ if channelSdkInfo['id']=='587':
|
|
|
progress_png = os.path.join(decompileDir, "res/drawable/progress.png")
|
|
|
if os.path.exists(progress_png):
|
|
|
os.remove(progress_png)
|
|
|
return
|
|
|
|
|
|
|
|
|
-def script_second(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
|
|
|
- modify_manifest_common(decompileDir, "allowNativeHeapPointerTagging")
|
|
|
- return
|
|
|
-
|
|
|
-
|
|
|
def script_last(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
|
|
|
logging.info('------------channelSdkInfo:' + str(channelSdkInfo))
|
|
|
if channelSdkInfo['id'] == '549':
|
|
|
del_coolcloud(decompileDir)
|
|
|
modify_manifest_common(decompileDir, "allowNativeHeapPointerTagging")
|
|
|
app_theme(decompileDir)
|
|
|
+ handle_style(decompileDir)
|
|
|
|
|
|
|
|
|
def del_coolcloud(decompileDir):
|
|
|
@@ -107,6 +103,17 @@ def modify_manifest_common(decompileDir, removeKey):
|
|
|
|
|
|
root_node.write(xmlparse, 'utf-8')
|
|
|
|
|
|
+def handle_style(decompile_dir_path):
|
|
|
+ style_xml_path = os.path.join(decompile_dir_path, 'res', 'values', 'styles.xml')
|
|
|
+ xml_tree = ET.parse(style_xml_path)
|
|
|
+ xml_root = xml_tree.getroot()
|
|
|
+ style_roots = xml_root.findall('./style')
|
|
|
+ for style_root in style_roots:
|
|
|
+ if style_root.get('name') == 'AppTheme':
|
|
|
+ print(style_root.get('parent'))
|
|
|
+ style_root.set('parent', '@android:style/Theme.NoTitleBar.Fullscreen')
|
|
|
+ xml_tree.write(style_xml_path, encoding='utf-8', xml_declaration=True)
|
|
|
+ break
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
d="D://work//autopack3//tool//outputGame//admin@163.com//xinxiaaojianghukp//1.0.260//xinxiaaojianghukp_39"
|