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

Commit 058cafe0 authored by Hai Zhang's avatar Hai Zhang Committed by android-build-team Robot
Browse files

Add SafetyNet logging for package names read from config.

Bug: 145981139
Test: manual
Change-Id: I86c6bfc0a6e28e634e0fd201e424b7ee6882ba2c
(cherry picked from commit 6b14ea26)
parent 576c4d81
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -21231,6 +21231,11 @@ public class PackageManagerService extends IPackageManager.Stub
        long token = Binder.clearCallingIdentity();
        try {
            if (getPackageInfo(packageName, MATCH_FACTORY_ONLY, UserHandle.USER_SYSTEM) == null) {
                PackageInfo packageInfo = getPackageInfo(packageName, 0, UserHandle.USER_SYSTEM);
                if (packageInfo != null) {
                    EventLog.writeEvent(0x534e4554, "145981139", packageInfo.applicationInfo.uid,
                            "");
                }
                return null;
            }
        } finally {