import file_utils import common_utils import xml_utils import os.path import xml.etree.ElementTree as ET namespaces = {'android' : 'http://schemas.android.com/apk/res/android'} encoding = 'UTF-8' def execute(game, sdk, config): print('execute %s game script...' % game) subChannel = config['subChannel'] decompliePath = file_utils.get_decompile_path(game, sdk, subChannel, config['cache']) manifest = os.path.join(decompliePath, 'AndroidManifest.xml') activityName = 'com.tencent.android.tpush.XGPushActivity' #删除Activity xml_utils.delete_activity_by_name(manifest, activityName) file_utils.copy_game_smali_code(game, sdk, subChannel, config) return 0