diff --git a/cmds/statsd/src/StatsService.cpp b/cmds/statsd/src/StatsService.cpp index 4deb8bd83a9fe..69fbf1f9d8816 100644 --- a/cmds/statsd/src/StatsService.cpp +++ b/cmds/statsd/src/StatsService.cpp @@ -1200,9 +1200,9 @@ Status StatsService::sendBinaryPushStateChangedAtom(const android::String16& tra userid_t userId = multiuser_get_user_id(uid); - bool requiresStaging = options | IStatsManager::FLAG_REQUIRE_STAGING; - bool rollbackEnabled = options | IStatsManager::FLAG_ROLLBACK_ENABLED; - bool requiresLowLatencyMonitor = options | IStatsManager::FLAG_REQUIRE_LOW_LATENCY_MONITOR; + bool requiresStaging = options & IStatsManager::FLAG_REQUIRE_STAGING; + bool rollbackEnabled = options & IStatsManager::FLAG_ROLLBACK_ENABLED; + bool requiresLowLatencyMonitor = options & IStatsManager::FLAG_REQUIRE_LOW_LATENCY_MONITOR; ProtoOutputStream proto; for (const auto& expId : experimentIds) {