summaryrefslogtreecommitdiffstats
path: root/update_verifier
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2021-10-12 23:43:40 +0200
committerKelvin Zhang <zhangkelvin@google.com>2021-10-13 00:02:32 +0200
commitc88a1efca985a39607ba726115837d40803ceeea (patch)
treec9c63e4d8c51d3f11d4cf4f50732674af1c8f0bb /update_verifier
parentMerge "Fix the fuse error that cannot handle the OTA package larger than 4 GiB" (diff)
downloadandroid_bootable_recovery-c88a1efca985a39607ba726115837d40803ceeea.tar
android_bootable_recovery-c88a1efca985a39607ba726115837d40803ceeea.tar.gz
android_bootable_recovery-c88a1efca985a39607ba726115837d40803ceeea.tar.bz2
android_bootable_recovery-c88a1efca985a39607ba726115837d40803ceeea.tar.lz
android_bootable_recovery-c88a1efca985a39607ba726115837d40803ceeea.tar.xz
android_bootable_recovery-c88a1efca985a39607ba726115837d40803ceeea.tar.zst
android_bootable_recovery-c88a1efca985a39607ba726115837d40803ceeea.zip
Diffstat (limited to 'update_verifier')
-rw-r--r--update_verifier/care_map_generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/update_verifier/care_map_generator.py b/update_verifier/care_map_generator.py
index c6f2dad24..b1396a43c 100644
--- a/update_verifier/care_map_generator.py
+++ b/update_verifier/care_map_generator.py
@@ -111,14 +111,14 @@ def main(argv):
logging.basicConfig(level=logging.INFO if args.verbose else logging.WARNING,
format=logging_format)
- with open(args.input_care_map, 'r') as input_care_map:
+ with open(args.input_care_map, 'rb') as input_care_map:
content = input_care_map.read()
if args.parse_proto:
result = ParseProtoMessage(content, args.fingerprint_enabled).encode()
else:
care_map_proto = GenerateCareMapProtoFromLegacyFormat(
- content.rstrip().splitlines(), args.fingerprint_enabled)
+ content.decode().rstrip().splitlines(), args.fingerprint_enabled)
result = care_map_proto.SerializeToString()
with open(args.output_file, 'wb') as output: