"built for an older version of Android" warning flickers briefly
- Device OS and version: LineageOS 20 (Android 13)
- Device model/manufacturer: Fairphone 3+
- F-Droid version (in the About screen):
1.18.0
(basic) &1.19.0-alpha0-debug
(basic) - F-Droid privileged extension version (if installed): N/A
What did you do? (clear steps if possible)
Click on an app to view its details.
What did you expect to see?
No warning (unless the targetSDK is actually too low for automatic updates).
What did you see instead?
The "This app was built for an older version of Android and cannot be updated automatically." warning appears briefly then disappears.
On 1.18.0
(basic), I can reproduce this consistently.
On 1.19.0-alpha0-debug
(basic), it's harder to reproduce but I added some log calls and captured this logcat:
suggestedApk=org.fdroid.fdroid.data.Apk@d48c5ca
packageName=org.mozilla.fennec_fdroid
targetSdkVersion=0
visible
suggestedApk=org.fdroid.fdroid.data.Apk@559910b
packageName=org.mozilla.fennec_fdroid
targetSdkVersion=33
gone
It looks like sometimes this code gets called twice, the first time with a different Apk
object with targetSdkVersion=0
, resulting in the warning being made visible, then hidden again when it gets called the second time with the correct targetSdkVersion
.