Merge "Do not deliver INSTALL_SHORTCUT." into oc-dev

This commit is contained in:
TreeHugger Robot
2017-04-25 18:58:53 +00:00
committed by Android (Google) Code Review

View File

@@ -19146,6 +19146,12 @@ public class ActivityManagerService extends IActivityManager.Stub
case android.security.KeyChain.ACTION_TRUST_STORE_CHANGED:
mHandler.sendEmptyMessage(HANDLE_TRUST_STORAGE_UPDATE_MSG);
break;
case "com.android.launcher.action.INSTALL_SHORTCUT":
// As of O, we no longer support this broadcasts, even for pre-O apps.
// Apps should now be using ShortcutManager.pinRequestShortcut().
Log.w(TAG, "Broadcast " + action
+ " no longer supported. It will not be delivered.");
return ActivityManager.BROADCAST_SUCCESS;
}
if (Intent.ACTION_PACKAGE_ADDED.equals(action) ||