Merge "Allow use of CompOS on release builds."
diff --git a/ondevice-signing/odsign_main.cpp b/ondevice-signing/odsign_main.cpp
index 0433a3e..4e9905a 100644
--- a/ondevice-signing/odsign_main.cpp
+++ b/ondevice-signing/odsign_main.cpp
@@ -39,7 +39,6 @@
using android::base::ErrnoError;
using android::base::Error;
-using android::base::GetProperty;
using android::base::Result;
using android::base::SetProperty;
@@ -149,11 +148,6 @@
return access(kCompOsVerifyPath, X_OK) == 0 && access(kKvmDevicePath, F_OK) == 0;
}
-bool isDebugBuild() {
- std::string build_type = GetProperty("ro.build.type", "");
- return build_type == "userdebug" || build_type == "eng";
-}
-
Result<void> verifyExistingRootCert(const SigningKey& key) {
if (access(kSigningKeyCert.c_str(), F_OK) < 0) {
return ErrnoError() << "Key certificate not found: " << kSigningKeyCert;
@@ -607,7 +601,7 @@
LOG(INFO) << "Device doesn't support fsverity. Falling back to full verification.";
}
- bool useCompOs = kUseCompOs && supportsFsVerity && compOsPresent() && isDebugBuild();
+ bool useCompOs = kUseCompOs && supportsFsVerity && compOsPresent();
if (supportsFsVerity) {
auto existing_cert = verifyExistingRootCert(*key);