skip permission check for TelephonyManager API getMmsUserAgent
Bug: 133637995
Test: Manual test
Change-Id: I4d41e96de6662e9d16825554192114d74afb8551
(cherry picked from commit d5ca2d5418cd4e4cdbc268f8b8579e80cd89efce)
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index a2a7269..ed1de19 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -7066,4 +7066,28 @@
PickSmsSubscriptionActivity.SMS_PICK_FOR_MESSAGE);
mApp.startActivity(intent);
}
+
+ @Override
+ public String getMmsUAProfUrl(int subId) {
+ //TODO investigate if this API should require proper permission check in R b/133791609
+ final long identity = Binder.clearCallingIdentity();
+ try {
+ return SubscriptionManager.getResourcesForSubId(getDefaultPhone().getContext(), subId)
+ .getString(com.android.internal.R.string.config_mms_user_agent_profile_url);
+ } finally {
+ Binder.restoreCallingIdentity(identity);
+ }
+ }
+
+ @Override
+ public String getMmsUserAgent(int subId) {
+ //TODO investigate if this API should require proper permission check in R b/133791609
+ final long identity = Binder.clearCallingIdentity();
+ try {
+ return SubscriptionManager.getResourcesForSubId(getDefaultPhone().getContext(), subId)
+ .getString(com.android.internal.R.string.config_mms_user_agent);
+ } finally {
+ Binder.restoreCallingIdentity(identity);
+ }
+ }
}