ChangeReporter: disable eager reporting

Reporting to syslog is causing contention problems. Disable for now.

Test: boots
Bug: 270775350
Change-Id: I20c59033b8f5b25ebc605df2add478cddfefe296
This commit is contained in:
Tim Murray
2023-02-28 21:37:06 -08:00
parent 108485159c
commit 131354becd

View File

@@ -42,6 +42,7 @@ import java.util.Set;
public final class ChangeReporter {
private static final String TAG = "CompatibilityChangeReporter";
private int mSource;
private static final boolean sShouldReport = false;
private static final class ChangeReport {
long mChangeId;
@@ -89,14 +90,16 @@ public final class ChangeReporter {
* @param state of the reported change - enabled/disabled/only logged
*/
public void reportChange(int uid, long changeId, int state) {
if (shouldWriteToStatsLog(uid, changeId, state)) {
FrameworkStatsLog.write(FrameworkStatsLog.APP_COMPATIBILITY_CHANGE_REPORTED, uid,
changeId, state, mSource);
if (sShouldReport) {
if (shouldWriteToStatsLog(uid, changeId, state)) {
FrameworkStatsLog.write(FrameworkStatsLog.APP_COMPATIBILITY_CHANGE_REPORTED, uid,
changeId, state, mSource);
}
if (shouldWriteToDebug(uid, changeId, state)) {
debugLog(uid, changeId, state);
}
markAsReported(uid, new ChangeReport(changeId, state));
}
if (shouldWriteToDebug(uid, changeId, state)) {
debugLog(uid, changeId, state);
}
markAsReported(uid, new ChangeReport(changeId, state));
}
/**