Android Auto Detection

Detection of Android Auto connection is useful fine-tuning information for possible screen sharing detection observer notifications. A new connection to Android Auto typically causes multiple virtual displays to be added (and some to be removed immediately). This triggers screen sharing detection with transient changes.

Android Auto connection is reported as part of screen sharing detection. It’s present in both - the screen sharing callback data of the RaspObserver and in the manually obtained screen sharing detection data. Changes to Android Auto connection also trigger screen sharing callback of the RaspObserver.

The Android Auto detection data can also be independently queried by triggering a manual check.

Triggering a Manual Check

Android Auto detection check can be triggered manually in RaspManager. The method getAndroidAutoDetection() provides a detailed answer.

val androidAutoDetection: AndroidAutoDetection = raspManager.getAndroidAutoDetection()

The AndroidAutoDetection data class contains the following properties:

Property Description
connection: AndroidAutoConnection contains the type of Android Auto connection.
isAndroidAutoConnected: Boolean indicates whether Android Auto is connected.

Available values of AndroidAutoConnection:

Value Description
NOT_CONNECTED indicates that the device is not connected to any car head unit.
CONNECTED_NATIVE indicates that the app is natively running on a head unit (Android Automotive OS).
CONNECTED_PROJECTION indicates that the device is connected to a car head unit by projecting to it.

More information on general RASP feature configuration and usage can be found in this overview.

Last updated on Apr 01, 2025 (08:56) View product
Search

develop

Malwarelytics for Android