Loading tools/releasetools/common.py +7 −0 Original line number Diff line number Diff line Loading @@ -335,6 +335,13 @@ def BuildBootableImage(sourcedir, fs_config_file, info_dict=None): assert p.returncode == 0, "mkbootimg of %s image failed" % ( os.path.basename(sourcedir),) if info_dict.get("verity_key", None): path = "/" + os.path.basename(sourcedir).lower() cmd = ["boot_signer", path, img.name, info_dict["verity_key"], img.name] p = Run(cmd, stdout=subprocess.PIPE) p.communicate() assert p.returncode == 0, "boot_signer of %s image failed" % path img.seek(os.SEEK_SET, 0) data = img.read() Loading Loading
tools/releasetools/common.py +7 −0 Original line number Diff line number Diff line Loading @@ -335,6 +335,13 @@ def BuildBootableImage(sourcedir, fs_config_file, info_dict=None): assert p.returncode == 0, "mkbootimg of %s image failed" % ( os.path.basename(sourcedir),) if info_dict.get("verity_key", None): path = "/" + os.path.basename(sourcedir).lower() cmd = ["boot_signer", path, img.name, info_dict["verity_key"], img.name] p = Run(cmd, stdout=subprocess.PIPE) p.communicate() assert p.returncode == 0, "boot_signer of %s image failed" % path img.seek(os.SEEK_SET, 0) data = img.read() Loading