Loading flags/network.aconfig +0 −9 Original line number Diff line number Diff line package: "com.android.internal.telephony.flags" container: "system" # OWNER=cukie TARGET=24Q3 flag { name: "enable_modem_cipher_transparency" is_exported: true namespace: "telephony" description: "Guards APIs for enabling and disabling modem cipher transparency." bug: "283336425" } # OWNER=cukie TARGET=24Q3 flag { name: "enable_modem_cipher_transparency_unsol_events" Loading src/java/com/android/internal/telephony/GsmCdmaPhone.java +0 −5 Original line number Diff line number Diff line Loading @@ -5443,11 +5443,6 @@ public class GsmCdmaPhone extends Phone { @Override public void handleNullCipherNotificationPreferenceChanged() { if (!mFeatureFlags.enableModemCipherTransparency()) { logi("Not handling null cipher notification preference change. Feature flag " + "enable_modem_cipher_transparency disabled"); return; } boolean prefEnabled = getNullCipherNotificationsPreferenceEnabled(); // The notifier is tied to handling unsolicited updates from the modem, not the Loading tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java +0 −26 Original line number Diff line number Diff line Loading @@ -2992,15 +2992,6 @@ public class GsmCdmaPhoneTest extends TelephonyTest { assertTrue(phoneUT.isIdentifierDisclosureTransparencySupported()); } @Test public void testSecurityAlgorithmUpdateFlagOff() { when(mFeatureFlags.enableModemCipherTransparency()).thenReturn(false); makeNewPhoneUT(); verify(mMockCi, never()).registerForSecurityAlgorithmUpdates(any(), anyInt(), any()); } @Test public void testSecurityAlgorithmUpdateFlagOn() { when(mFeatureFlags.enableModemCipherTransparencyUnsolEvents()).thenReturn(true); Loading Loading @@ -3091,22 +3082,8 @@ public class GsmCdmaPhoneTest extends TelephonyTest { verify(mNullCipherNotifier, times(1)).setSubscriptionMapping(eq(mContext), eq(0), eq(-1)); } @Test public void testNullCipherNotification_noModemCallOnRadioAvailable_FlagOff() { when(mFeatureFlags.enableModemCipherTransparency()).thenReturn(false); GsmCdmaPhone phoneUT = makeNewPhoneUT(); assertFalse(phoneUT.isNullCipherNotificationSupported()); sendRadioAvailableToPhone(phoneUT); verify(mMockCi, never()).setSecurityAlgorithmsUpdatedEnabled(anyBoolean(), any(Message.class)); assertFalse(phoneUT.isNullCipherNotificationSupported()); } @Test public void testNullCipherNotification_unsupportedByModemOnRadioAvailable() { when(mFeatureFlags.enableModemCipherTransparency()).thenReturn(true); GsmCdmaPhone phoneUT = makeNewPhoneUT(); assertFalse(phoneUT.isNullCipherNotificationSupported()); Loading @@ -3120,7 +3097,6 @@ public class GsmCdmaPhoneTest extends TelephonyTest { @Test public void testNullCipherNotification_supportedByModem() { when(mFeatureFlags.enableModemCipherTransparency()).thenReturn(true); GsmCdmaPhone phoneUT = makeNewPhoneUT(); assertFalse(phoneUT.isNullCipherNotificationSupported()); Loading @@ -3134,7 +3110,6 @@ public class GsmCdmaPhoneTest extends TelephonyTest { @Test public void testNullCipherNotification_preferenceEnabled() { when(mFeatureFlags.enableModemCipherTransparency()).thenReturn(true); when(mFeatureFlags.enableModemCipherTransparencyUnsolEvents()).thenReturn(true); GsmCdmaPhone phoneUT = makeNewPhoneUT(); Loading @@ -3148,7 +3123,6 @@ public class GsmCdmaPhoneTest extends TelephonyTest { @Test public void testNullCipherNotification_preferenceDisabled() { when(mFeatureFlags.enableModemCipherTransparency()).thenReturn(true); when(mFeatureFlags.enableModemCipherTransparencyUnsolEvents()).thenReturn(true); GsmCdmaPhone phoneUT = makeNewPhoneUT(); Loading Loading
flags/network.aconfig +0 −9 Original line number Diff line number Diff line package: "com.android.internal.telephony.flags" container: "system" # OWNER=cukie TARGET=24Q3 flag { name: "enable_modem_cipher_transparency" is_exported: true namespace: "telephony" description: "Guards APIs for enabling and disabling modem cipher transparency." bug: "283336425" } # OWNER=cukie TARGET=24Q3 flag { name: "enable_modem_cipher_transparency_unsol_events" Loading
src/java/com/android/internal/telephony/GsmCdmaPhone.java +0 −5 Original line number Diff line number Diff line Loading @@ -5443,11 +5443,6 @@ public class GsmCdmaPhone extends Phone { @Override public void handleNullCipherNotificationPreferenceChanged() { if (!mFeatureFlags.enableModemCipherTransparency()) { logi("Not handling null cipher notification preference change. Feature flag " + "enable_modem_cipher_transparency disabled"); return; } boolean prefEnabled = getNullCipherNotificationsPreferenceEnabled(); // The notifier is tied to handling unsolicited updates from the modem, not the Loading
tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java +0 −26 Original line number Diff line number Diff line Loading @@ -2992,15 +2992,6 @@ public class GsmCdmaPhoneTest extends TelephonyTest { assertTrue(phoneUT.isIdentifierDisclosureTransparencySupported()); } @Test public void testSecurityAlgorithmUpdateFlagOff() { when(mFeatureFlags.enableModemCipherTransparency()).thenReturn(false); makeNewPhoneUT(); verify(mMockCi, never()).registerForSecurityAlgorithmUpdates(any(), anyInt(), any()); } @Test public void testSecurityAlgorithmUpdateFlagOn() { when(mFeatureFlags.enableModemCipherTransparencyUnsolEvents()).thenReturn(true); Loading Loading @@ -3091,22 +3082,8 @@ public class GsmCdmaPhoneTest extends TelephonyTest { verify(mNullCipherNotifier, times(1)).setSubscriptionMapping(eq(mContext), eq(0), eq(-1)); } @Test public void testNullCipherNotification_noModemCallOnRadioAvailable_FlagOff() { when(mFeatureFlags.enableModemCipherTransparency()).thenReturn(false); GsmCdmaPhone phoneUT = makeNewPhoneUT(); assertFalse(phoneUT.isNullCipherNotificationSupported()); sendRadioAvailableToPhone(phoneUT); verify(mMockCi, never()).setSecurityAlgorithmsUpdatedEnabled(anyBoolean(), any(Message.class)); assertFalse(phoneUT.isNullCipherNotificationSupported()); } @Test public void testNullCipherNotification_unsupportedByModemOnRadioAvailable() { when(mFeatureFlags.enableModemCipherTransparency()).thenReturn(true); GsmCdmaPhone phoneUT = makeNewPhoneUT(); assertFalse(phoneUT.isNullCipherNotificationSupported()); Loading @@ -3120,7 +3097,6 @@ public class GsmCdmaPhoneTest extends TelephonyTest { @Test public void testNullCipherNotification_supportedByModem() { when(mFeatureFlags.enableModemCipherTransparency()).thenReturn(true); GsmCdmaPhone phoneUT = makeNewPhoneUT(); assertFalse(phoneUT.isNullCipherNotificationSupported()); Loading @@ -3134,7 +3110,6 @@ public class GsmCdmaPhoneTest extends TelephonyTest { @Test public void testNullCipherNotification_preferenceEnabled() { when(mFeatureFlags.enableModemCipherTransparency()).thenReturn(true); when(mFeatureFlags.enableModemCipherTransparencyUnsolEvents()).thenReturn(true); GsmCdmaPhone phoneUT = makeNewPhoneUT(); Loading @@ -3148,7 +3123,6 @@ public class GsmCdmaPhoneTest extends TelephonyTest { @Test public void testNullCipherNotification_preferenceDisabled() { when(mFeatureFlags.enableModemCipherTransparency()).thenReturn(true); when(mFeatureFlags.enableModemCipherTransparencyUnsolEvents()).thenReturn(true); GsmCdmaPhone phoneUT = makeNewPhoneUT(); Loading