Add RECEIVER_EXPORTED for internal intent based on the PSA

Test: presubmit
Change-Id: I699f1e93cf8c44b046f131014d6200346798336e
This commit is contained in:
ykhung
2022-12-18 16:21:08 +08:00
parent 6d57edf9ac
commit b41b50c3dc
2 changed files with 4 additions and 3 deletions

View File

@@ -142,7 +142,7 @@ public class BatteryBroadcastReceiverTest {
@Test
public void testRegister_updateBatteryStatus() {
doReturn(mChargingIntent).when(mContext).registerReceiver(any(), any());
doReturn(mChargingIntent).when(mContext).registerReceiver(any(), any(), anyInt());
mBatteryBroadcastReceiver.register();
mBatteryBroadcastReceiver.register();