PreviousInstallsLogCollector

Advanced (opt-in) collector for SignalCategory.PreviousInstallsLog.

Demonstrates how an app can persist re-identification state across sessions by storing a first-seen timestamp and an incrementing launch counter in (preferably encrypted) shared preferences. Reading these on later runs shows how local persistence enables tracking.

Privacy: high — a stable, self-created local identifier survives app restarts (and, depending on backup settings, potentially reinstalls), acting as a re-identification aid.

APIs used: EncryptedSharedPreferences (falling back to plain SharedPreferences).

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val category: SignalCategory

Functions

Link copied to clipboard
open suspend override fun collect(context: Context): List<FingerprintSignal>

Reads/updates persisted install metadata and returns the resulting signals.