Work Profile VPN Switcher
Automatically manage work profile when VPN connects or disconnects
snood21 System
Screenshots
Description
App for automatically managing an Android work profile when a VPN connects.
Monitors VPN connections and automatically disables the work profile while a VPN is active, then restores its state after the VPN disconnects. Useful when the work profile contains apps that should not run through the VPN tunnel, or conversely, when work apps need to be isolated from VPN traffic.
Features:
* Automatic disabling of the work profile when VPN connects
* State restoration after VPN disconnects (optional)
* Tracking manual work profile activation while a VPN is active (optional) — choose whether to disable the profile again, or disable the VPN itself instead, keeping the profile enabled (dummy VPN, requires VPN connection permission)
* Allowlist mode — monitor only selected VPN apps
* Denylist mode — monitor all VPN connections except excluded apps (useful for AdGuard)
* Background polling — fallback VPN-detection mechanism
* Russian and English interface
Requirements:
* Android 11 (API 30) or higher
* A configured work profile (via Shelter or similar app)
* MODIFY_QUIET_MODE permission — granted manually via ADB:
adb shell pm grant io.github.snood21.workprofilevpnswitcher android.permission.MODIFY_QUIET_MODE
* For disabling VPN via the dummy VPN — VPN connection permission, requested through a system dialog when enabling that option
Note: the MODIFY_QUIET_MODE permission must be re-granted after a clean reinstall. It persists through regular updates.
If automatic profile disabling on VPN connect does not work, enable Background polling in Advanced settings. Also allow autostart and set battery mode to No restrictions in system settings.
What’s new (1.2.1)
* Reworked detection of manual work profile enabling for better device compatibility
* Notifications now follow the app language
* Fixed notification status: "VPN active" is shown even if the work profile is already off
* Message when automatic attempts to enable the work profile are exhausted
* Fixed a possible crash in the VPN app picker
* Log is saved immediately, max size limited to 1024 KB
* Better readability of VPN status in the dark theme
Versions
Permissions
What the app asks the system for. Android only grants sensitive access after you confirm it.
- Network stateCheck whether and how the device is connected.
- NotificationsShow notifications.
- Foreground serviceKeep running in the background, visible in the status bar.
- FOREGROUND_SERVICE_SPECIAL_USE
- Run at startupStart automatically after the device is switched on.
- MODIFY_QUIET_MODE
- Installed appsSee which apps are installed.
- VibrationControl the vibration alert.
Show 1 more permissions
- workprofilevpnswitcher.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
Comments