When READ_PHONE_STATE permission (only required for mobileConnectionType field in Android) is not granted when DATA_CONNECTION_INFO bridge method is invoked, we are now returning a new PERMISSION_REQUIRED enum value inside mobileConnectionType field instead of returned a whole error response. This allow to avoid valuable information that can be used even when the user denies the permission.
When
READ_PHONE_STATE
permission (only required formobileConnectionType
field in Android) is not granted whenDATA_CONNECTION_INFO
bridge method is invoked, we are now returning a newPERMISSION_REQUIRED
enum value insidemobileConnectionType
field instead of returned a whole error response. This allow to avoid valuable information that can be used even when the user denies the permission.