Tim Hetkämper
75aaeb1fc6
ENF: Fix average RSSI calculation
...
Correctly discard new measurements when the reported timestamp is older
than the timestamp in the database.
Fixes https://github.com/microg/GmsCore/issues/1655 .
2022-02-01 13:50:37 +01:00
Marvin W
68e116388b
ENF: Add proper default for new columns
2022-01-16 23:08:51 +01:00
Marvin W
110157dab8
ENF: Handle issue with negative or 0 durations due to system time changes
...
With time synchronisation and can happen that timestamps in database are newer
than reported system time, which then can lead to reported exposure with
multiple measurements but negative or zero reported duration, resulting in
divide-by-zero and other issues in average RSSI calculation. This fixes the
issue, by ignoring new measurements of the same RPI when they are seemingly
older than a previous measurement.
2022-01-14 10:48:03 +01:00
Oliver S
ac779f9ac8
Fix off by one error
2022-01-14 10:12:57 +01:00
Oliver S
7321ea7d25
Add missing fields to ENF database
2022-01-14 10:12:57 +01:00
Marvin W
11a86d9169
EN: Display historgram of collected IDs using hourly heat map
2021-01-08 15:46:25 +01:00
Marvin W
8b49b05585
EN: Do not log isEnabled calls
...
Some apps make excessive use of this method, so better not log it
2020-12-20 19:29:50 +01:00
Marvin W
6d423bb8e4
EN: Make rotated key use same start number as regular key
...
This hides the fact that the key was rotated. Probably never needed because one
is not going to get infected twice within 14 days, but doesn't hurt either.
2020-12-20 19:29:50 +01:00
Marvin W
0e8c8bb712
EN: Use applicationId as authority for export file provider
2020-12-16 19:49:37 +01:00
Marvin W
1ffb559af0
EN: Adjust export UI
2020-12-16 10:38:06 +01:00
Thomas Lambertz
0a9d4869c7
EN: change mime-type when exporting database to be microg specific
2020-12-16 10:38:06 +01:00
Thomas Lambertz
4158e71999
EN: Add database export feature. Only exports the advertisements table.
2020-12-16 10:38:06 +01:00
Marvin W
f5578feea2
EN: Manually cast to long whenever needed to be on the safe side
2020-12-13 15:50:54 +01:00
Marvin W
0cd028af0e
EN: Don't allow apps to turn off EN that didn't turn it on before
2020-12-12 13:13:25 +01:00
Marvin W
9b91bf63c6
EN: (UI) Improve display of reported exposures
2020-12-12 13:13:25 +01:00
Marvin W
369c3d7557
EN: Allow exporting key of current day
...
This requires rotating the daily TEK when exporting
2020-12-12 13:13:25 +01:00
Marvin W
a3d6f1aed5
EN: Don't adjust tx power by TX_POWER_LOW (-15)
...
The exposure-notifications-internal suggests that this is the thing to do,
but the actual implementaton doesn't.
2020-12-12 13:13:24 +01:00
Marvin W
2b09a5e530
EN: Ensure correct handling of new provideDiagnosisKeys()
...
Fixes #1300
2020-12-03 10:15:18 +01:00
Marvin W
e84452aeaf
EN: Clear matching cache to ensure we don't miss any warnings due to changed bluetooth protocol
2020-11-24 16:36:08 +01:00
Marvin W
50c241ab63
EN: Fixed rare case of incorrectly reporting more exposures than happened
2020-11-19 18:40:11 +01:00
Marvin W
4c2ef04364
EN API: Update
2020-11-18 19:18:20 +01:00
Marvin W
b67a11f4e6
EN: Display more details about app usage, add feature for deleting RPI storage
2020-10-17 22:58:02 +02:00
Marvin W
155bbce69b
EN: Retroactively "repair" broken database entries to a sane default value
...
Related to #1230
2020-10-17 15:30:03 +02:00
Marvin W
139f7eaf17
EN: Correctly average rssi on database entry update
...
Fixes #1230
2020-10-17 15:09:17 +02:00
Marvin W
0eb75ba363
EN: Fix oversize database migration
2020-10-14 11:28:28 +02:00
Marvin W
1deeb45834
EN: Make database access suspendable, add migration routine for oversized databases
2020-10-13 21:20:12 +02:00
Marvin W
775b18c203
EN: Make sure to that database lock is freed during daily cleanup every 5s
...
Delete with limit is not supported on all Androids
2020-10-09 16:24:43 +02:00
Christian Grigis
4e3c03cfaa
Fix overflow that prevents matching
2020-10-09 15:24:50 +02:00
Marvin W
4486ff52ef
EN: Improve some database bits
2020-10-07 23:16:53 +02:00
Marvin W
6afcca0396
EN: Add latest API details, improve performance
2020-09-27 14:57:08 +02:00
Marvin W
f9cc9249d5
EN: Run cleanup in IO thread, improve performance
2020-09-09 00:50:58 +02:00
Marvin W
a016feba35
EN: Don't create TEK without need
2020-09-09 00:50:16 +02:00
Marvin W
f48298b1f6
EN: Improve database performance
2020-09-06 19:50:19 +02:00
Marvin W
d33391ebce
EN: Handle confirmation via resolution/pending intent instead of new task
2020-09-05 23:51:00 +02:00
Marvin W
fd6d915f0a
EN: Display last exposure report in settings
2020-09-04 10:44:08 +02:00
Marvin W
876e32acd5
EN: Make internal structures closer to ExposureWindow mode
2020-09-04 00:13:11 +02:00
Marvin W
cfc1c314d4
EN: Cleanup data after 14 days, improve storage efficiency, add randomness for changing RPI
2020-08-25 13:13:00 +02:00
Marvin W
f30605b145
EN API: Only use a single writable database instance
...
Should fix some issues with older Android versions, #1115
2020-08-05 14:27:53 +02:00
Marvin W
761b6dfd47
Do not use database.use (for pre-Q), ensure database stays open as needed
...
Related to #1115
2020-08-04 11:42:15 +02:00
Marvin W
5f70d943cb
Add initial Exposure Notification API implementation
2020-08-03 18:19:20 +02:00