Set Telecomm package on incoming call intent
Prevent other apps from intercepting the incoming call intent by
explicitly the Telecomm package name on the intent.
Bug: 16978437
Change-Id: Ie6dae654a5c9f02593d8c33d41e324d7845614aa
diff --git a/src/com/android/telecomm/TelecommServiceImpl.java b/src/com/android/telecomm/TelecommServiceImpl.java
index dc7050f..6e657d5 100644
--- a/src/com/android/telecomm/TelecommServiceImpl.java
+++ b/src/com/android/telecomm/TelecommServiceImpl.java
@@ -348,6 +348,7 @@
Binder.getCallingUid(), phoneAccountHandle.getComponentName().getPackageName());
Intent intent = new Intent(TelecommManager.ACTION_INCOMING_CALL);
+ intent.setPackage(TelecommApp.getInstance().getPackageName());
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra(TelecommManager.EXTRA_PHONE_ACCOUNT_HANDLE, phoneAccountHandle);
if (extras != null) {