Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01de0691 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Ensure file permissions are writable before attempting to sign." am:...

Merge "Ensure file permissions are writable before attempting to sign." am: 25405114 am: c45efb8c

Original change: https://android-review.googlesource.com/c/platform/build/+/1520199

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibd36fadc3d57c5718e20421069d76f7957e9f435
parents 3512e9b9 c45efb8c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ import logging
import os
import shlex
import shutil
import stat
import sys
import uuid
import zipfile
@@ -330,6 +331,9 @@ def AddDtbo(output_zip):

  # AVB-sign the image as needed.
  if OPTIONS.info_dict.get("avb_enable") == "true":
    # Signing requires +w
    os.chmod(img.name, os.stat(img.name).st_mode | stat.S_IWUSR)

    avbtool = OPTIONS.info_dict["avb_avbtool"]
    part_size = OPTIONS.info_dict["dtbo_size"]
    # The AVB hash footer will be replaced if already present.