On October 2023 Google forbid Tasker from using the Android VpnService class, even though it does not go against the Google Play Store Policy, since it only uses the VpnService to block and unblock apps on the device from accessing the internet.
I tried explaining this to Google, but to no avail.
Version 1.7.0 of Tasker Settings works around that by having Tasker relaying this feature to it. Since Tasker Settings is not on Google Play it can still perform the action normally.
Use
- Tasker 6.2.16-rc or above
- Tasker Settings 1.7.0 or above
Download Tasker Settings 1.7.0 here: https://github.com/joaomgcd/TaskerSettings/releases/download/v1.7.0/Tasker.Settings.1.7.0.apk
After installing this app you must grant it permissions via Android Settings and NOT when the system prompts you. If you grant permissions when it asks you for them it'll simply crash and permissions won't be granted.
To manually grant the permission open Android Settings > Apps > Tasker Settings and allow the permission there.
Important Note: On some Huawei devices you'll need to use the special Huawei/Xiaomi APK below so that when you try to toggle WIFI it won't always ask you for permission to toggle it. More info here: #13
Important Note 2: Android 14+ doesn't allow Tasker Settings to be installed normally. You have to install it via ADB using the following command:
adb install --bypass-low-target-sdk-block FILENAME.apk
Unfortunately there's nothing I can do to change that.
You can setup ADB on your PC as described here.
Note: If it gives you a permission error, make sure to enable developer options and then disable the Check apps installed via USB option.