recovery: Allow comma separated codename assertions
* Using `|` is functional, but then breaks older recoveries.
No point in disallowing commas.
Change-Id: I0f380f5c6207b1a09431b8d40a2a529d9de3233f
diff --git a/install/install.cpp b/install/install.cpp
index 480006b..199bf54 100644
--- a/install/install.cpp
+++ b/install/install.cpp
@@ -221,7 +221,7 @@
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;
}