aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorErfan Abdi <erfangplus@gmail.com>2022-03-15 21:34:22 -0400
committerMichael Bestas <mkbestas@lineageos.org>2022-08-29 23:07:50 +0300
commitd62d93914221baab714cded38f8ea7064353e81c (patch)
treed874fff3ef36d59dfaa7f307ec0be90ff3a29533 /install
parent384e8ea499a76398f82d00f29ab3e557ee076516 (diff)
recovery: Allow comma separated codename assertions
* Using `|` is functional, but then breaks older recoveries. No point in disallowing commas. Change-Id: I0f380f5c6207b1a09431b8d40a2a529d9de3233f
Diffstat (limited to 'install')
-rw-r--r--install/install.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/install.cpp b/install/install.cpp
index a4eb481a..56b3ad7f 100644
--- a/install/install.cpp
+++ b/install/install.cpp
@@ -216,7 +216,7 @@ bool CheckPackageMetadata(const std::map<std::string, std::string>& metadata, Ot
auto device = android::base::GetProperty("ro.product.device", "");
auto pkg_device = get_value(metadata, "pre-device");
// device name can be a | separated list, so need to check
- if (pkg_device.empty() || !isInStringList(device, pkg_device, FINGERPRING_SEPARATOR ":")) {
+ if (pkg_device.empty() || !isInStringList(device, pkg_device, FINGERPRING_SEPARATOR ":" ",")) {
LOG(ERROR) << "Package is for product " << pkg_device << " but expected " << device;
return false;
}