Merge "AppBinding: Respond to PACKAGE_CHANGED" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-04-01 04:46:22 +00:00
committed by Android (Google) Code Review

View File

@@ -181,6 +181,7 @@ public class AppBindingService extends Binder {
// (app uninstall/disable will be notified by RoleManager.)
final IntentFilter packageFilter = new IntentFilter();
packageFilter.addAction(Intent.ACTION_PACKAGE_ADDED);
packageFilter.addAction(Intent.ACTION_PACKAGE_CHANGED);
packageFilter.addDataScheme("package");
mContext.registerReceiverAsUser(mPackageUserMonitor, UserHandle.ALL,
@@ -255,6 +256,9 @@ public class AppBindingService extends Binder {
handlePackageAddedReplacing(packageName, userId);
}
break;
case Intent.ACTION_PACKAGE_CHANGED:
handlePackageAddedReplacing(packageName, userId);
break;
}
}
};