Commit Graph

1473 Commits

Author SHA1 Message Date
KevinX8 e6d706456e
Merge pull request #170 from Oizaro/master
MicroG 0.2.23.220217
2022-01-31 12:57:15 +00:00
KevinX8 d231e059f7 Update Dependencies and SDK target to match Vanced 2022-01-31 12:49:59 +00:00
Oizaro 5f2b3b5205 Cleanup 2022-01-31 00:31:49 +01:00
Oizaro 785ffe4933 Fix 2022-01-29 20:55:43 +01:00
Oizaro 8472943bb4 Optimize imports 2022-01-28 01:15:01 +01:00
Oizaro f600688264 Merge remote-tracking branch 'upstream/master' 2022-01-28 01:06:36 +01:00
Oizaro d64e4556f6 MicroG 0.2.23.220217 2022-01-28 00:47:01 +01:00
Marvin W af28974d97
Use different API key for SafetyNet checks 2022-01-25 18:31:32 +01:00
Marvin W 0497f7ead3
Make strings translatable 2022-01-25 18:31:24 +01:00
Torsten Grote f3c20333b0 Don't teardown things after sockets have been closed
Before, the call to closeAll() in McsService#connect() would trigger a SocketException (Socket closed) in McsOutputStream and/or McsInputStream. This would send a teardown message causing McsService to take the new connection down right away. In unlucky situations, this could cause small connect/teardown loops. This commit hopes to prevent those.

Change-Id: Id347d598e028bdd1ba2622cd6a5c6b07874335d6
2022-01-25 12:37:08 +01:00
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