You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Android_boot_image_editor/aosp/avb/avbtool.diff

21 lines
618 B
Diff

diff --git a/avb/avbtool b/avb/avbtool
index 8732024..5f62948 100755
--- a/avb/avbtool
+++ b/avb/avbtool
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2.7
# Copyright 2016, The Android Open Source Project
#
@@ -2159,7 +2159,8 @@ class Avb(object):
expected_chain_partitions_map[partition_name] = (rollback_index_location, pk_blob)
image_dir = os.path.dirname(image_filename)
- image_ext = os.path.splitext(image_filename)[1]
+ #image_ext = os.path.splitext(image_filename)[1]
+ image_ext = image_filename[image_filename.index('.'):]
key_blob = None
if key_path: