Fix IndexOutOfBoundsException when accessing RemoteCallbackList

If the binder dies, the RemoteCallbackList may change. To avoid
the exception, use broadcast() instead.

Bug: 374717734
Flag: EXEMPT bug fix
Test: atest FrameworksMockingServicesTests:com.android.server.pm.PackageMonitorCallbackHelperTest
Change-Id: I06e18d3cdfc7d0346ff07d7e1af53a4fef7f5221
1 file changed