summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Groover <mpgroover@google.com>2022-03-22 23:31:02 +0000
committerMichael Groover <mpgroover@google.com>2022-05-04 20:16:37 +0000
commit062a321463d68fb399bdd1f8ea95fb4137206bf6 (patch)
tree387d2f7774be844577676dfc96065f00a1d41a70
parent61354891677ecf9f11f228da67465fc18b2de7c4 (diff)
downloadSecureElement-android13-dev.tar.gz
Revert "Add required flag to registerReceiver calls in SecureElementService"android13-dev
This reverts commit eb0db22ce0d77a3c08bfc8fcadf9223460c631de. Reason for revert: ag/17318348 moved the declaration of the protected-broadcasts from the telephony package to the platform's manifest, so a flag is no longer required when registering for these. In addition, ag/17307852 is syncing the behavior of unexported runtime receivers with that of manifest receivers by limiting the UIDs that can broadcast to these receivers to the root and system UIDs; with the RECEIVER_NOT_EXPORTED flag from this commit, these receivers would no longer be able to receive these broadcasts when sent from the telephony UID. Bug: 225999840 Change-Id: I1986a4dd77563879a97f51cf678bd340533e800d Merged-In: I1986a4dd77563879a97f51cf678bd340533e800d (cherry picked from commit 615683b7e5803197d54da5a5006b8ade3f764af8)
-rw-r--r--src/com/android/se/SecureElementService.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/se/SecureElementService.java b/src/com/android/se/SecureElementService.java
index 20ae533..92b3b51 100644
--- a/src/com/android/se/SecureElementService.java
+++ b/src/com/android/se/SecureElementService.java
@@ -178,8 +178,7 @@ public final class SecureElementService extends Service {
// listen for events
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction(TelephonyManager.ACTION_MULTI_SIM_CONFIG_CHANGED);
- this.registerReceiver(mMultiSimConfigChangedReceiver, intentFilter,
- Context.RECEIVER_NOT_EXPORTED);
+ this.registerReceiver(mMultiSimConfigChangedReceiver, intentFilter);
}
/** Returns the terminal from the Reader name. */