Return Bool From isNullCipherAndIntegrityPreferenceEnabled
Test: m
Bug: 262063728
Change-Id: Id383a0d8c12b50bb2f10eb1408b068af8d649a48
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 09daa2d..6985c84 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;
}
}