Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cryptic Error Message when Exposure Notification API is not available #51

Closed
alexandredeleze opened this issue May 26, 2020 · 14 comments
Closed
Assignees

Comments

@alexandredeleze
Copy link

I tried the commit 3dd348c and because by Honor 8X didn't receive the update from Google, I don't have the exposure notification api. When I try to activate the tracing an alert pop up with I think the original error message "17: API: Nearby.Exposure_NOTIFICATION_API is not available on this device. Connection failed with: ...". Maybe it can be good to modify this error message for the user.

@zukunft
Copy link

zukunft commented May 26, 2020

I have the same with a OnePlus 5T and LineageOS. Would be nice if there would be also a "non GAEN" Version.

@micahwilhelm
Copy link

I get the same error on my Moto X 2nd Gen running LineageOS 16.0 (based on Android 9) when trying to activate tracing:

17: API: Nearby.EXPOSURE_NOTIFICATION_API is not available on this device. Connection failed with: ConnectionResult{statusCode=UNKNOWN_ERROR_CODE(39501), resolution=null, message=null}"

@senic35
Copy link

senic35 commented May 26, 2020

Same error on my OnePlus 7Pro with OxygenOS 10.0.0.5

@michalogit
Copy link

Same error, huawei p20 lite, android 9

Screenshot_20200526_205217_ch admin bag dp3t

@Continuum-Q
Copy link

Same issue on Google Pixel 4XL on May 5th security update.
Screenshot_20200527-094438

@Laraakaa
Copy link

Seems to be linked when the app is not signed with the official certificate (e.g. when you build it from source and install it on your own device). After downloading the correct signed version from the Play Store, the error message disappeared (only for that version of the app).

Would be cool if we could also build it ourselves to debug, test and analyze it fully, instead of relying on the Play Store build.

@kplanz
Copy link

kplanz commented May 27, 2020

The same is true for the calibration app (in the SDK project) btw.

Logcat shows the following message:

ExposureNotification: Reject the api access due to the caller is not whitelisted

@stefanriesen
Copy link

Get the same message here in the follwoing environment

  • Nokia 7.2
  • Android 10 (Build Nr. 00WW_2_270_SP01)
  • Security Patches 05/2020
  • Play Services 20.18.17 (120400-311416286)
  • SwissCovid App Version 1.0-pilot installed through Play Store

@naspert
Copy link

naspert commented May 28, 2020

same here with Fairphone 2
Android 7.1 and app installed through Play Store

@beckm-ethz
Copy link

Also got the UNKNOWN_ERROR_CODE(39501) on:

  • Nokia 7.1
  • Android 10 (Build Nr. 00WW_4_08B_SP05)
  • Security Patches 05/2020
  • Play Services 20.18.17 (120400-311416286)
  • SwissCovid App Version 1.0-pilot, 0.5.0 (Play Store (Early Access))
  • Using a second user on the device where the main user had a wrong country (Country restriction on Google Play store #52)

@Flash1232
Copy link

Flash1232 commented May 30, 2020

Got UNKNOWN_ERROR_CODE(39507) on:

  • OnePlus 5T
  • Android 10 (Build Nr. A5010_43_200513) / OxygenOS 10.0.0
  • Security Patches 05/2020
  • Play Services 20.15.16 (120400-309763488) / Play System Update 2020-05-01
  • SwissCovid App Version 1.0.1-pilot, 0.5.1

@LoremoCH
Copy link

LoremoCH commented Jun 1, 2020

Same or similar problem on Fairphone 2

  • Fairphone 2
  • Android 7.1.2
  • Security Patches 2019-10-05
  • Play Services 20.18.17
  • SwissCovid App Version 1.0.1-pilot, 0.5.1 (Installed by Google Play Store)

Most of the time it does not work right at the start. Sometimes the app briefly shows that it is working normally. But after a few minutes the following message appears.

Screenshot_20200601-150437

Screenshot_20200601-151051

Screenshot_20200601-105657

@simonpra
Copy link

simonpra commented Jun 4, 2020

Got the same yesterday on my Honor 10. With last Google Play Service 20.18.something.
Updated with Google Play Service 20.21.15 (bêta), at first same error, but today everything's working ;-)

Try updating the Google Play Service to the bêta version (must be registered for bêta preview).

  • Honor 10
  • Android 9
  • Last security update (april 2020)
  • Google Play Services 20.21.15 (bêta)
  • SwissCovid App Version 1.0.1-pilot, 0.5.1 (Installed by Google Play Store)

@simonroesch
Copy link
Contributor

There were several issues here:

ApiException 17 with statusCode=39501 was an error in the ExposureNotification framework of Google that happened on devices not supporting bluetooth multiple advertisement. This issue has been fixed now by Google and should no longer happen. If it still does happen. on your device, please open a new issue and include the app version, the Google Play Services version as well as the output of
adb shell dumpsys activity provider com.google.android.gms.chimera.container.GmsModuleProvider | grep 'nearby_en'

ApiException 17 with statusCode=39507 is due to Google checking the app signature when using the ExposureNotification framework. Only our production signature (used for PlayStore builds only) is whitelisted, therefore it is currently not possible to use the ExposureNotification framework when the app is not downloaded from the PlayStore but build individually. We are hoping for a solution from Google to enable developers to use the framework also with non-whitelisted apps (signatures). We are also working on reproducible builds that will allow to verify that the APK from the PlayStore is built from the source code provided here.

For phones without Google Play Services we do not yet have a solution, the app currently uses the Google ExposureNotification framework distributed as part of the Google Play Services.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests