Skip to content
Snippets Groups Projects
Commit 5fd39fad authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't wtf() for reverse profile access; make it a warning." into oc-dev

parents fcfb396f 3cc7cd1c
No related branches found
No related tags found
No related merge requests found
......@@ -419,7 +419,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.");
}
}
......
......@@ -242,18 +242,8 @@ public class LauncherAppsService extends SystemService {
try {
UserInfo callingUserInfo = mUm.getUserInfo(callingUserId);
if (callingUserInfo.isManagedProfile()) {
// STOPSHIP Remove the whitelist.
if ("com.google.android.talk".equals(callingPackage)
|| "com.google.android.quicksearchbox".equals(callingPackage)
|| "com.google.android.googlequicksearchbox".equals(callingPackage)
) {
return false;
}
// STOPSHIP Change it to 'e'.
Slog.wtfStack(TAG, message + " by " + callingPackage + " for another profile "
Slog.w(TAG, message + " by " + callingPackage + " for another profile "
+ targetUserId + " from " + callingUserId);
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment