Home

Awesome

<img src="assets/logo.png" width="30%">

This source code is a property of Centre for Disease Prevention and Control (CDPC) of Latvia. You are free to use it accordingly to the Licence terms, and we would like to hear from you if you find it useful. Please drop us an email to: pasts@spkc.gov.lv

SPKC Apturi Covid Android Application

This project's goal is to delay and mitigate the impact of SARS-CoV-2 by developing the official Apturi Covid (Stop Covid) Android application for the Republic of Latvia, utilising Google's Exposure Notification Framework.

Application Preview

Usage of the Exposure Notification Framework

Only approved health authorities can access these APIs. Therefore, framework calls will result in API error unless the application Bundle ID and signature keystore hash is whitelisted by Google.

How it works

Application functionality is based on Google's Exposure Notification Framework. Application directly is not interacting with Bluetooth LE in any way. Bluetooth key transmission and receiving is handled entirely by EN Framework. Please read more here regarding the implementation specifics of the Framework.

Application communicates with the server and exchanges information only to perform the following actions:

  1. Phone number verification (with user consent)
  2. Fetching exposure detection configuration. Detailed information here
  3. Downloading publicly available batches of TEKs (Temporary Exposure Keys)
  4. Uploading anonymous exposure events (with user consent)

Exposure Detection

Exposure Detection is performed at every application launch and every 60 minutes by WorkManager scheduled worker ExposureKeyFetchWorker. Application stores analysed baches for 14 days to ensure the display of a potential exposure.

Development

  1. Android Studio 4.0
  2. Add Firebase configuration: place your google-services.json under the /app directory
  3. Copy the dev-keystore.properties.example file to dev-keystore.properties and set the development keystore information.
  4. Copy the secrets.properties.example file to secrets.properties and set the SafetyNet key.
  5. Copy the staging-environment.properties.example file to staging-environment.properties and set the API and file storage URLs.

Support & Feedback

Contributions and feedback is always welcome. If you have encountered and issue, have an improvement in mind or an implementation question, please use the issues section.

<a href="https://github.com/ApturiCOVID/apturicovid-android/issues/new/choose" title="Open Android Issues"><img src="https://img.shields.io/github/issues/ApturiCOVID/apturicovid-android?style=flat-square"></a>

Vulnerability reporting

If you believe you have found a security vulnerability, please submit your report to us as described in the issues section.

License

This work is licensed under Creative Commons Attribution-ShareAlike 4.0 International

Contributors ❤️✨

<img src="https://avatars0.githubusercontent.com/u/36028743" width="60px"> <img src="https://avatars0.githubusercontent.com/u/24649275" width="60px"> <img src="https://avatars0.githubusercontent.com/u/1000041" width="60px"> <img src="https://avatars2.githubusercontent.com/u/23337301" width="60px"> <img src="https://avatars3.githubusercontent.com/u/449755" width="60px"> <img src="https://avatars0.githubusercontent.com/u/19401096" width="60px">