probeAdvertisingId

Probes the Google Advertising ID (GAID) via reflection into Play Services.

Privacy: high — the advertising id is a user-resettable but cross-app tracking identifier. The raw id is SHA-256 hashed before being surfaced; the limit-ad-tracking flag is also reported. Uses reflection so the app does not hard-depend on Play Services.

Return

Pair of (hashed advertising id, limit-ad-tracking enabled), or null if unavailable.

Parameters

context

Context used to query com.google.android.gms.ads.identifier.