summaryrefslogtreecommitdiffhomepage
path: root/android/lib/common
AgeCommit message (Collapse)AuthorFilesLines
2025-08-22Improve connect on start up informationJonatan Rhodin1-0/+12
2025-08-19Catch exception in toExpiryDateString()Kalle Lindström1-1/+11
2025-07-03Fix gradle kotlinOptions warningsDavid Göransson1-3/+7
2025-05-26Migrate remaining deps and versions to version catalogsDavid Göransson1-4/+4
2025-05-06Fix go to vpn settings on TV devicesJonatan Rhodin1-4/+14
- Do not show the action on devices without vpn settings - Handle exceptions when starting vpn settings activity
2025-03-14Fix lint warningDavid Göransson1-1/+2
2025-03-07Add documentation about detecting always_on_vpn_appDavid Göransson2-29/+39
Only before Android 11 and on test builds (running from Android studio) it will report always-on vpn app.
2025-03-04Improve connectivity listener online detectionDavid Göransson1-17/+0
Fixes incorrect filter for networkEvents. Also adds debouncing to offline state when roaming to cellular from WiFi, this would otherwise cause a full reconnection.
2025-03-03Fix connectivity listenerDavid Göransson1-0/+17
Fixes an issue where another VPN app or user having unfortunate timing of turning on airplane mode and connecting at almost the same time would leave a lingering network cached in the scan. This fix will start with the all networks state and give the networkEvents flow 1 second to start up and emit the actual network state.
2025-02-26Remove Joda Time and use java.time package insteadKalle Lindström3-15/+20
Joda Time has been superseded by the Java 8 java.time package which has more or less the same API. This commit removes all usage of Joda Time and replaces it with the java.time classes. This is done so that we can remove the dependency on Joda Time.
2025-02-06Replace old waitForTunnelUp functionDavid Göransson1-3/+43
After invoking VpnService.establish() we will get a tunnel file descriptor that corresponds to the interface that was created. However, this has no guarantee of the routing table beeing up to date, and we might thus send traffic outside the tunnel. Previously this was done through looking at the tunFd to see that traffic is sent to verify that the routing table has changed. If no traffic is seen some traffic is induced to a random IP address to ensure traffic can be seen. This new implementation is slower but won't risk sending UDP traffic to a random public address at the internet.
2024-11-27Handle legacy always-on vpn profilesDavid Göransson6-99/+64
Co-authored-by: Jonatan Rhodin <jonatan.rhodin@mullvad.net>
2024-11-13Clarify expired account messageDavid Göransson1-4/+12
2024-10-24Fail with log if device doesn't have a browserDavid Göransson1-5/+0
2024-10-08Remove unused permissionDavid Göransson1-4/+1
2024-10-03Make all compiler warnings errorsDavid Göransson1-1/+4
2024-09-24Set build tools version to 35.0.0David Göransson1-0/+1
2024-08-30Initialize mullvad daemon directly in vpn service on createJonatan Rhodin1-0/+2
As a consequence move the address resolve to the daemon
2024-08-28Reformat kotlin code using updated ktfmt pluginAlbin2-4/+4
This commit mostly adds trailing commas throughout the project, but also includes a few other formatting changes.
2024-08-13Migrate to version catalogsAlbin1-12/+12
2024-06-26Migrate log calls to kermitAlbin1-3/+0
2024-06-17Get value of data directory value at app startupMarkus Pettersson2-0/+6
Remove `APP_PATH` from `mullvad-paths` on Android since it should not be a constant value. Instead, it is passed down from the Android app startup. As it turns out, it is really ever used for pointing to the RPC socket in use.
2024-06-14Add ui for api access method functionalityJonatan Rhodin1-0/+4
2024-06-12Format xml filesAlbin1-1/+1
2024-05-29Migrate to gRPCDavid Göransson9-281/+29
Co-authored-by: Jonatan Rhodin <jonatan.rhodin@mullvad.net> Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net> Co-authored-by: David Lönnhager <david.l@mullvad.net>
2024-02-19Remove the auto-connect switch when vpn settings are availableJonatan Rhodin1-3/+0
2024-02-19Create auto connect and lockdown mode screenMaryamShaghaghi1-0/+8
Co-Authored-By: Boban Sijuk <49131853+Boki91@users.noreply.github.com>
2024-02-08Update the relaylist modelJonatan Rhodin1-23/+0
Use sealed interface for RelayItem Add CustomList as a type of RelayItem
2024-02-05Fix too general ExceptionDavid Göransson1-1/+3
2024-01-11Update lint baselinesAlbin2-16/+0
2024-01-11Fix notification permission lint issuesaber safavi2-3/+13
2023-12-14Migrate to Compose DestinationsDavid Göransson1-7/+0
2023-11-22Add allow implicit flagDavid Göransson1-1/+6
2023-10-23Rework notificationsDavid Göransson1-15/+1
2023-10-13Refactor capitalizeFirstCharOfEachWord to modelDavid Göransson1-6/+0
2023-09-22Support running under build variant app idsAlbin3-10/+14
2023-09-21Use play flavor to comply with policiesAlbin1-9/+0
2023-09-21Apply automatic formatting and cleanup of gradle filesAlbin1-3/+1
2023-08-04Remove targetSdk from libsAlbin1-1/+0
2023-08-04Apply updated ktfmt formattingAlbin1-0/+1
2023-08-03Update lint baselineAlbin1-1/+1
2023-08-03Bump container image, jdk, gradle and agpAlbin1-2/+2
2023-07-28Add account row componentssaber safavi2-0/+23
2023-07-28Move class and action constants to common moduleAlbin2-0/+10
2023-07-28Move common utils to common moduleAlbin9-0/+372
2023-07-27Move common utils to common moduleAlbin6-4/+150
2023-07-27Add empty common moduleAlbin3-0/+40