Skip to content

feat: add Android App Shortcuts for Samsung/Google Routines#788

Open
keyarr wants to merge 1 commit into
tailscale:mainfrom
keyarr:feature/samsung-routines-app-shortcuts
Open

feat: add Android App Shortcuts for Samsung/Google Routines#788
keyarr wants to merge 1 commit into
tailscale:mainfrom
keyarr:feature/samsung-routines-app-shortcuts

Conversation

@keyarr
Copy link
Copy Markdown

@keyarr keyarr commented May 11, 2026

Add static App Shortcuts (Connect/Disconnect) so Samsung Routines and Google Routines can trigger VPN connect/disconnect actions natively.

Changes:

  • Create shortcuts.xml with static shortcut declarations
  • Add vector drawable icons for connect/disconnect
  • Handle shortcut intents in MainActivity (onCreate + onNewIntent)
  • Add shortcut-specific string resources

The shortcuts target MainActivity with custom intent actions (SHORTCUT_CONNECT/SHORTCUT_DISCONNECT). When triggered, they call startVPN()/stopVPN() directly and finish() the activity immediately.

Existing Tasker/broadcast functionality via IPNReceiver is preserved.

@keyarr keyarr force-pushed the feature/samsung-routines-app-shortcuts branch 2 times, most recently from 7479350 to 3751ca5 Compare May 11, 2026 16:29
@keyarr keyarr changed the title feat: add Android App Shortcuts for Samsung/Google Routines feat: add Android App Shortcuts for Samsung/Google Routines (fix for issue #9531) May 11, 2026
@keyarr keyarr marked this pull request as draft May 11, 2026 16:33
@keyarr keyarr marked this pull request as ready for review May 11, 2026 16:34
@keyarr keyarr closed this May 11, 2026
@keyarr keyarr reopened this May 11, 2026
@keyarr keyarr changed the title feat: add Android App Shortcuts for Samsung/Google Routines (fix for issue #9531) feat: add Android App Shortcuts for Samsung/Google Routines May 11, 2026
Add static App Shortcuts (Connect/Disconnect) so Samsung Routines and
Google Routines can trigger VPN connect/disconnect actions natively.

Changes:
- Create shortcuts.xml with static shortcut declarations
- Add vector drawable icons for connect/disconnect
- Handle shortcut intents in MainActivity (onCreate + onNewIntent)
- Add shortcut-specific string resources

The shortcuts target MainActivity with custom intent actions
(SHORTCUT_CONNECT/SHORTCUT_DISCONNECT). When triggered, they call
startVPN()/stopVPN() directly and finish() the activity immediately.

Existing Tasker/broadcast functionality via IPNReceiver is preserved.

Updates tailscale/tailscale#9531

Signed-off-by: keyar <keyarzera@protonmail.com>
@keyarr keyarr force-pushed the feature/samsung-routines-app-shortcuts branch from 3751ca5 to ac06b11 Compare May 11, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant