Lines Matching refs:data
422 def SignApk(data, keyname, pw, platform_api_level, codename_to_api_level_map, argument
425 unsigned.write(data)
466 data = None
474 data = compressed.read()
477 data = signed.read()
482 return data
525 data = input_tf_zip.read(filename)
535 common.ZipWriteStr(output_tf_zip, out_info, data)
546 signed_data = SignApk(data, key, key_passwords[key], platform_api_level,
554 common.ZipWriteStr(output_tf_zip, out_info, data)
572 data,
586 common.ZipWriteStr(output_tf_zip, out_info, data)
592 new_data = data
594 new_data = RewriteProps(data.decode())
601 new_data = ReplaceCerts(data.decode())
640 common.ZipWriteStr(output_tf_zip, out_info, data)
679 common.ZipWriteStr(output_tf_zip, out_info, data)
719 def ReplaceCerts(data): argument
755 (data, num) = re.subn(pattern, new_cert16, data, flags=re.IGNORECASE)
764 root = ElementTree.fromstring(data)
768 "Found duplicate entries after cert replacement: {}".format(data)
770 return data
791 def RewriteProps(data): argument
805 for line in data.split("\n"):
1075 data = input_tf_zip.read("SYSTEM/build.prop").decode()
1078 for line in data.split("\n"):
1097 data = input_tf_zip.read("SYSTEM/build.prop").decode()
1100 for line in data.split("\n"):