Merge "sensors: Support registry dump on DEV device." into main

This commit is contained in:
Treehugger Robot 2024-07-31 03:37:58 +00:00 committed by Android (Google) Code Review
commit b8dbc2a0df

View file

@ -26,7 +26,8 @@ int main() {
if (!::android::os::dumpstate::PropertiesHelper::IsUserBuild()) { if (!::android::os::dumpstate::PropertiesHelper::IsUserBuild()) {
// Not a user build, if this is also not a production device dump the USF registry. // Not a user build, if this is also not a production device dump the USF registry.
std::string hwRev = ::android::base::GetProperty("ro.boot.hardware.revision", ""); std::string hwRev = ::android::base::GetProperty("ro.boot.hardware.revision", "");
if (hwRev.find("PROTO") != std::string::npos || if (hwRev.find("DEV") != std::string::npos ||
hwRev.find("PROTO") != std::string::npos ||
hwRev.find("EVT") != std::string::npos || hwRev.find("EVT") != std::string::npos ||
hwRev.find("DVT") != std::string::npos || hwRev.find("DVT") != std::string::npos ||
hwRev.find("PVT") != std::string::npos) { hwRev.find("PVT") != std::string::npos) {