Skip to content

Commit b1d601d

Browse files
author
Pavel Grafov
committed
Add support for two more new event types.
Namely: TAG_KEY_INTEGRITY_VIOLATION TAG_CERT_VALIDATION_FAILURE Test: compiled. Bug: 70886042 Change-Id: I533b007fb560c57dfe40e3f7954904ab1acda1aa
1 parent 1721082 commit b1d601d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/src/main/java/com/afwsamples/testdpc/policy/SecurityLogsFragment.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ public class SecurityLogsFragment extends ListFragment {
6666
private static final int TAG_CERT_AUTHORITY_INSTALLED = 210029;
6767
private static final int TAG_CERT_AUTHORITY_REMOVED = 210030;
6868
private static final int TAG_CRYPTO_SELF_TEST_COMPLETED = 210031;
69+
private static final int TAG_KEY_INTEGRITY_VIOLATION = 210032;
70+
private static final int TAG_CERT_VALIDATION_FAILURE = 210033;
6971

70-
private ArrayList<String> mLogs = new ArrayList<String>();
72+
private final ArrayList<String> mLogs = new ArrayList<>();
7173
private ArrayAdapter<String> mAdapter;
7274

7375
private DevicePolicyManager mDevicePolicyManager;
@@ -221,6 +223,12 @@ private String getStringEventTagFromId(int eventId) {
221223
case TAG_CRYPTO_SELF_TEST_COMPLETED:
222224
eventTag = "CRYPTO_SELF_TEST_COMPLETED";
223225
break;
226+
case TAG_KEY_INTEGRITY_VIOLATION:
227+
eventTag = "KEY_INTEGRITY_VIOLATION";
228+
break;
229+
case TAG_CERT_VALIDATION_FAILURE:
230+
eventTag = "CERT_VALIDATION_FAILURE";
231+
break;
224232
default:
225233
eventTag = "UNKNOWN(" + eventId + ")";
226234
}

0 commit comments

Comments
 (0)