Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cabcecb2 authored by Weng Su's avatar Weng Su
Browse files

[RESTRICT AUTOMERGE] Revert "Add SafetyNet logging"

This reverts commit 199528d4.

Reason for revert: rollback CLs to avoid compatibility risks

Bug: 185126813
Change-Id: I5ed1782f1a35681ab6be4f74ea3156420b7dad5f
parent 99554d3c
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -33,7 +33,6 @@ import android.os.Process;
import android.os.SimpleClock;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.EventLog;
import android.util.Log;

import androidx.annotation.VisibleForTesting;
@@ -355,7 +354,6 @@ public class WifiDialogActivity extends ObservableActivity implements WifiDialog
        final String callingPackage = getCallingPackage();
        if (callingPackage == null) {
            Log.d(TAG, "Failed to get the calling package, don't return the result.");
            EventLog.writeEvent(0x534e4554, "185126813", -1 /* UID */, "no calling package");
            return false;
        }

@@ -372,14 +370,6 @@ public class WifiDialogActivity extends ObservableActivity implements WifiDialog
        }

        Log.d(TAG, "The calling package does not have the necessary permissions for result.");
        try {
            EventLog.writeEvent(0x534e4554, "185126813",
                    getPackageManager().getPackageUid(callingPackage, 0 /* flags */),
                    "no permission");
        } catch (PackageManager.NameNotFoundException e) {
            EventLog.writeEvent(0x534e4554, "185126813", -1 /* UID */, "no permission");
            Log.w(TAG, "Cannot find the UID, calling package: " + callingPackage, e);
        }
        return false;
    }
}