Skip to content

Choose a tag to compare

@venshine venshine released this 10 Nov 07:23
· 3 commits to master since this release

AppUninstall 2.0 turns the project into a runnable set of modern ways to detect that your app was uninstalled. Android never runs your code at the moment of uninstall, so every approach here works after the fact.

Changes

  • Sample app (com.wx.appuninstall): FCM registration token, Firebase Analytics app_remove, a WorkManager heartbeat, and a comparison page with the official source for each claim.
  • Observer app (com.wx.appuninstall.observer): listens for another package being removed and tells uninstall, archive and update apart.
  • Local server (server/, Kotlin/JVM, no third-party dependencies): token registry, heartbeat timeout, and an FCM HTTP v1 probe that treats UNREGISTERED as uninstalled.
  • Legacy demo: the 2016 fork + inotify demo moved to legacy/ (application id com.wx.appuninstall.legacy). It is kept for reference; on modern Android, use the approaches above.

Observed on a real device

Tested on a real device running Android 17.

  • The first FCM probe after uninstall, about 26 seconds later, already returned UNREGISTERED.
  • With the observer in the background, the system held back PACKAGE_FULLY_REMOVED, so nothing was recorded. With the observer in the foreground, the removal was recorded in the same second.

Download

  • AppUninstall-sample-2.0.apk: the sample app. It is built without google-services.json, so FCM and Analytics show "not configured". To try them, build from source with your own Firebase project (see the README).
  • AppUninstall-observer-2.0.apk: the observer app.
  • AppUninstall-legacy-2.0.apk: the 2016 demo.

All three need Android 6.0 (API 23) or later and are signed with the same debug certificate as 1.1.