Merge "Return Bool From isNullCipherAndIntegrityPreferenceEnabled"
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index c926a23..5d49413 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -17808,11 +17808,11 @@
* @hide
*/
@RequiresPermission(Manifest.permission.READ_PHONE_STATE)
- public void isNullCipherAndIntegrityPreferenceEnabled() {
+ public boolean isNullCipherAndIntegrityPreferenceEnabled() {
try {
ITelephony telephony = getITelephony();
if (telephony != null) {
- telephony.isNullCipherAndIntegrityPreferenceEnabled();
+ return telephony.isNullCipherAndIntegrityPreferenceEnabled();
} else {
throw new IllegalStateException("telephony service is null.");
}
@@ -17820,5 +17820,6 @@
Rlog.e(TAG, "isNullCipherAndIntegrityPreferenceEnabled RemoteException", ex);
ex.rethrowFromSystemServer();
}
+ return true;
}
}