[log] debug getDataNetworkType
Fix: 400506639
Test: basic voice call
Flag: EXEMPT log only
Change-Id: I6a485b51064bf6307dafb853492c9484925ca0a0
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 0548aa5..5a080aa 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -5828,6 +5828,7 @@
mApp, functionName)) {
if (!TelephonyPermissions.checkCallingOrSelfReadPhoneState(
mApp, subId, callingPackage, callingFeatureId, functionName)) {
+ loge("getDataNetworkTypeForSubscriber: missing permission " + callingPackage);
return TelephonyManager.NETWORK_TYPE_UNKNOWN;
}
}
@@ -5841,6 +5842,7 @@
if (phone != null) {
return phone.getServiceState().getDataNetworkType();
} else {
+ loge("getDataNetworkTypeForSubscriber: phone is null for sub " + subId);
return TelephonyManager.NETWORK_TYPE_UNKNOWN;
}
} finally {