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

Commit e07c75a8 authored by Michael Runge's avatar Michael Runge
Browse files

Rewrite ro.vendor.build.fingerprint/thumbprint on signing

This should also indicate release-keys.

Bug: 18281807

Change-Id: I8d2568ca346625b91384f7e639d9c92e97587755
parent 8070b20f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -295,12 +295,12 @@ def RewriteProps(data, misc_info):
    original_line = line
    if line and line[0] != '#' and "=" in line:
      key, value = line.split("=", 1)
      if (key == "ro.build.fingerprint"
      if (key in ("ro.build.fingerprint", "ro.vendor.build.fingerprint")
          and misc_info.get("oem_fingerprint_properties") is None):
        pieces = value.split("/")
        pieces[-1] = EditTags(pieces[-1])
        value = "/".join(pieces)
      elif (key == "ro.build.thumbprint"
      elif (key in ("ro.build.thumbprint", "ro.vendor.build.thumbprint")
          and misc_info.get("oem_fingerprint_properties") is not None):
        pieces = value.split("/")
        pieces[-1] = EditTags(pieces[-1])