Skip to content
Snippets Groups Projects
  1. Dec 19, 2023
  2. Nov 10, 2023
  3. Oct 20, 2023
  4. Oct 19, 2023
  5. Oct 11, 2023
    • Hunter Knepshield's avatar
      Add BarringInfo.BarringServiceInfo#toString · 28c8d503
      Hunter Knepshield authored
      This is missing currently, so we get memory addresses instead of useful information in e.g. TelephonyRegistry dumpsys.
      
      Change-Id: I6c685e9015f666da642d970a37b2f3361dfb41a8
      Tested: make + `dumpsys telephony.registry` on device
      Bug: 304400868
      28c8d503
  6. Sep 14, 2023
  7. Aug 31, 2023
    • Sarah Chin's avatar
      Change default for NR advanced ratcheting config · 4a34c9c7
      Sarah Chin authored
      Only 1 carrier requires memory retention based on the pcell.
      Change this config to be false by default so most carriers
      will use the timer to extend NR advanced instead of pcell.
      
      Test: atest NetworkTypeControllerTest
      Test: manual basic functionality tests and verify no regressions
      Bug: 294088690
      Bug: 297307822
      Change-Id: I3be9e784607923ff132f58942490e1be3b6757ea
      4a34c9c7
  8. Aug 25, 2023
  9. Aug 22, 2023
  10. Aug 04, 2023
    • Jack Yu's avatar
      Fixed subscription database cache out of sync · 78fc83e5
      Jack Yu authored
      The subscription reloading from database could cause cache
      to be out-of-sync. Fixed by making reloading synchronous and
      only reload when necessary (e.g. Backup restore actually changes
      the database).
      
      Fix: 290295550
      Fix: 290176403
      Test: atest SubscriptionManagerServiceTest TelephonyProviderTests
      Test: Manually test backup/restore
      Test: Telephony basic functionality tests
      Test: Re-tested passed on b/290295550#comment23
      Test: Re-tested passed on b/290176403#comment28
      
      Merged-In: Ib818110a1f03536ed9082e779b3cc89e56608084
      Change-Id: Ib818110a1f03536ed9082e779b3cc89e56608084
      78fc83e5
  11. Aug 03, 2023
    • Benedict Wong's avatar
      Add AIDL methods to override carrier package · ce1a6de8
      Benedict Wong authored
      This change introduces a Carrier Service Package override, ensuring that
      CTS can export a CarrierService, and set itself as the carrier service.
      
      The requirement for the application to also be carrier-privileged still
      stands, but omits the SIM-certificate-match requirement, instead
      allowing carrierConfig based certificates + carrier service package
      override as a sufficient gate (which critically need to both be doable
      with the CTS Shell permission identity)
      
      Bug: 266904760
      Test: Manually tested with a demo CTS build, will be used for Core
            Networking CTS tests
      Change-Id: I9c31e19dd122123e8e102c901efaa99b2c729635
      Merged-In: I9c31e19dd122123e8e102c901efaa99b2c729635
      (cherry picked from commit 7e6571f1)
      ce1a6de8
  12. Aug 02, 2023
    • rambowang's avatar
      Expose two carrier configs for additional call settings · 1ebc1139
      rambowang authored
      Expose KEY_ADDITIONAL_SETTINGS_CALL_WAITING_VISIBILITY_BOOL and
      KEY_ADDITIONAL_SETTINGS_CALLER_ID_VISIBILITY_BOOL so carriers
      that don't support the feature can override them to false
      to hide the feature in calling addtional settings.
      
      Bug: 266479292
      Test: m -j
      Change-Id: I9ae635c051c0f9e180c36aa1725d0f058f1fd70d
      Merged-In: I9ae635c051c0f9e180c36aa1725d0f058f1fd70d
      (cherry picked from commit c86c69b1)
      1ebc1139
    • rambowang's avatar
      PhysicalChannelConfig: deprecate cell connection status enums · ee1c07cb
      rambowang authored
      These enums have duplication definitions as those defined in
      CellInfo. Keep CellInfo as the single source of truth to
      keep code healthy.
      
      Bug: 72993578
      Test: atest PhysicalChannelConfigTest
      Change-Id: I28d8a471b1da95c9eb59cddfcd1d932364a41c50
      Merged-In: I28d8a471b1da95c9eb59cddfcd1d932364a41c50
      (cherry picked from commit 13951afe)
      ee1c07cb
  13. Jul 29, 2023
    • Jack Yu's avatar
      Removed the obsolete code · 0898f955
      Jack Yu authored
      Removed the incomplete APIs and re-directed to the
      similar APIs.
      
      Fix: 262591408
      Test: atest SubscriptionManagerTest
      Merged-In: I1e0dd566114550099de3e0d0eedfcab79c4e54b6
      Change-Id: I1e0dd566114550099de3e0d0eedfcab79c4e54b6
      0898f955
  14. Jul 28, 2023
  15. Jul 27, 2023
    • Jack Yu's avatar
      Cleaned up the usage of SubscriptionManger.getSubId · faa35df7
      Jack Yu authored
      Cleaned up the old APIs and replaced with the new APIs.
      
      Bug: 270094276
      Test: Boot up + Basic phone funcationality tests
      Change-Id: Id372018a437e72c1b5874dec620b5158337bf43c
      Merged-In: Id372018a437e72c1b5874dec620b5158337bf43c
      faa35df7
  16. Jul 26, 2023
    • Jack Yu's avatar
      Correctly support restoring SIM specific settings · 17c03e01
      Jack Yu authored
      After restoring the data, we need to update the subscription
      database cache.
      
      Fix: 269062965
      Test: atest android.telephony.cts.SubscriptionManagerTest#testRestoreAllSimSpecificSettingsFromBackup
      Test: Boot up + Basic phone functionality tests
      Merged-In: I2f8cb6418ee661a3cd8c02e3db6733cb12817d01
      Change-Id: I2f8cb6418ee661a3cd8c02e3db6733cb12817d01
      17c03e01
  17. Jul 20, 2023
    • Jack Yu's avatar
      Fixed subscription database cache out of sync · 7542cfca
      Jack Yu authored
      The subscription reloading from database could cause cache
      to be out-of-sync. Fixed by making reloading synchronous and
      only reload when necessary (e.g. Backup restore actually changes
      the database).
      
      Fix: 290295550
      Test: atest SubscriptionManagerServiceTest TelephonyProviderTests
      Test: Manually test backup/restore
      Test: Telephony basic functionality tests
      Test: Re-tested passed on b/290295550#comment#23
      
      Change-Id: Ib818110a1f03536ed9082e779b3cc89e56608084
      7542cfca
  18. Jul 16, 2023
    • Sarah Chin's avatar
      Slice upsell fail if notifications are disabled · 2a05860b
      Sarah Chin authored
      If notifications are disabled for the app or channel,
      fail the purchase request and notify SlicePurchaseController.
      Create a new PURCHASE_PREMIUM_CAPABILITY_RESULT_USER_DISABLED result for
      this scenario.
      
      Not a clean CP since API is added @hide
      
      Test: atest CarrierDefaultAppTest
      Test: manual verify failure when notifications are disabled
      Test: manual verify no regressions of other behavior
      Bug: 258083232
      Change-Id: I4a3d2b09320edfa232cf87e6235371dc0d84c224
      Merged-In: I4a3d2b09320edfa232cf87e6235371dc0d84c224
      2a05860b
  19. Jul 14, 2023
    • Thomas Nguyen's avatar
      Add the API setAvailableServices and some overlay satellite configs · 5e54ebcc
      Thomas Nguyen authored
      Bug: 287504843
      Test: SMS, MMS, call with live network.
      atest com.android.internal.telephony.ServiceStateTrackerTest
      atest com.android.internal.telephony.satellite.SatelliteControllerTest
      atest com.android.internal.telephony.satellite.SatelliteServiceUtilsTest
      atest com.android.internal.telephony.satellite.SatelliteSOSMessageRecommenderTest
      atest android.telephony.cts.CarrierConfigManagerTest
      
      Change-Id: I737cb77937fc19c047ef04010c5ca9397bbc45a7
      Merged-In: I737cb77937fc19c047ef04010c5ca9397bbc45a7
      5e54ebcc
  20. Jul 10, 2023
  21. Jul 04, 2023
    • joonhunshin's avatar
      add KEY_IGNORE_GLOBAL_PHONE_NUMBER_FORMAT_BOOL · 90ceee30
      joonhunshin authored
      add KEY_IGNORE_GLOBAL_PHONE_NUMBER_FORMAT_BOOL to extract phone number
      from IMS associated uri when the carrier does not support global phone
      number format
      
      Bug: 283093635
      Test: atest ImsPhoneTest, ImsServiceTest
      Test: KR U+ live network test
      Test: AT&T live network test
      Change-Id: I320511e9ff23a72f9647f87748954e1171d45d6a
      90ceee30
  22. Jun 23, 2023
    • Ling Ma's avatar
      Add enterprise to metered APN · b2f9a4ef
      Ling Ma authored
      In consistent with S, enterprise APN type is considered metered, move
      from hard coded Dctracker setup evaluation to the config default value.
      
      Bug: 284152056
      Test: daily testing (b/288038359 : p23 + b/288038354: P22 )
      Change-Id: I4d71f5f260d131fe6f6341c13c2e3e7628b3f740
      Merged-In: I4d71f5f260d131fe6f6341c13c2e3e7628b3f740
      b2f9a4ef
  23. Jun 21, 2023
    • Ling Ma's avatar
      Add enterprise to metered APN · c7b1211b
      Ling Ma authored
      In consistent with S, enterprise APN type is considered metered, move
      from hard coded Dctracker setup evaluation to the config default value.
      
      Bug: 284152056
      Test: daily testing (b/288038359 : p23 + b/288038354: P22 )
      Change-Id: I4d71f5f260d131fe6f6341c13c2e3e7628b3f740
      c7b1211b
  24. Jun 15, 2023
    • Ling Ma's avatar
      Configure auto data switch score table · 9aeeb52a
      Ling Ma authored
      Configure a table to switch mobile data base on RAT and signal strength.
      
      Bug: 260928808
      Test: phone call + data browsing
      Test: basic testing b/286044642 and b/286043947
      Change-Id: Ibda3ff35ba5f590b48f61f2f29e2b75aa8a1c0b5
      9aeeb52a
  25. Jun 06, 2023
  26. Jun 01, 2023
    • chiachangwang's avatar
      Update default value of KEY_PREFERRED_IKE_PROTOCOL_INT · 437f84c6
      chiachangwang authored
      Some carriers' networks not support IPv6 very well. The existing
      default value(0) will use IPv6 if networks support IPv6. Update
      the default value to an invalid value so that the code that uses
      the key could tell and fall into a reasonable case.
      
      Bug: 269714970
      Bug: 284246686
      Test: m ; flash and check the value
      Change-Id: Ie2b42e69702609b132acd6bd087292bf9df365cb
      437f84c6
  27. May 31, 2023
    • Aishwarya Mallampati's avatar
      DO NOT MERGE Grant carrier privileges if package has carrier config access. · 63e2afe3
      Aishwarya Mallampati authored
      TelephonyManager#hasCarrierPrivileges internally uses
      SubscriptionManager#canManageSubscription to decide whether to grant
      carrier privilege status to an app or not.
      SubscriptionManager#canManageSubscription returns true if caller APK's
      certificate matches with one of the mNativeAccessRules or
      mCarrierConfigAccessRules. This over-grants carrier privilege status
      to apps that only has mNativeAccessRules.
      Carrier privilege status should
      be granted to the caller APK only if it's certificate matches with one
      of mCarrierConfigAccessRules.
      Replaced SubscriptionManager#canManageSubscription with
      PhoneInterfaceManager#hasCarrierConfigAccess which returns true only if
      caller APK certificates matches with one of mCarrierConfigAccessRules of
      the given subscription.
      
      Bug: 226593252
      Test: Manual Testing as explained in b/226593252#comment51
            atest CtsTelephonyTestCases
            Flashed build on raven-userdebug and performed basic
            funtionality tests
      
      Change-Id: I662064529d2a9348f395fe3b541366de8bc2fe7d
      63e2afe3
  28. May 25, 2023
    • Aishwarya Mallampati's avatar
      DO NOT MERGE Grant carrier privileges if package has carrier config access. · 7f266ec1
      Aishwarya Mallampati authored
      TelephonyManager#hasCarrierPrivileges internally uses
      SubscriptionManager#canManageSubscription to decide whether to grant
      carrier privilege status to an app or not.
      SubscriptionManager#canManageSubscription returns true if caller APK's
      certificate matches with one of the mNativeAccessRules or
      mCarrierConfigAccessRules. This over-grants carrier privilege status
      to apps that only has mNativeAccessRules.
      Carrier privilege status should
      be granted to the caller APK only if it's certificate matches with one
      of mCarrierConfigAccessRules.
      Replaced SubscriptionManager#canManageSubscription with
      PhoneInterfaceManager#hasCarrierConfigAccess which returns true only if
      caller APK certificates matches with one of mCarrierConfigAccessRules of
      the given subscription.
      
      Bug: 226593252
      Test: Manual Testing as explained in b/226593252#comment51
            atest CtsTelephonyTestCases
            Flashed build on raven-userdebug and performed basic
            funtionality tests
      
      Change-Id: I662064529d2a9348f395fe3b541366de8bc2fe7d
      7f266ec1
    • Aishwarya Mallampati's avatar
      DO NOT MERGE Grant carrier privileges if package has carrier config access. · e46bce07
      Aishwarya Mallampati authored
      TelephonyManager#hasCarrierPrivileges internally uses
      SubscriptionManager#canManageSubscription to decide whether to grant
      carrier privilege status to an app or not.
      SubscriptionManager#canManageSubscription returns true if caller APK's
      certificate matches with one of the mNativeAccessRules or
      mCarrierConfigAccessRules. This over-grants carrier privilege status
      to apps that only has mNativeAccessRules.
      Carrier privilege status should
      be granted to the caller APK only if it's certificate matches with one
      of mCarrierConfigAccessRules.
      Replaced SubscriptionManager#canManageSubscription with
      PhoneInterfaceManager#hasCarrierConfigAccess which returns true only if
      caller APK certificates matches with one of mCarrierConfigAccessRules of
      the given subscription.
      
      Bug: 226593252
      Test: Manual Testing as explained in b/226593252#comment51
            atest CtsTelephonyTestCases
            Flashed build on raven-userdebug and performed basic
            funtionality tests
      
      Change-Id: I662064529d2a9348f395fe3b541366de8bc2fe7d
      e46bce07
    • Aishwarya Mallampati's avatar
      DO NOT MERGE Grant carrier privileges if package has carrier config access. · 8b9fcf30
      Aishwarya Mallampati authored
      TelephonyManager#hasCarrierPrivileges internally uses
      SubscriptionManager#canManageSubscription to decide whether to grant
      carrier privilege status to an app or not.
      SubscriptionManager#canManageSubscription returns true if caller APK's
      certificate matches with one of the mNativeAccessRules or
      mCarrierConfigAccessRules. This over-grants carrier privilege status
      to apps that only has mNativeAccessRules.
      Carrier privilege status should
      be granted to the caller APK only if it's certificate matches with one
      of mCarrierConfigAccessRules.
      Replaced SubscriptionManager#canManageSubscription with
      PhoneInterfaceManager#hasCarrierConfigAccess which returns true only if
      caller APK certificates matches with one of mCarrierConfigAccessRules of
      the given subscription.
      
      Bug: 226593252
      Test: Manual Testing as explained in b/226593252#comment51
            atest CtsTelephonyTestCases
            Flashed build on raven-userdebug and performed basic
            funtionality tests
      
      Change-Id: I662064529d2a9348f395fe3b541366de8bc2fe7d
      8b9fcf30
    • Aishwarya Mallampati's avatar
      DO NOT MERGE Grant carrier privileges if package has carrier config access. · fc32ff6c
      Aishwarya Mallampati authored
      TelephonyManager#hasCarrierPrivileges internally uses
      SubscriptionManager#canManageSubscription to decide whether to grant
      carrier privilege status to an app or not.
      SubscriptionManager#canManageSubscription returns true if caller APK's
      certificate matches with one of the mNativeAccessRules or
      mCarrierConfigAccessRules. This over-grants carrier privilege status
      to apps that only has mNativeAccessRules.
      Carrier privilege status should
      be granted to the caller APK only if it's certificate matches with one
      of mCarrierConfigAccessRules.
      Replaced SubscriptionManager#canManageSubscription with
      PhoneInterfaceManager#hasCarrierConfigAccess which returns true only if
      caller APK certificates matches with one of mCarrierConfigAccessRules of
      the given subscription.
      
      Bug: 226593252
      Test: Manual Testing as explained in b/226593252#comment51
            atest CtsTelephonyTestCases
            Flashed build on raven-userdebug and performed basic
            funtionality tests
      
      Change-Id: I662064529d2a9348f395fe3b541366de8bc2fe7d
      fc32ff6c
  29. May 12, 2023
  30. May 10, 2023
  31. May 09, 2023
  32. May 04, 2023
  33. May 01, 2023
    • Sarah Chin's avatar
      Add new disconnect cause for satellite enabled · cf46f9bb
      Sarah Chin authored
      Test: unit tests, CTS, verify voice call on live network
      Bug: 278578254
      Change-Id: I03d9b3b96bc3a813fda1e72210573a64463ee582
      cf46f9bb
    • Megha Patil's avatar
      Make SATELLITE_MODE_ENABLED Settings key as readable · 9644782a
      Megha Patil authored
      - SATELLITE_MODE_ENABLED is made readable inorder for CTS
      to access
      
      Bug: b/277057547
      
      Test: atest android.telephony.satellite.cts.SatelliteManagerTestOnMockService
      atest android.telephony.satellite.cts.SatelliteManagerTest
      
      Change-Id: I784a72f1b9e10fff7e3ae8b7e196e08fca365e75
      9644782a
  34. Apr 30, 2023
    • Hakjun Choi's avatar
      Satellite demo mode : Simulated sending and receiving · 5c8178d2
      Hakjun Choi authored
      Message sending/receive is considered successful when the device is towars satellite within a reasonable margin
      
      Bug: 276058936
      Test: cts/SatelliteManagerTest, SatelliteManagerTestOnMockService
      
      Change-Id: Icf82ade2bb18bce6d9561d023ebfde37065ba278
      5c8178d2
Loading