Skip to content

Set MullvadVPNService as non-sticky#9289

Open
Pururun wants to merge 1 commit intomainfrom
frequent-disconnected-notifications-from-mullvad-android-app-droid-2210
Open

Set MullvadVPNService as non-sticky#9289
Pururun wants to merge 1 commit intomainfrom
frequent-disconnected-notifications-from-mullvad-android-app-droid-2210

Conversation

@Pururun
Copy link
Contributor

@Pururun Pururun commented Nov 10, 2025

If it is set to sticky it could cause unintended behavior in some cases.

To be more precise the service would restart over and over again even though the app was disconnected.

This has been tested for the one user that reported this behavior, just needs to make sure that it does not break any normal behavior.


This change is Reviewable

@Pururun Pururun requested review from Rawa, albin-mullvad and kl November 10, 2025 13:01
@Pururun Pururun added the Android Issues related to Android label Nov 10, 2025
@linear
Copy link

linear bot commented Nov 10, 2025

@Pururun Pururun changed the title Set MullvdVPNService as non-sticky Set MullvadVPNService as non-sticky Nov 10, 2025
If it is set to sticky it could cause unintended behavior in some cases.
@Pururun Pururun force-pushed the frequent-disconnected-notifications-from-mullvad-android-app-droid-2210 branch from d308ed3 to 1f021d0 Compare November 10, 2025 15:18
Copy link
Collaborator

@Rawa Rawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Rawa reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion


android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadVpnService.kt line 136 at r1 (raw file):

        }

        return START_NOT_STICKY

I'm think we need to think this through a bit more. According to https://stackoverflow.com/a/9441795 this should only apply when memory runs out. I'm not sure if it is true or not. But we should investigate if it is the correct route to go.

@Pururun Pururun added the On hold Means the PR is paused for some reason. No need to review it for now label Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android Issues related to Android On hold Means the PR is paused for some reason. No need to review it for now

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants