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

Commit fa847eb9 authored by Wesley Wang's avatar Wesley Wang Committed by Automerger Merge Worker
Browse files

Merge "Add uId into AppInfo page launch variable" into sc-dev am: 437d755e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14660740

Change-Id: I1634bcd25afa4be4889787e4ac1968da7e5e5871
parents 105fa41b 437d755e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1207,8 +1207,16 @@ public class LauncherAppsService extends SystemService {
            final long ident = Binder.clearCallingIdentity();
            try {
                String packageName = component.getPackageName();
                int uId = -1;
                try {
                    uId = mContext.getPackageManager().getApplicationInfo(
                            packageName, PackageManager.MATCH_ANY_USER).uid;
                } catch (PackageManager.NameNotFoundException e) {
                    Log.d(TAG, "package not found: " + e);
                }
                intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS,
                        Uri.fromParts("package", packageName, null));
                intent.putExtra("uId", uId);
                intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
                intent.setSourceBounds(sourceBounds);
            } finally {