Skip to content
Snippets Groups Projects
  1. Nov 11, 2020
  2. Nov 03, 2020
  3. Nov 02, 2020
  4. Oct 27, 2020
  5. Oct 06, 2020
  6. Oct 02, 2020
    • chris-cwa's avatar
      Interoperability: Submit days since onset of symptoms, Add 15th key to... · f0529ca4
      chris-cwa authored
      Interoperability: Submit days since onset of symptoms, Add 15th key to transmission risk vector (EXPOSUREAPP-2748, EXPOSUREAPP-2686) (#1223)
      
      * Update proto file to generate TemporaryExposureKey and fix visibility
      
      * Introduce placeholder and model for days since onset of symptoms
      
      * EXPOSURE_APP_2686 (wip)
      
      * fixed annotation
      
      * fixed compile error
      
      * Implement determinator for days since onset of symptoms in accordance with the risk vector determinator
      
      * extracted index calc
      
      * add 15th key
      
      * get index
      
      * Reverse order of days since onset of symptoms vector to align index with risk vector
      
      * updated behaviour
      
      * fixed today
      
      * - false thinking
      
      * implemented days ago
      
      * detekt + ktlint
      
      * not needed
      
      * fixed index into vectors
      
      * https://github.com/corona-warn-app/cwa-app-android/pull/1223#discussion_r494957683
      
      
      
      * tests
      
      * Move vector length to determinator and fix test
      
      * Fix test and ktlint
      
      * improvements suggested in PR
      
      * use UTC, improved tests
      
      * tests with gap and several keys in one day
      
      * more unit tests + fixed a bug in age of days
      
      * test transmission risk vector
      
      * Improve test readabilty and switch to Junit5
      
      * inject it
      
      * End of class please.
      
      * fixed tests
      
      * remove magic number
      
      * fixed tests
      
      * fixed test
      
      * fixed test
      
      * Fix lint issues
      
      * Add java doc with link to the documentation.
      
      * Fix tests
      
      * fixed test
      
      * ktlint
      
      Co-authored-by: default avatarralfgehrer <mail@ralfgehrer.com>
      Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
      Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
      f0529ca4
  7. Sep 30, 2020
    • Matthias Urhahn's avatar
      Submission logic for interop (EXPOSUREAPP-2737) (#1237) · 96d94824
      Matthias Urhahn authored
      * Update protobuf format
      
      * Addition of contentToFederation and visistedCountries/supportedCountries.
      
      TODO: Unit tests, pull supportedCountries from AppConfig (waiting for #1213)
      
      * Fix invalid package being assigned.
      This would break daggers annotation processing as the class could not be resolved.
      
      * Improved existing and implemented new tests.
      
      * Fixed test regression due to refactoring.
      
      * Integrate pulling the supportedCountries data from the AppConfig for the submission transaction.
      (Previously wasn't implemented yet, now it's merged)
      
      * Address merge conflicts, and a little refactoring, and a bit more tests.
      
      * Revert file change to Project.xml
      
      * AppConfigProvider should insert "DE" as fallback if the supportedCountry list is empty/not supplied.
      
      * Don't insert the fallback country at application config provider level.
      The UI requires the list to be empty, if it is empty in the config.
      I've moved the fallback country insertion into the transaction.
      
      * Make detekt happy.
      
      * Make klint happy.
      96d94824
  8. Sep 18, 2020
    • Matthias Urhahn's avatar
      Revert "Interoperability to 1.5.X (#1173)" · c419ae66
      Matthias Urhahn authored
      This reverts commit 6054bf57.
      c419ae66
    • Jakob Möller's avatar
      Interoperability to 1.5.X (#1173) · 6054bf57
      Jakob Möller authored
      
      * Added first set of country flags
      
      Signed-off-by: default avatarKolya Opahle <k.opahle@sap.com>
      
      * Added first implementation of Submission Country Selection Screen. (Currently not part of nav graph).
      Moved stuff inside of submission package into subpackages
      
      Signed-off-by: default avatarKolya Opahle <k.opahle@sap.com>
      
      * Added missing changes to nav_graph file
      
      * Test Menu options for Country selection and Measurement (EXPOSUREAPP-2229) (#1086)
      
      * Implement country filter (#2229)
      
      * Implement measure for Risk calculation and Key Retrieval (#2229)
      
      * Some code cleanup for measureRiskLevelAndKeyRetrieval
      
      * Some code cleanup (#2229)
      
      * Implement usage of AppConfig usage for country codes (#2229)
      
      * change CURRENT_COUNTRY val to var
      
      * Suppress "LongMethod" warning (#2229)
      
      * Adjust unit tests to respect new country filter
      
      * Align with backend for app config country property name
      
      * Display total file size of keys in results (#2229)
      
      * Fix linting issue
      
      * Update strings.xml files
      
      * Do refactoring and some code clean up
      
      * Move RiskLevel and Key retrieval measurement in own class
      
      * Move code in logical classes. Remove translation in test fragment
      
      * Fix linting and Unit tests
      
      * Remove 3hour boolean check from debug class.
      
      * Refactor CountryWrapper and missing dates check.
      
      * Fix linting and Unit tests
      
      * Add Unit test for getMissingDates
      
      * Code cleanup
      
      * Hide keyboard on action
      
      * Extend statistics for api submission
      
      * Set callback to null after invoked
      
      Co-authored-by: default avatarMert Safter <mert.safter@sap.com>
      Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
      
      * Overhaul of DiagnosisKey related Download and Caching Mechanisms (EXPOSUREAPP-2469) (#1136)
      
      * Rework of keyfile download and caching.
      * Supports interop
      * More modular for better testing and build flavour based behavior adjustments
      * More resilient handling of failed downloads
      * Preperations for future hourly download and serverside checksums
      
      TODO: Finish unit tests, keycache migration and cache health check
      
      * First batch of unit tests and some fixes for incorrect behavior that the tests surfaced.
      
      * Added unit tests for the KeyCacheRepository
      
      TODO: Tests for downloader and migration.
      
      * Implemented POC for migration old key files.
      
      * Fixed legacy file migration and cleanup, improved logging.
      
      * Added unit tests for legacy key file migration.
      
      * Add fallback for different file hashes in the header.
      
      * Yes kLint, we know it's a long method,
      but for this it's better to read it in one block vs jumping to extra methods.
      
      * More linting issues, adjusting project code style prevent a few of these in the future.
      
      * Added missing unit tests for `KeyFileDownloader` and fixed faulty behavior that was noticed during testing.
      
      * CRUD (instrumentation) test for `KeyCacheDatabase`
      
      * Remove unused `FileStorageHelper` and related constants+tests.
      
      * Fix last3Hours unit test in deviceRelease mode, we need to explicitly enable debug for these tests.
      
      * Until we have more information about the hashsum's format in the header, default to `ETag
      
      * Split app config server API from diagnosis key download API,
      and reintroduce caching for the app config download.
      
      * Add test to check that the cache is used on flaky connections.
      
      * Code changes based on PR comment, part #1.
      
      * Code fluff, formatting.
      
      * Handle download errors correctly.
      
      * Refactoring:
      * Remove unnecessary `currentDate` we always start with the newest date from the servers index.
      * Make a specialised class for header validation
      
      * Let legacy cache migration abort early, depending on whether the key dir exists.
      
      * If we can't create the base directory for the key repo, throw an exception.
      
      * Delete cache entry if a download fails.
      
      * Fixed test regression due to refactoring.
      
      * Consolidate staleness check into `getStale`
      
      * Consolidate clean up for failed downloads into the download method.
      Added tests to check that we delete the keycache entry if the download fails (which we didn't for hours :O!)
      
      * Because the hour-mode uses caching too, we add an explicit button to the test menu that clears the cache.
      
      * Add comment with reference to ticket regarding follow up on the other headers.
      
      * Move expected storage size per country into a named constant.
      
      Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
      
      * Implementation of tests for the interoperability countries selection screen (EXPOSUREAPP-2439) (#1140)
      
      * Added initial set of viewModel tests
      
      Signed-off-by: default avatarKolya Opahle <k.opahle@sap.com>
      
      * Fail tests on unexpected null.
      
      Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
      
      Co-authored-by: default avatarKolya Opahle <k.opahle@sap.com>
      Co-authored-by: default avatarapopovsap <66370584+apopovsap@users.noreply.github.com>
      Co-authored-by: default avatarMert Safter <69803294+MertSafter@users.noreply.github.com>
      Co-authored-by: default avatarMert Safter <mert.safter@sap.com>
      Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
      Co-authored-by: default avatarMatthias Urhahn <darken@darken.eu>
      6054bf57
  9. Sep 03, 2020
    • Mert Safter's avatar
      Test Menu options for Country selection and Measurement (EXPOSUREAPP-2229) (#1086) · b8d0ed35
      Mert Safter authored
      
      * Implement country filter (#2229)
      
      * Implement measure for Risk calculation and Key Retrieval (#2229)
      
      * Some code cleanup for measureRiskLevelAndKeyRetrieval
      
      * Some code cleanup (#2229)
      
      * Implement usage of AppConfig usage for country codes (#2229)
      
      * change CURRENT_COUNTRY val to var
      
      * Suppress "LongMethod" warning (#2229)
      
      * Adjust unit tests to respect new country filter
      
      * Align with backend for app config country property name
      
      * Display total file size of keys in results (#2229)
      
      * Fix linting issue
      
      * Update strings.xml files
      
      * Do refactoring and some code clean up
      
      * Move RiskLevel and Key retrieval measurement in own class
      
      * Move code in logical classes. Remove translation in test fragment
      
      * Fix linting and Unit tests
      
      * Remove 3hour boolean check from debug class.
      
      * Refactor CountryWrapper and missing dates check.
      
      * Fix linting and Unit tests
      
      * Add Unit test for getMissingDates
      
      * Code cleanup
      
      * Hide keyboard on action
      
      * Extend statistics for api submission
      
      * Set callback to null after invoked
      
      Co-authored-by: default avatarMert Safter <mert.safter@sap.com>
      Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
      b8d0ed35
  10. Aug 07, 2020
    • Fabian-K's avatar
      plausible deniability (#946) · f98ac2dd
      Fabian-K authored
      * Added requestPadding property to all VerficationService requests
      
      * Added fake calls to the WebReqeustBuilder
      
      * 🚧
      
       initial draft to enable plausible deniability
      
      * Switched from SubmissionConstants to KeyType enum everywhere
      
      * basic playbook implementation with fake and real requests
      
      * Playbook
      - ensure request pattern for playbooks is always the same
      
      VerificationService
      - apply padding to ensure equal request size (header & body)
      
      SecurityHelper
      - extract hash256 to HashHelper. This simplifies tests that use only the hash function (and therefore don´t need to initialize SecurityHelper and its dependencies)
      
      * Implemented random chance of dummy playbook execution on app open
      
      Signed-off-by: default avatarKolya Opahle <k.opahle@sap.com>
      
      * Playbook
      - ignore exceptions for fake requests
      
      SubmissionService
      - add padding header to fake request for same header size
      
      WebRequestBuilder
      - include fake keys in upload (🏗️
      
      )
      
      * DiagnosisKeyService: removed (low value & difficult to test)
      
      SubmissionService & SubmitDiagnosisKeysTransaction
      - inline playbook & backgroundNoise property to prevent issues during testing
      
      DiagnosisKeyConstantsTest, SubmissionServiceTest, SubmitDiagnosisKeysTransactionTest & SubmissionViewModelTest
      - adjusted to changes
      
      * Dummy playbook will now be repeated and delayed randomly
      
      Signed-off-by: default avatarKolya Opahle <k.opahle@sap.com>
      
      * Linting
      
      Signed-off-by: default avatarKolya Opahle <k.opahle@sap.com>
      
      * Initial Code for background noise worker
      
      Signed-off-by: default avatarKolya Opahle <k.opahle@sap.com>
      
      * First implementation of noise background worker
      
      Signed-off-by: default avatarKolya Opahle <k.opahle@sap.com>
      
      * Linting
      
      Signed-off-by: default avatarKolya Opahle <k.opahle@sap.com>
      
      * PlaybookImpl
      - ensure that fake requests are executed when real requests fail
      
      SubmissionService & VerificationService
      - adjust header name for padding
      
      WebRequestBuilder
      - add padding to dummy submission
      
      * BackgroundNoise is now trigger-only
      
      PlaybookImpl
      - include follow-up executions after every playbook
      - logging
      
      SubmissionViewModel.kt, SubmissionService.kt, SubmitDiagnosisKeysTransaction.kt, MainActivity.kt, BackgroundNoisePeriodicWorker.kt, DiagnosisTestResultRetrievalPeriodicWorker.kt
      - propagate context for coroutine
      
      VerificationService
      - ensure body size of 1000
      
      * WebRequestBuilder.kt
      - adjust fake key generation
      
      PlaybookImplTest.kt
      - remove unused server.enqueue
      
      SubmissionService.kt 6 SubmitDiagnosisKeysTransaction.kt
      - remove commented out code
      
      * revert temporary changes to SubmissionResultPositiveOtherWarningFragment.kt
      
      * Background job scheduling implemented
      
      Signed-off-by: default avatarKolya Opahle <k.opahle@sap.com>
      
      * - adjust fake key size
      - remove temporary comment
      
      * Moved build work calls to own file to fix linting
      
      Signed-off-by: default avatarKolya Opahle <k.opahle@sap.com>
      
      * - initialize coroutine scope within the playbook, revert passing it from outside
      - remove experimental test dependency for coroutines
      
      * - use single endpoint per server for fake requests
      - reduce request size from 1000 to 250 for the verification server
      - include dummy registration token in fake request to fulfill verification on server side
      - prepare for randomized count of submitted keys
      - always include headers cwa-authorization & cwa-header-padding for submission server
      
      * - simplify empty header using constant
      
      Co-authored-by: default avatarKolya Opahle <k.opahle@sap.com>
      f98ac2dd
  11. Jul 14, 2020
  12. Jun 09, 2020
  13. Jun 04, 2020
    • Philipp Woessner's avatar
      Implement risk level calculation changes (#136) · 26c4cb50
      Philipp Woessner authored
      * changed local config that a high match can be generated via QR code, integrated it with the UI
      
      * added the minRiskScore parameter to the ExposureConfiguration
      
      * moved the persistence of the exposure summary in a dedicated worker to ensure execution
      
      * added new backend app config and custom risk score calculation
      
      * fixed static code checks and refactoring
      
      * deleted possibility to customise app config in the tests
      
      * added test fragment for risk level calculation
      
      * static code check fixes
      
      * refactored risk level calculation and added tests
      
      * added exception if calculated risk score is above the max of the high risk score class
      26c4cb50
  14. May 30, 2020
Loading