summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShuo Qian <shuoq@google.com>2021-04-01 01:13:15 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-01 01:13:15 +0000
commite93a0099aa7710350ed26c71173f15c2798a36ca (patch)
tree7ebd3a0e548f12c7d7af8c22c68170bdf674f2b8 /src
parentc6a5e51cfaa0f49450b336bbf395dec26e11a1c5 (diff)
parent673e019acce579b848321b144ae17510715f7d74 (diff)
downloadvoip-e93a0099aa7710350ed26c71173f15c2798a36ca.tar.gz
Add permission for the broadcast intent with SIP profiles for security purpose. am: 0e459673aa am: 4ba90c33b5 am: 03c525a6bf am: 674a3c79b2 am: 673e019acc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/net/voip/+/13787771 Change-Id: I85d809f054be9621dc0008af02bf916f35cc004f
Diffstat (limited to 'src')
-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();
}