Merge "Fix crash when broadcasting preferred activity changed before boot completed." into qt-dev

This commit is contained in:
TreeHugger Robot
2019-05-04 06:11:34 +00:00
committed by Android (Google) Code Review

View File

@@ -20062,6 +20062,7 @@ public class PackageManagerService extends IPackageManager.Stub
final Intent intent = new Intent(Intent.ACTION_PREFERRED_ACTIVITY_CHANGED);
intent.putExtra(Intent.EXTRA_USER_HANDLE, userId);
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
try {
am.broadcastIntent(null, intent, null, null,
0, null, null, null, android.app.AppOpsManager.OP_NONE,