Merge "Add SafetyNet logging for package names read from config." into qt-qpr1-dev

This commit is contained in:
TreeHugger Robot
2020-03-05 19:07:58 +00:00
committed by Android (Google) Code Review

View File

@@ -21260,6 +21260,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 {