Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74a4a5fe authored by Gil Cukierman's avatar Gil Cukierman
Browse files

Return Bool From isNullCipherAndIntegrityPreferenceEnabled

Test: m
Bug: 262063728
Change-Id: Id383a0d8c12b50bb2f10eb1408b068af8d649a48
parent fac035b2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -17808,11 +17808,11 @@ public class TelephonyManager {
     * @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 @@ public class TelephonyManager {
            Rlog.e(TAG, "isNullCipherAndIntegrityPreferenceEnabled RemoteException", ex);
            ex.rethrowFromSystemServer();
        }
        return true;
    }
}