add option to specify updater binary, for development

Change-Id: I5f239afff70c87fb16ddc4b8abefa7bbcda6040d
This commit is contained in:
Doug Zongker
2014-03-03 10:21:27 -08:00
parent 36ac26a014
commit 25568486e5
2 changed files with 15 additions and 6 deletions

View File

@@ -305,7 +305,7 @@ class EdifyGenerator(object):
if input_path is None:
data = input_zip.read("OTA/bin/updater")
else:
data = open(os.path.join(input_path, "updater")).read()
data = open(input_path, "rb").read()
common.ZipWriteStr(output_zip, "META-INF/com/google/android/update-binary",
data, perms=0755)