Add prototype of canCallPhone with no feature ID.
Adding a prototype of canCallPhone which has no feature ID; this is to
fix the fact that a bunch of changes related to feature IDs were not
cherry-picked to AOSP and there is a huge multi-project batch of changes
in AOSP that can't merge as a result.
Test: Manual testing of change.
Test: Re-build cherry-picked code to verify resolution of build issue.
Bug: 62151032
Change-Id: I68e8a2bbfa241beac9ec2313081aa12a5afd9cd0
diff --git a/src/com/android/server/telecom/TelecomServiceImpl.java b/src/com/android/server/telecom/TelecomServiceImpl.java
index 21202bc..8e2dd04 100644
--- a/src/com/android/server/telecom/TelecomServiceImpl.java
+++ b/src/com/android/server/telecom/TelecomServiceImpl.java
@@ -2073,6 +2073,10 @@
return false;
}
+ private boolean canCallPhone(String callingPackage, String message) {
+ return canCallPhone(callingPackage, null /* featureId */, message);
+ }
+
private boolean canCallPhone(String callingPackage, String callingFeatureId, String message) {
// The system/default dialer can always read phone state - so that emergency calls will
// still work.