Merge "Use my uid to filter application info" into sc-dev

This commit is contained in:
Patrick Baumann
2021-06-24 14:40:36 +00:00
committed by Android (Google) Code Review

View File

@@ -36,6 +36,7 @@ import android.content.pm.PackageManagerInternal;
import android.net.Uri;
import android.os.Binder;
import android.os.Build;
import android.os.Process;
import android.os.RemoteException;
import android.os.UserHandle;
import android.util.Slog;
@@ -359,7 +360,7 @@ public class PlatformCompat extends IPlatformCompat.Stub {
private ApplicationInfo getApplicationInfo(String packageName, int userId) {
return LocalServices.getService(PackageManagerInternal.class).getApplicationInfo(
packageName, 0, userId, userId);
packageName, 0, Process.myUid(), userId);
}
private void killPackage(String packageName) {