Persist enablement in setSecurityAlgorithmsUpdatedEnabled

Persist enablement in setSecurityAlgorithmsUpdatedEnabled to save state
in cuttlefish.

Bug: b/311219831
Test: m
Change-Id: Ia8ea1067281ba71b49c8d5899cd9b118e57d71db
diff --git a/guest/hals/ril/reference-libril/RefRadioNetwork.cpp b/guest/hals/ril/reference-libril/RefRadioNetwork.cpp
index 7f2442d..941cd24 100644
--- a/guest/hals/ril/reference-libril/RefRadioNetwork.cpp
+++ b/guest/hals/ril/reference-libril/RefRadioNetwork.cpp
@@ -91,24 +91,26 @@
 }
 
 ScopedAStatus RefRadioNetwork::setCellularIdentifierTransparencyEnabled(int32_t serial, bool enabled) {
-  mIsCellualIdentifierTransparencyEnabled = enabled;
-  respond()->setCellularIdentifierTransparencyEnabledResponse(responseInfo(serial));
-  return ok();
+    mIsCellularIdentifierTransparencyEnabled = enabled;
+    respond()->setCellularIdentifierTransparencyEnabledResponse(responseInfo(serial));
+    return ok();
 }
 
 ScopedAStatus RefRadioNetwork::isCellularIdentifierTransparencyEnabled(int32_t serial) {
-  respond()->isCellularIdentifierTransparencyEnabledResponse(
-      responseInfo(serial), mIsCellualIdentifierTransparencyEnabled);
-  return ok();
+    respond()->isCellularIdentifierTransparencyEnabledResponse(
+            responseInfo(serial), mIsCellularIdentifierTransparencyEnabled);
+    return ok();
 }
 
 ScopedAStatus RefRadioNetwork::setSecurityAlgorithmsUpdatedEnabled(int32_t serial, bool enabled) {
-  respond()->setSecurityAlgorithmsUpdatedEnabledResponse(responseInfo(serial));
-  return ok();
+    mIsCipheringTransparencyEnabled = enabled;
+    respond()->setSecurityAlgorithmsUpdatedEnabledResponse(responseInfo(serial));
+    return ok();
 }
 
 ScopedAStatus RefRadioNetwork::isSecurityAlgorithmsUpdatedEnabled(int32_t serial) {
-  respond()->isSecurityAlgorithmsUpdatedEnabledResponse(responseInfo(serial), true);
-  return ok();
+    respond()->isSecurityAlgorithmsUpdatedEnabledResponse(responseInfo(serial),
+                                                          mIsCipheringTransparencyEnabled);
+    return ok();
 }
 }  // namespace cf::ril
diff --git a/guest/hals/ril/reference-libril/RefRadioNetwork.h b/guest/hals/ril/reference-libril/RefRadioNetwork.h
index ce6b474..caf4e5e 100644
--- a/guest/hals/ril/reference-libril/RefRadioNetwork.h
+++ b/guest/hals/ril/reference-libril/RefRadioNetwork.h
@@ -23,7 +23,8 @@
     ::aidl::android::hardware::radio::network::UsageSetting mUsageSetting =
             ::aidl::android::hardware::radio::network::UsageSetting::VOICE_CENTRIC;
     // As per the specs, the default is true.
-    bool mIsCellualIdentifierTransparencyEnabled = true;
+    bool mIsCellularIdentifierTransparencyEnabled = true;
+    bool mIsCipheringTransparencyEnabled = true;
 
   public:
     using android::hardware::radio::compat::RadioNetwork::RadioNetwork;