Class ShadowCarrierConfigManager

    • Constructor Detail

      • ShadowCarrierConfigManager

        public ShadowCarrierConfigManager()
    • Method Detail

      • setReadPhoneStatePermission

        public void setReadPhoneStatePermission​(boolean readPhoneStatePermission)
      • setConfigForSubId

        public void setConfigForSubId​(int subId,
                                      PersistableBundle config)
        Sets that the config PersistableBundle for a particular subId; controls the return value of CarrierConfigManager#getConfigForSubId().
      • overrideConfig

        @Implementation(minSdk=29)
        @HiddenApi
        protected void overrideConfig​(int subId,
                                      PersistableBundle config)
        Overrides the carrier config of the provided subscription ID with the provided values.

        This method will NOT check if overrideValues contains valid values for specified config keys.