Don't wtf() for reverse profile access; make it a warning.
Bug:36003688 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: I6d6a73e1d9281dc0b92186dd0666865b0f6b3f1c
This commit is contained in:
@@ -428,7 +428,7 @@ public class LauncherApps {
|
||||
*/
|
||||
private void logErrorForInvalidProfileAccess(@NonNull UserHandle target) {
|
||||
if (UserHandle.myUserId() != target.getIdentifier() && mUserManager.isManagedProfile()) {
|
||||
Log.e(TAG, "Accessing other profiles/users from managed profile is no longer allowed.");
|
||||
Log.w(TAG, "Accessing other profiles/users from managed profile is no longer allowed.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user