Skip to content

FR: Add ability to set default VPN profile through API #1857

@thromer

Description

@thromer

Use case: a scheduler app that changes the VPN profile according to a schedule, using the existing de.blinkt.openvpn.api.ConnectVPN intent.

Problem: the profile selected via ConnectVPN does not persist across restarts.

Suggested solution: Add a new intent for setting the default VPN. For completeness also add it to the AIDL API. I'm happy to propose a PR if this is a sound approach.

Alternatives:

  • I looked at the AIDL API and didn't see an ability to set the default VPN.
  • The scheduler app could try to track VPN status and restarts, and call ConnectVPN again if it isn't clear whether the default VPN profile has replaced the program's preferred profile.
  • I didn't see any past discussion of this use case in the issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions