Downgrading Capture app under Android 12 blocked

Hi,

I finally figured out a way around this block. NOTE here that I initially uninstalled DHIS2 Capture the usual way: by holding the icon until you get those small options, one of them being uninstall. There must be something wrong with that method (uninstall instructions bundled with the package???).

To fix the “invalid package” block, I did the following:

  1. I reinstalled 2.6.2, and played around with it (logged in etc).

  2. I reset the Capture app

  3. Went to settings → apps, open the DHIS2 training app, and deleted all data plus the cache.

  4. I then uninstalled the app itself from the Settings->Apps location.

  5. I then downloaded 2.5.2 again, and it now installed.

I cannot be 100% sure, but it looks to me like some data or cache content are left behind when uninstalling the “normal” way - and that remnant subsequently blocks any downgraded version from being installed.

I have not built installation packages for many years, and never on Android, but the way it was done in the elder days was to include uninstallation instructions when the package was built (to e.g. delete data folders, clean out registry items, etc). So the Android team should carefully check if the .apk is missing some piece that result in the remnant being left behind…

Best regards
Calle

3 Likes