Apps that share the same UID should also receive the PACKAGE_CHANGED broadcast

Limit sending of the PACKAGE_CHANGED broadcast to only the system
the application itself and applications with the same user ID
when the component is not exported.

Flag: android.content.pm.reduce_broadcasts_for_component_state_changes

Bug: 376430671
Test: atest PackageChangedBroadcastTest
Change-Id: Ib658fe98941189979b6097d5a14f77a4c0312c70
2 files changed