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

Skip to content
Commit f76d189a authored by Gil Cukierman's avatar Gil Cukierman
Browse files

Fix EVENT_SET_NULL_CIPHER_AND_INTEGRITY_DONE Error Handling

The Require Encryption toggle was appearing in the Settings
app because `mIsNullCipherAndIntegritySupported` was being
set to `true` when an exception other than REQUEST_NOT_SUPPORTED
was returned. The code was operating under the false assumption
that the only exception returned when a modem operation is not
supported was REQUEST_NOT_SUPPORTED, but other exceptions are
possible, like RADIO_NOT_AVAILABLE.

This change enforces that the only way to set
`mIsNullCipherAndIntegritySupported` to `true` is by receiving
an error free response from the RIL.

Bug: 294037720
Test: atest GsmCdmaPhoneTest
Change-Id: Ic5ffb09e6a30c42e594ff3bfea29f6c04f8b949d
parent 2c0f49f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment