Closed messersm closed 4 years ago
Hi @messersm ,
thank's for your feedback, unfortunately that's not possible because of the min. version of the Exposure Notification API (page 3, on the bottom).
We would really like to increase the user base with such a change, but as I said it isn't technically possible.
Thanks, Luka
@harambasicluka Thanks for the quick feedback. It seems, there are questions about this requirement: https://github.com/google/exposure-notifications-android/issues/16
The code itself declares version 21 as the minimum: https://github.com/google/exposure-notifications-android/blob/master/app/build.gradle#L35
Could we please, if nothing else, keep this open? I don't think the last word is spoken on this one.
Latvia uses minSdk=21 so it should be possible?
https://play.google.com/store/apps/details?id=lv.spkc.gov.apturicovid
I guess the Exposure Notifications API documentation has been updated recently:
[...] The framework works on some devices as low as version 5.0 (API level 21), so using this version is an option to increase the number of devices eligible. [...]
Maybe the minSdk version should be reconsidered?
Good find!
Feature description
The Corona warning app should be able to run on Android 5 (Lollipop, skdversion 21).
Problem and motivation
According to the Android distribution chart in Android Studio Lollipop (5.1 and 5.2) is used by 9.2 percent. With a total market share of 75% and around 90% of the german population owning a smartphone the corona app is excluding approx. 5.163.571 people from using it (on Android alone).
Lollipop is used on smartphones, which where released 3-4 years ago. It's clear, that people, who buy used phones or keep phones longer (that is: people with not much money!) are the ones, who can't use the app.
I don't think this is acceptable given the fact, that the whole population should be protected.
Is this something you're interested in working on
Yes, I would be willing to work on this and already began, but I need help (and also, I'm neither experienced in writing Kotlin, nor with writing Android Apps, so if anyone else want's to jump in, please do!).
I was able to get the (debug) app build for sdkversion 21 by upgrading to
androidx.security:security-crypto:1.1.0-alpha01
.You can take a look at this here: https://github.com/messersm/cwa-app-android/commit/ab555698e64ef613f9485a0886109d1cbc121fe0
However, the application crashes on start, with:
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/security/keystore/KeyGenParameterSpec$Builder;
(Line 165). I guess, this has to do with the fact, thatandroidx.security:security-crypto:1.1.0-alpha01
doesn't use the keystore on lollipop (see here: https://developer.android.com/jetpack/androidx/releases/security#security-crypto-1.1.0-alpha01) and some libraries are loaded by name lookups (since the app did compile and install).