Android 17 (QPR2) (AOSP experimental) introduces a new timeline UI for modem-detected cellular threats. This feature allows modems to report detected threats and mitigations to the OS, surfacing this data to the user through the Safety Center.
Users can view the history of security events in a new "Security Timeline" located under Settings > Security & Privacy > Network security > Mobile network security.
Key functionalities
- Threat reporting: Modems can report cellular security events and actions taken to protect the user (for example, detecting Fake Base Stations (FBS) or SMS-specific threats).
- Framework updates: Introduces
@SystemApiandroid.telephony.NetworkSecurityEvent, a parcelable class encapsulating details about a detected threat, mitigation status, and reasons for the alert. - Telephony updates: Adds
getSupportedNetworkAlertCategoriesinTelephonyManagerand a newNetworkSecurityEventsListenerinTelephonyCallback(with theEVENT_NETWORK_SECURITY_EVENTSconstant). - Intents: Introduces
EXTRA_NETWORK_SECURITY_EVENTto attach security metadata to incoming SMS broadcasts. - Flagged API: All framework APIs are guarded by the
@FlaggedApi(Flags.FLAG_NETWORK_SECURITY_EVENT_INDICATIONS)feature flag. - HAL updates: Adds
onNetworkSecurityEventsinIRadioNetworkIndication.aidl, andgetSupportedNetworkAlertCategoriesinIRadioNetwork.aidl.
Implementation
For this feature to work, modem manufacturers must update the logic to detect
threat categories (for example, DOWNGRADE, IMPRISONMENT, DOS_NETWORK,
ATTRACTIVE_CELL, JAMMING, LOCATION_TRACKING, and UNAUTH_SMS) and report
them using the AlertCategory, AlertStatus, and ReasonCode enums.
- Network indications: Modems must implement the new
IRadioNetworkIndication.onNetworkSecurityEventsHAL to asynchronously report cellular security events to the framework. - Alert categories: Partners must implement
IRadioNetwork.getSupportedNetworkAlertCategories(in int serial)so the framework knows which alert categories the modem detects. - SMS threats: For SMS-specific threats, partners must update
IRadioMessagingIndicationto implementnewSecureSms.
When the modem detects a security threat or anomalous behavior, it signals the
host processor using the Radio Interface Layer Daemon (rild) using unsolicited
responses (such as RIL_UNSOL_RESPONSE_NEW_SECURE_SMS). The rild translates
this into the defined AIDL HAL interface call.