Skip to content

Commit 7c65e39

Browse files
committed
DO NOT MERGE Added event logging for config installation failures.
This just logs the directory the data is being written to, which will tell us whether we've pushed a bad update and are about to start wedging devices. Change-Id: Iaaef6d41b2ab18bcce295c583ee13f49e337ed65
1 parent 755b877 commit 7c65e39

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

services/java/com/android/server/EventLogTags.logtags

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,8 @@ option java_package com.android.server
156156
51200 lockdown_vpn_connecting (egress_net|1)
157157
51201 lockdown_vpn_connected (egress_net|1)
158158
51202 lockdown_vpn_error (egress_net|1)
159+
160+
# ---------------------------
161+
# ConfigUpdateInstallReceiver.java
162+
# ---------------------------
163+
51300 config_install_failed (dir|3)

services/java/com/android/server/updatable/ConfigUpdateInstallReceiver.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@
2323
import android.provider.Settings;
2424
import android.os.FileUtils;
2525
import android.util.Base64;
26+
import android.util.EventLog;
2627
import android.util.Slog;
2728

29+
import com.android.server.EventLogTags;
30+
2831
import java.io.ByteArrayInputStream;
2932
import java.io.File;
3033
import java.io.FileNotFoundException;
@@ -100,6 +103,8 @@ public void run() {
100103
}
101104
} catch (Exception e) {
102105
Slog.e(TAG, "Could not update content!", e);
106+
EventLog.writeEvent(EventLogTags.CONFIG_INSTALL_FAILED,
107+
updateDir.toString());
103108
}
104109
}
105110
}.start();

0 commit comments

Comments
 (0)