Loading core/java/android/content/pm/ILauncherApps.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -56,8 +56,8 @@ interface ILauncherApps { void startActivityAsUser(in IApplicationThread caller, String callingPackage, String callingFeatureId, in ComponentName component, in Rect sourceBounds, in Bundle opts, in UserHandle user); PendingIntent getActivityLaunchIntent(in ComponentName component, in Bundle opts, in UserHandle user); PendingIntent getActivityLaunchIntent(String callingPackage, in ComponentName component, in Bundle opts, in UserHandle user); void showAppDetailsAsUser(in IApplicationThread caller, String callingPackage, String callingFeatureId, in ComponentName component, in Rect sourceBounds, in Bundle opts, in UserHandle user); Loading core/java/android/content/pm/LauncherApps.java +2 −1 Original line number Diff line number Diff line Loading @@ -752,7 +752,8 @@ public class LauncherApps { } try { // due to b/209607104, startActivityOptions will be ignored return mService.getActivityLaunchIntent(component, null /* opts */, user); return mService.getActivityLaunchIntent(mContext.getPackageName(), component, null /* opts */, user); } catch (RemoteException re) { throw re.rethrowFromSystemServer(); } Loading services/core/java/com/android/server/pm/LauncherAppsService.java +3 −2 Original line number Diff line number Diff line Loading @@ -1098,8 +1098,9 @@ public class LauncherAppsService extends SystemService { } @Override public PendingIntent getActivityLaunchIntent(ComponentName component, Bundle opts, UserHandle user) { public PendingIntent getActivityLaunchIntent(String callingPackage, ComponentName component, Bundle opts, UserHandle user) { ensureShortcutPermission(callingPackage); if (!canAccessProfile(user.getIdentifier(), "Cannot start activity")) { throw new ActivityNotFoundException("Activity could not be found"); } Loading Loading
core/java/android/content/pm/ILauncherApps.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -56,8 +56,8 @@ interface ILauncherApps { void startActivityAsUser(in IApplicationThread caller, String callingPackage, String callingFeatureId, in ComponentName component, in Rect sourceBounds, in Bundle opts, in UserHandle user); PendingIntent getActivityLaunchIntent(in ComponentName component, in Bundle opts, in UserHandle user); PendingIntent getActivityLaunchIntent(String callingPackage, in ComponentName component, in Bundle opts, in UserHandle user); void showAppDetailsAsUser(in IApplicationThread caller, String callingPackage, String callingFeatureId, in ComponentName component, in Rect sourceBounds, in Bundle opts, in UserHandle user); Loading
core/java/android/content/pm/LauncherApps.java +2 −1 Original line number Diff line number Diff line Loading @@ -752,7 +752,8 @@ public class LauncherApps { } try { // due to b/209607104, startActivityOptions will be ignored return mService.getActivityLaunchIntent(component, null /* opts */, user); return mService.getActivityLaunchIntent(mContext.getPackageName(), component, null /* opts */, user); } catch (RemoteException re) { throw re.rethrowFromSystemServer(); } Loading
services/core/java/com/android/server/pm/LauncherAppsService.java +3 −2 Original line number Diff line number Diff line Loading @@ -1098,8 +1098,9 @@ public class LauncherAppsService extends SystemService { } @Override public PendingIntent getActivityLaunchIntent(ComponentName component, Bundle opts, UserHandle user) { public PendingIntent getActivityLaunchIntent(String callingPackage, ComponentName component, Bundle opts, UserHandle user) { ensureShortcutPermission(callingPackage); if (!canAccessProfile(user.getIdentifier(), "Cannot start activity")) { throw new ActivityNotFoundException("Activity could not be found"); } Loading