OSDN Git Service

Temporarily whitelist apps known to hit the wtf case
authorMakoto Onuki <omakoto@google.com>
Wed, 22 Feb 2017 22:53:19 +0000 (14:53 -0800)
committerMakoto Onuki <omakoto@google.com>
Wed, 22 Feb 2017 23:07:14 +0000 (15:07 -0800)
Bug: 34973771
Test: Manual tests with hangouts

Change-Id: If456649cb90164562cd71503119625454590d60d

services/core/java/com/android/server/pm/LauncherAppsService.java

index 96a2577..c11131a 100644 (file)
@@ -242,6 +242,12 @@ 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)) {
+                        return false;
+                    }
                     Slog.wtfStack(TAG, message + " by " + callingPackage + " for another profile "
                             + targetUserId + " from " + callingUserId);