diff options
author | Shuo Qian <shuoq@google.com> | 2021-04-01 00:03:49 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-04-01 00:03:49 +0000 |
commit | 674a3c79b2350631eee4cb6a455225d0a625baae (patch) | |
tree | 76b87933173d59240d96d51e8c3102e9dbb3ebdf | |
parent | 0fef164d3d1f5c4e963b8142c6f9bee2ab1becc8 (diff) | |
parent | 03c525a6bf7d8bff8eb6cc05e9b6adb963accb29 (diff) | |
download | voip-674a3c79b2350631eee4cb6a455225d0a625baae.tar.gz |
Add permission for the broadcast intent with SIP profiles for security purpose. am: 0e459673aa am: 4ba90c33b5 am: 03c525a6bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/net/voip/+/13787771
Change-Id: I21cf79b05f171e5d3ac697247b5fa16e68d48ff6
-rw-r--r-- | src/java/com/android/server/sip/SipService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/android/server/sip/SipService.java b/src/java/com/android/server/sip/SipService.java index d14a8d6..5328801 100644 --- a/src/java/com/android/server/sip/SipService.java +++ b/src/java/com/android/server/sip/SipService.java @@ -342,7 +342,7 @@ public final class SipService extends ISipService.Stub { if (DBG) log("notify: profile added: " + localProfile); Intent intent = new Intent(SipManager.ACTION_SIP_ADD_PHONE); intent.putExtra(SipManager.EXTRA_LOCAL_URI, localProfile.getUriString()); - mContext.sendBroadcast(intent); + mContext.sendBroadcast(intent, android.Manifest.permission.USE_SIP); if (mSipGroups.size() == 1) { registerReceivers(); } @@ -352,7 +352,7 @@ public final class SipService extends ISipService.Stub { if (DBG) log("notify: profile removed: " + localProfile); Intent intent = new Intent(SipManager.ACTION_SIP_REMOVE_PHONE); intent.putExtra(SipManager.EXTRA_LOCAL_URI, localProfile.getUriString()); - mContext.sendBroadcast(intent); + mContext.sendBroadcast(intent, android.Manifest.permission.USE_SIP); if (mSipGroups.size() == 0) { unregisterReceivers(); } |