LockSettingsService: remove obsolete EventLog logging

As per go/asa-remove-safetynet-fix-requirement, EventLog statements that
were added for SafetyNet are deprecated and can be removed.

Test: presubmit
Change-Id: Idc5ff9171d3f40676183c2f5460886adff288f09
This commit is contained in:
Eric Biggers
2023-07-10 18:53:14 +00:00
parent 66ca10a357
commit 18346d8f32

View File

@@ -118,7 +118,6 @@ import android.system.keystore2.Domain;
import android.text.TextUtils;
import android.util.ArrayMap;
import android.util.ArraySet;
import android.util.EventLog;
import android.util.Log;
import android.util.LongSparseArray;
import android.util.Slog;
@@ -836,9 +835,6 @@ public class LockSettingsService extends ILockSettings.Stub {
@Override // binder interface
public void systemReady() {
if (mContext.checkCallingOrSelfPermission(PERMISSION) != PERMISSION_GRANTED) {
EventLog.writeEvent(0x534e4554, "28251513", getCallingUid(), ""); // SafetyNet
}
checkWritePermission();
mHasSecureLockScreen = mContext.getPackageManager()
@@ -1093,9 +1089,6 @@ public class LockSettingsService extends ILockSettings.Stub {
}
private final void checkPasswordHavePermission() {
if (mContext.checkCallingOrSelfPermission(PERMISSION) != PERMISSION_GRANTED) {
EventLog.writeEvent(0x534e4554, "28251513", getCallingUid(), ""); // SafetyNet
}
mContext.enforceCallingOrSelfPermission(PERMISSION, "LockSettingsHave");
}