0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-11-15 23:45:06 +00:00
Commit graph

1054 commits

Author SHA1 Message Date
Torsten Grote
b9b1ef6246 Detect missing heartbeat ACKs and broken connections faster
Waiting twice the heartbeat interval since the last ACK can make us miss dead connections for more than 10min in which no push messages get received.

This change requires the ACK to come within 90 seconds of sending the heartbeat ping, otherwise the connection is considered dead which will trigger a re-connect.

We use a high timeout of 90 seconds, because in some mobile networks (like in trains) ping times of more than 60 seconds have been observed in practice.

Change-Id: I8e63843400b47e1a6d23faf180f9446bcb5e0cd8
2022-01-25 12:37:08 +01:00
Torsten Grote
2ba2c04cc0 Don't say we are connected when push is disabled for current network
This may cause a connection attempt, but in connect(), we'll notice that it is disabled and won't continue to connect.

Change-Id: Id5f00539a48fad16b5e5f55bd336fb8890aa1acc
2022-01-25 12:37:08 +01:00
Torsten Grote
bb68674cae Initiate connection teardown only once
Otherwise, this gets called multiple times from different places via MSG_TEARDOWN. This causes the reconnect delay to increase with each call to scheduleReconnect(), increasing the time we stay disconnected.

This commit introduces a boolean flag preventing handleTeardown() to run twice or more until connect() was called again.

Change-Id: I3d7cb08d696be48532a61819fbb279a908919a3d
2022-01-25 12:37:08 +01:00
Marcus Hoffmann
10455df7e2 also catch potential stopAdvertising exceptions 2022-01-25 00:03:13 +01:00
Marcus Hoffmann
88d14e9e8a fix log message on BLE advertising on SDK < 26 2022-01-25 00:03:13 +01:00
Fynn Godau
15a1b15591 Really fix nearby permission check in settings view 2022-01-25 00:03:13 +01:00
Marcus Hoffmann
80b3129356 improve background location request flow
Instead of directly jumping to the settings screen (which is what the
"Request background location access" amounts to) and leaving the user
there without a clue what to do, we update the label, icon and button
with new text explaining what the user needs to do next.
2022-01-25 00:03:13 +01:00
Marcus Hoffmann
6cfc0aa255 request BLUETOOTH_SCAN and ADVERTISE permissions on Android 12
This also adds a warning notification when the app doesn't have the
required permission after an OS update.
2022-01-25 00:03:13 +01:00
Marvin W
4a5c98491b
Bump version 2022-01-24 19:53:07 +01:00
Marvin W
7969aa817b
Fix Lint issues 2022-01-24 19:51:54 +01:00
Marvin W
91071bbea1
Move ReCAPTCHA Activity to UI package 2022-01-24 19:11:36 +01:00
Marvin W
6e21b52bfe
Profile Manager: Add configuration features 2022-01-24 17:47:34 +01:00
Marvin W
3bbae67fda
Claim to provide tapandpay_token_listing feature 2022-01-24 17:47:34 +01:00
Marvin W
9f3a5ce329
Mapbox: Don't crash for invalid Polygons 2022-01-24 17:47:34 +01:00
Marvin W
711e5c7e12
Fix build of maps-vtm 2022-01-24 17:47:34 +01:00
Marvin W
552aaf856d
Update stub services 2022-01-24 17:47:34 +01:00
Marvin W
10de88b89f
Add new Auth API features 2022-01-24 17:47:34 +01:00
Marvin W
854f879da4
Update checkin service API 2022-01-24 17:47:34 +01:00
Marvin W
9304375da7
ENF: Use new base features 2022-01-24 17:47:34 +01:00
Marvin W
fd8ce71a83
Add initial UI for new features 2022-01-24 17:47:34 +01:00
Marvin W
e3b042ccd7
Update GCM/IID client code 2022-01-24 17:47:33 +01:00
Marvin W
050afb8f87
Update base 2022-01-24 17:47:33 +01:00
Marvin W
0bdcb1319b
Update location service 2022-01-24 17:47:33 +01:00
Marvin W
d593de25ef
Update dependencies 2022-01-24 17:47:33 +01:00
Marvin W
56b8bc9f65
Update DroidGuard + SafetyNet 2022-01-18 18:42:23 +01:00
Marvin W
ee91cc9b79
Update Gradle 2022-01-18 13:51:16 +01:00
Marvin W
2dd6b6b173
Fixes for profile manager 2022-01-18 13:50:45 +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
Marvin W
d16d438350
Location: Ensure we don't keep GPS active indoors when requesting app is already gone 2022-01-14 10:39:10 +01:00
Marvin W
fba6fbdfd0
DotChartView: Format date without year 2022-01-14 10:39:10 +01:00
Marvin W
05d18bb8d2
Do not use application context when requesting resources
Application context is not properly themed, resulting in ugly UI on some devices
2022-01-14 10:39:10 +01:00
Marvin W
a7b2b7e3f8
Add profile manager 2022-01-14 10:39:10 +01:00
Marvin W
6d45bfb7ed
Add DroidGuard support 2022-01-14 10:39:09 +01:00
Marvin W
d8325870cb
Add basic chimera classes for DroidGuard compatibility 2022-01-14 10:39:09 +01:00
Marvin W
6202aa9b34
Add play-services-tasks-ktx 2022-01-14 10:39:09 +01:00
Marvin W
41a32d93fe
Move kotlin extension from play-services-basement to play-services-basement-ktx 2022-01-14 10:39:09 +01:00
Marvin W
a7eb9a2732
Update firebase dynamic links API 2022-01-14 10:39:09 +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
Oliver S
24d6b5aef5 Use ENF version 1.1 to send confidence values 2022-01-14 10:07:23 +01:00
Kaukov
64f12230f7 Bump GMS version 2021-12-15 22:32:22 +01:00
Francesco Saltori
507c20aaac
Update and improve Italian translation (#1457) 2021-11-25 06:43:59 +01:00
Marcus Hoffmann
0ae3a82b4e add CWA and CCTG exposure file public signing keys
From: https://github.com/corona-warn-app/cwa-documentation/issues/740#issuecomment-963223074
2021-11-24 23:21:02 -06:00
Torsten Grote
222b03f7ee Respect bounds for heartbeat intervals when learning from timeouts
Without this it can happen that we learn the interval too close to 0 which causes us to assume that we are always disconnected breaking Mcs network functionality

Change-Id: I0dee59d1365a8e10941dd346bfcd7af19d79d523
2021-11-03 13:02:51 +01:00
Torsten Grote
00a06d4b94 Don't reconnect to gcm when opening settings
This doesn't treat the underlying issues and can make debugging harder if we suddenly auto-connect due to this.

Change-Id: I9c04c78e8ebda8472b0cd8c7b0b0deb2e2300139
2021-11-03 13:02:51 +01:00
Torsten Grote
14d666a163 Do a check-in if we are not actually checked in, but should be, e.g. cleared app data
Change-Id: If800339fa35644d8783203fbd511128457d6d101
2021-11-03 13:02:51 +01:00
Torsten Grote
f806e1bcdb When check-in fails due to missing internet access, try again as soon as access is restored 2021-11-03 13:02:51 +01:00
Torsten Grote
1367649a18 Lower heartbeat interval when we find the connection reset when wanting to send a message 2021-11-03 13:02:51 +01:00
Torsten Grote
d25e351c41 Re-connected in SettingsFragment if we are erroneously disconnected 2021-11-03 13:02:51 +01:00