summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShuo Qian <shuoq@google.com>2021-04-01 02:55:26 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-01 02:55:26 +0000
commitefe08d42c249878c212d77df88accaeb8f014723 (patch)
tree7b969f27e09e497060485bcbc31b227a006f29f6
parent09aeb49964c4d0b08f07da80dfbeaf0be00f5a33 (diff)
parent0a8d32e972557ec5462ea112a32ebf48b84684bc (diff)
downloadvoip-efe08d42c249878c212d77df88accaeb8f014723.tar.gz
Add permission for the broadcast intent with SIP profiles for security purpose. am: 0e459673aa am: 4ba90c33b5 am: 03c525a6bf am: 674a3c79b2 am: 673e019acc am: b3af60eab5 am: 0a8d32e972
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/net/voip/+/13787771 Change-Id: I030b2d0c688324e2f8f6f32df0ade581220b8998
-rw-r--r--src/java/com/android/server/sip/SipService.java4
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 ca91943..c68508b 100644
--- a/src/java/com/android/server/sip/SipService.java
+++ b/src/java/com/android/server/sip/SipService.java
@@ -344,7 +344,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();
}
@@ -354,7 +354,7 @@ public final class SipService extends ISipService.Stub {
if (DBG) log("notify: profile removed: " + localProfile);
Intent intent = new Intent(SipManager.ACTION_SIP_REMOVE_PROFILE);
intent.putExtra(SipManager.EXTRA_LOCAL_URI, localProfile.getUriString());
- mContext.sendBroadcast(intent);
+ mContext.sendBroadcast(intent, android.Manifest.permission.USE_SIP);
if (mSipGroups.size() == 0) {
unregisterReceivers();
}