From 976071a631cd12ad87c0dc34a64b80cde0290947 Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Mon, 13 Feb 2017 14:32:41 -0800 Subject: [PATCH] Follow-up to I61640146 Remove duplicate check. Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests Change-Id: I0af448186c90e548542160d1902bc462545bb03e --- .../core/java/com/android/server/pm/LauncherAppsService.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/services/core/java/com/android/server/pm/LauncherAppsService.java b/services/core/java/com/android/server/pm/LauncherAppsService.java index 179f310019059..96a25776e106a 100644 --- a/services/core/java/com/android/server/pm/LauncherAppsService.java +++ b/services/core/java/com/android/server/pm/LauncherAppsService.java @@ -515,9 +515,6 @@ public class LauncherAppsService extends SystemService { if (!canAccessProfile(callingPackage, targetUserId, "Cannot start activity")) { return false; } - if (!canAccessProfile(callingPackage, targetUserId, "Cannot access shortcuts")) { - return false; - } if (!isUserEnabled(targetUserId)) { throw new IllegalStateException("Cannot start a shortcut for disabled profile " + targetUserId);