zaneschepke / wgtunnel

An alternative Android client app for WireGuard VPN
https://zaneschepke.com/wgtunnel-docs
MIT License
928 stars 47 forks source link

[FEATURE] - Shortcuts on Android TV #451

Closed pedorich-n closed 3 days ago

pedorich-n commented 5 days ago

Is your feature request related to a problem? Please describe. I would like to use Shortcuts (Intents) to automate some flows on my AndroidTV. Currently in app v3.6.0 or nightly (https://github.com/zaneschepke/wgtunnel/commit/b2938c3ac888566422e476a3b08c9c4f7f9b5215), there's no "Enable app shortcuts" switch in the settings.

When I try to run the intent via adb I get just this, but nothing actually happens

Starting: Intent { act=START cmp=com.zaneschepke.wireguardautotunnel.nightly/com.zaneschepke.wireguardautotunnel.service.shortcut.ShortcutsActivity (has extras) }

Command used (based on the comment):

adb shell am start -n com.zaneschepke.wireguardautotunnel.nightly/com.zaneschepke.wireguardautotunnel.service.shortcut.ShortcutsActivity -a START --es className WireGuardTunnelService --es tunnelName "<name>"

Describe the solution you'd like Switch present in the settings.

Describe alternatives you've considered I tried the official WireGuard app but it also comes with Intents disabled by default and on TV it's not possible to access settings at all 😕

Additional context Could it be the limitation of the system?

AndroidTV 11 Kernel 5.4.210

What I currently see on the settings screen (nightly version) ![image](https://github.com/user-attachments/assets/e4a5107a-f535-40ba-9cc2-b03d35c6f517)
pedorich-n commented 3 days ago

Thanks!