summaryrefslogtreecommitdiffhomepage
path: root/android/src/main/kotlin
AgeCommit message (Collapse)AuthorFilesLines
2021-12-16Split Android project and app moduleAlbin212-14389/+0
The purpose of this is to: * Comply better with the default Android project structure (see https://developer.android.com/studio/build). * Avoid conflicts between project and app dependencies and plugins.
2021-12-07Fix custom dns toggle not working after resumeAlbin2-64/+92
Fixes an issue with the custom dns toggle and server list not not working after the app is resumed, due to the logic not being aware of new service connections. The issue was fixed by moving some responsibility from the adapter to the fragment and making sure new service connections triggers new data subscriptions to be set up.
2021-12-07Fix resume navigates backAlbin1-9/+2
Fixes the automatic back navigation when the Android app is resumed by simplifying the state handling (redudant state removed).
2021-11-26Fix banner sometimes incorrectly showingAlbin1-7/+4
2021-11-26Improve tile service connectionAlbin4-23/+79
If the connection from the MullvadTileService to the MullvadVpnService has been lost, the tile service will now detect this and both change the tile state as well as try to reconnect.
2021-11-26Remove notification delete intentAlbin1-10/+1
This change removes the delete intent from the connection state notification, which means that the service will no longer be killed by swiping the notification (when it's not in foreground).
2021-11-26Skip removing notification when service stoppedAlbin1-1/+0
2021-11-26Avoid running in foreground when not connectedAlbin4-35/+5
This change makes the Android service (MullvadVpnService) only run in foreground when connected, compared to previously when it also ran in foreground when the app/ui was in foreground. This change reduces the amount of potential states after the previous work of splitting the app/ui and service into separate processes. It also makes the app/service better aligned with the Android platform, as foreground services only should be used for ongoing operations/work.
2021-11-10Cleanup leftover SDK version checksAlbin5-42/+12
Removes SDK checks for non-supported versions (below version 26).
2021-11-03Automatically disable custom dns when no added serversAlbin2-5/+18
2021-10-06Fix reconnect on app resumeAlbin1-3/+5
Fixes an issue with the app automatically reconnecting each time it's resumed from the background. The issue was caused by the app and service being out-of-sync in terms of split tunneling state during app resume, which was fixed by comparing the new and old state in the service before notifying other components.
2021-08-26Add ViewIntent for system apps appearingAleksandr Granin4-5/+34
2021-08-26Update applications filter and data container with system infoAleksandr Granin2-3/+7
2021-08-26Initiate excluded apps list properlyAleksandr Granin1-1/+1
2021-08-19Fix focus issue when in some cases value of MTU was erasedAleksandr Granin1-2/+2
2021-07-06Fix issue with app never requesting VPN permissionEmīls1-0/+5
2021-06-18Update account history RPCsDavid Lönnhager8-35/+29
2021-05-28Show TV-only apps in the Split Tunneling screenJanito Vaqueiro Ferreira Filho1-1/+2
These apps don't hvae a normal launch intent. They have a leanback launch intent instead, and this changes the filtering code to show all apps that has either a normal launch intent or a leanback launch intent.
2021-05-14Refactor `TileService` to use flow based APIJanito Vaqueiro Ferreira Filho1-31/+21
2021-05-14Provide flow of tunnel statesJanito Vaqueiro Ferreira Filho1-0/+17
2021-05-14Unregister listener when scope or flow is closedJanito Vaqueiro Ferreira Filho1-7/+28
2021-05-14Handle requests to unregister listenersJanito Vaqueiro Ferreira Filho1-2/+16
2021-05-14Add `Request.UnregisterListener` variantJanito Vaqueiro Ferreira Filho1-0/+3
2021-05-14Replace registration queue with command channelJanito Vaqueiro Ferreira Filho1-9/+17
2021-05-14Store listeners in a map with IDsJanito Vaqueiro Ferreira Filho1-5/+5
2021-05-14Include a listener ID in `Event.ListenerReady`Janito Vaqueiro Ferreira Filho2-2/+14
2021-05-14Create a new flow-based `ServiceConnection` classJanito Vaqueiro Ferreira Filho1-0/+65
2021-05-14Add `Messenger` parameter to `ListenerReady`Janito Vaqueiro Ferreira Filho2-2/+3
It's currently redundant, but it will help with the code when it uses flows.
2021-05-14Create `Context.bindServiceFlow` extension methodAleksandr Granin1-0/+27
2021-05-14Create `HandlerFlow` helper typeJanito Vaqueiro Ferreira Filho1-0/+45
A handler message loop that can be used as a `Flow`.
2021-05-14Create `DispatchingFlow` helper typeJanito Vaqueiro Ferreira Filho1-0/+49
2021-04-29Clean-up obsolete tunnel state persistence dataJanito Vaqueiro Ferreira Filho1-0/+6
2021-04-29Remove tunnel state storage in shared preferencesJanito Vaqueiro Ferreira Filho4-113/+0
2021-04-29Use an IPC connection for the tile serviceJanito Vaqueiro Ferreira Filho1-5/+29
2021-04-29Make `onServiceReady` parameter optionalJanito Vaqueiro Ferreira Filho1-2/+2
2021-04-29Fix incorrect `super` method callJanito Vaqueiro Ferreira Filho1-1/+1
2021-04-29Create `updateTunnelState` helper methodJanito Vaqueiro Ferreira Filho1-13/+13
2021-04-29Remove redundant `null` service conn. notificationJanito Vaqueiro Ferreira Filho1-1/+0
2021-04-29Notify `null` service connection after unbindingJanito Vaqueiro Ferreira Filho1-0/+2
2021-04-23Use new error enum. in `VoucherSubmissionResult`Janito Vaqueiro Ferreira Filho2-16/+10
2021-04-23Create `VoucherSubmissionError` enumerationJanito Vaqueiro Ferreira Filho1-0/+12
2021-04-23Remove redundant `Parcelable` super-class markerJanito Vaqueiro Ferreira Filho1-5/+5
2021-04-23Make `VoucherSubmissionResult.Ok` a `data class`Janito Vaqueiro Ferreira Filho1-1/+1
2021-04-23Remove unnecessary `apply` blockJanito Vaqueiro Ferreira Filho1-3/+1
2021-04-23Remove `ServiceInstance`Janito Vaqueiro Ferreira Filho2-29/+3
2021-04-23Remove `LocalBinder` classJanito Vaqueiro Ferreira Filho1-11/+0
2021-04-23Replace `LocalBinder` usage with service channelJanito Vaqueiro Ferreira Filho3-36/+17
2021-04-23Refactor to centralize handling of service conn.Janito Vaqueiro Ferreira Filho1-11/+13
2021-04-23Configure class loaders for received messagesJanito Vaqueiro Ferreira Filho1-0/+2
2021-04-23Remove daemon instance from service connectionJanito Vaqueiro Ferreira Filho4-10/+4