From 4260fc15758624cfc1b70a03887ac52ab5448178 Mon Sep 17 00:00:00 2001 From: Stefen Wakefield Date: Tue, 23 Mar 2021 04:58:22 -0500 Subject: [PATCH] sign_target_files_apks: Relax ro.build.description requirements Some OEMs, namely OnePlus don't use AOSP compliant build description. Making sure that the last piece ends with -keys is more than enough. Change-Id: Iefa3c408a3fdda0b63db257befb8ba2d36793293 --- tools/releasetools/sign_target_files_apks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/releasetools/sign_target_files_apks.py b/tools/releasetools/sign_target_files_apks.py index 3db555974..8856e6554 100755 --- a/tools/releasetools/sign_target_files_apks.py +++ b/tools/releasetools/sign_target_files_apks.py @@ -799,7 +799,7 @@ def RewriteProps(data): value = "/".join(pieces) elif key == "ro.build.description": pieces = value.split(" ") - assert len(pieces) == 5 + assert pieces[-1].endswith("-keys") pieces[-1] = EditTags(pieces[-1]) value = " ".join(pieces) elif key.startswith("ro.") and key.endswith(".build.tags"):