Loading core/java/android/content/pm/LauncherApps.java +0 −4 Original line number Diff line number Diff line Loading @@ -765,10 +765,6 @@ public class LauncherApps { @Nullable public PendingIntent getMainActivityLaunchIntent(@NonNull ComponentName component, @Nullable Bundle startActivityOptions, @NonNull UserHandle user) { if (mContext.checkSelfPermission(android.Manifest.permission.START_TASKS_FROM_RECENTS) != PackageManager.PERMISSION_GRANTED) { Log.w(TAG, "Only allowed for recents."); } logErrorForInvalidProfileAccess(user); if (DEBUG) { Log.i(TAG, "GetMainActivityLaunchIntent " + component + " " + user); Loading services/core/java/com/android/server/pm/LauncherAppsService.java +5 −1 Original line number Diff line number Diff line Loading @@ -1330,7 +1330,11 @@ public class LauncherAppsService extends SystemService { @Override public PendingIntent getActivityLaunchIntent(String callingPackage, ComponentName component, UserHandle user) { ensureShortcutPermission(callingPackage); if (mContext.checkPermission(android.Manifest.permission.START_TASKS_FROM_RECENTS, injectBinderCallingPid(), injectBinderCallingUid()) != PackageManager.PERMISSION_GRANTED) { throw new SecurityException("Permission START_TASKS_FROM_RECENTS required"); } if (!canAccessProfile(user.getIdentifier(), "Cannot start activity")) { throw new ActivityNotFoundException("Activity could not be found"); } Loading Loading
core/java/android/content/pm/LauncherApps.java +0 −4 Original line number Diff line number Diff line Loading @@ -765,10 +765,6 @@ public class LauncherApps { @Nullable public PendingIntent getMainActivityLaunchIntent(@NonNull ComponentName component, @Nullable Bundle startActivityOptions, @NonNull UserHandle user) { if (mContext.checkSelfPermission(android.Manifest.permission.START_TASKS_FROM_RECENTS) != PackageManager.PERMISSION_GRANTED) { Log.w(TAG, "Only allowed for recents."); } logErrorForInvalidProfileAccess(user); if (DEBUG) { Log.i(TAG, "GetMainActivityLaunchIntent " + component + " " + user); Loading
services/core/java/com/android/server/pm/LauncherAppsService.java +5 −1 Original line number Diff line number Diff line Loading @@ -1330,7 +1330,11 @@ public class LauncherAppsService extends SystemService { @Override public PendingIntent getActivityLaunchIntent(String callingPackage, ComponentName component, UserHandle user) { ensureShortcutPermission(callingPackage); if (mContext.checkPermission(android.Manifest.permission.START_TASKS_FROM_RECENTS, injectBinderCallingPid(), injectBinderCallingUid()) != PackageManager.PERMISSION_GRANTED) { throw new SecurityException("Permission START_TASKS_FROM_RECENTS required"); } if (!canAccessProfile(user.getIdentifier(), "Cannot start activity")) { throw new ActivityNotFoundException("Activity could not be found"); } Loading