Merge "Temporarily disable LauncherApps reverse access check"

This commit is contained in:
TreeHugger Robot
2017-01-24 19:35:18 +00:00
committed by Android (Google) Code Review

View File

@@ -232,7 +232,12 @@ public class LauncherAppsService extends SystemService {
try {
UserInfo callingUserInfo = mUm.getUserInfo(callingUserId);
if (callingUserInfo.isManagedProfile()) {
throw new SecurityException(message + " for another profile " + targetUserId);
// TODO: Make it SecurityException. See b/34650921
// throw new SecurityException(message + " for another profile " + targetUserId);
// TODO: Report caller package name.
Slog.wtfStack(TAG, message + " for another profile " + targetUserId
+ " from " + callingUserId);
}
UserInfo targetUserInfo = mUm.getUserInfo(targetUserId);