Revert "Add required flag to registerReceiver calls in SecureElementService" 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)
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 @@ // 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. */