Activating quick setting tile of a 3rd party app using Tasker possible? - Tasker Tips & Tricks

I've seen a lot of automation apps that allow you to make a quick settings tile to perform custom tasks, but I want to do the reverse. Certain apps on my phone like PIA VPN have a quick settings tile and it's the only way to toggle the VPN without the UI showing up. I would like to use it with MacroDroid/Tasker. Is there a universal method of activating quick settings tile of a 3rd party app with Tasker/MacroDroid without touch shenanigans? Thanks.

I've seen on Reddit that you can potentially do this through Tasker's "Launch App" action.
When you're in the screen selection for the app, instead of taping on the app (here PIA VPN), long press on it and you'll see some different options. Hopefully there is one related to the tile. Reddit post mentions it as: LaunchVPNForTileService

downloaderfan said:
I've seen a lot of automation apps that allow you to make a quick settings tile to perform custom tasks, but I want to do the reverse. Certain apps on my phone like PIA VPN have a quick settings tile and it's the only way to toggle the VPN without the UI showing up. I would like to use it with MacroDroid/Tasker. Is there a universal method of activating quick settings tile of a 3rd party app with Tasker/MacroDroid without touch shenanigans? Thanks.
Click to expand...
Click to collapse
I use PIA also but I run mine through OpenVPN. I can connect and disconnect through it whenever I am connected through my work network. It does pop up the app but it closes automatically. On disconnect, it doesn't show
https://forum.xda-developers.com/showpost.php?p=71207640&postcount=9

sumotori1 said:
I've seen on Reddit that you can potentially do this through Tasker's "Launch App" action.
When you're in the screen selection for the app, instead of taping on the app (here PIA VPN), long press on it and you'll see some different options. Hopefully there is one related to the tile. Reddit post mentions it as: LaunchVPNForTileService
Click to expand...
Click to collapse
Yeah, for PIA, there happens to be a tile service activity which can be used to do the same as it's quick setting tile, but this doesn't seem to be universal. Even Shazam has a tile to auto-shazam, but there isn't any tile service activity associated with it that I could find. (Not that I want to use auto-shazam with tasker.) I was wondering whether there was a universal solution to this, just like how IntentTask allows you to use ANY app shortcut with Tasker. Guess we'll have to wait until some dev comes up with an app to solve this problem. Thanks.

Related

APP Idea

Wondering if some of the bright developers around here would be interested in creating a configurable wiget to make things like turning WiFi on or off a one click operation - vs scrolling to settings, clicking to open it, clicking Wireless Networking, clicking WiFi to turn it on or off. Same thing for turning on/off 3G/4G, etc.
Even having a one click shortcut that would take you automatically to the Wireless Networking configuration screen would be a big improvement. Kind of like the ability to send a shortcut from the Wireless Networking Utility in Control Panel to the desktop in Windows.
Or is there already something out there to do this?
Try widgetsoid.. thats what I use on my Streak..it pretty nifty, you can add a lot of shortcut settings on the widgets.
Android also has a shortcut for indivual settings. Just add shortcuts>select shortcuts>settings>pick settings you want to appear on your screen..
One thank you point for ramtix...
Zeam Launcher does a lot of what I wanted, but I'm still willing to try wigetsoid...

[Q] Lockscreen security toggle?

I'd like to turn the lockscreen security off in areas where I feel secure doing so. When i'm out taking public transportation or any other areas with any risk, i'd like the ability to easily turn security on.
Right now i'm using Xposed Framework with GravityBox 2.6.1. I'd prefer there to be a quick settings toggle that enabled/disabled the lockscreen security but didn't see that option in GravityBox (would request it in the thread for it but it looks like I can't until I post more here?).
Does anyone else have a setup similar to what i'm trying to achieve?
"No Lock Screen" app doesn't seem to work. Currently using "Toggle Lock" which does work as a widget but the size of it is so small at 1x1 (have to resize to enlarge but ends up taking too much space). Also the problem with toggle lock is if you close the Toggle Lock app in the multi-tasking in seems to break this setup.
EDIT: Toggle Lock has issues too after awhile it still asks for unlock randomly when launching apps/notifications
I used Tasker combined with Secure Settings (both on play store) to achieve something similar. When I'm connected to my home wifi, my password is disabled. When I'm connected to no wifi or any other wifi, my password is enabled.
I know this isn't the same as having a single press to toggle the password on and off, but since you can create a tasker task to do this, I imagine it can't be that hard to use Tasker App Factory to make an app that toggles the password on and off. Then just put that app on your home screen and you should be good to go.
Thanks! I'll look into that. The toggle lock app seems to have problems.
This works for me https://play.google.com/store/apps/details?id=org.jraf.android.nolock
Sent on my Moto X
flashallthetime said:
This works for me https://play.google.com/store/apps/details?id=org.jraf.android.nolock
Sent on my Moto X
Click to expand...
Click to collapse
Thanks! I tried and it seemed to work great at first (no issues with closing the app by mistake). Then i noticed later on how the phone would be unlocked yet accessing text messages from the notification bar would request the password.
What I ended up doing was setting a shortcut for Nova launcher 'Activities' > 'Settings' > 'Unlock selection' ChooseLockGeneric. This allows me to get to that settings page quickly and directly but I have to manually set up the password each time. Works though!

Toggle data tile.

Currently it takes a swipe and 4 taps to turn data on from the tile. A swipe down on notification, tap on data tile, tap data switch and two back buttons return you to yr app. Would be great if the tile was an on and off switch. Has anyone a way around this i wonder ?
I would like to know that too.
I have tried some custom quick tiles app which require root but they work sometimes only and result in battery drain due to wakelocks from android system.
Maybe power toggles from the play store. And run it as a widget.
veroby said:
Currently it takes a swipe and 4 taps to turn data on from the tile. A swipe down on notification, tap on data tile, tap data switch and two back buttons return you to yr app. Would be great if the tile was an on and off switch. Has anyone a way around this i wonder ?
Click to expand...
Click to collapse
Notification Toggles
Using third party notification tiles, comment 2 covers that. Just a matter of identifying which system app is responsible for quick tiles and someone who writes code tinkering with that app. Has anyone done it yet. I'd be surprised not as this little thing is kinda crazy....

How to activate/deactivate a qs tile upon screen off/on?

In android 10,a new feature called as TURN ALL SENSORS OFF is available in developer settings. It also has a qs tile.
Is there a way to automatically enable this feature upon screen off and then disable upon screen on?
The obvious answer is absolutely yes using AutoInput to emulate the touches. That can also be done with more effort using just built in Tasker actions.
However, it's possible (likely?) That there is a secure setting that controls this action. You can sort that out by comparing the secure settings before and after toggling the tile. The AutoTools secure settings action has an assistant that may help you sort this out.
ktmom said:
The obvious answer is absolutely yes using AutoInput to emulate the touches. That can also be done with more effort using just built in Tasker actions.
However, it's possible (likely?) That there is a secure setting that controls this action. You can sort that out by comparing the secure settings before and after toggling the tile. The AutoTools secure settings action has an assistant that may help you sort this out.
Click to expand...
Click to collapse
1) In android 10,there is an option to disable all sensors in developer options. So i turned it on last night, and battery drain was less than 2 % in 4 hrs, compared to 1% per hour usually, with volte and 4g data on. I would get more accurate stats later on.
There's a qs tile available to activate it.
What I want to ask is, is there a way to automatically enable it every time the screen goes off, and then disable it when screen goes on, without any user input?Either as a shortcut or as a qs tile.
2) I am afraid i don't have enough knowledge to exactly understand the steps you are telling. Do you know of a pre made recipe to execute this. I tried to search but in vain. Or if you are on android 10,maybe you can try doing what i need.
Thank you.
There are loads of tutorials available to use the AutoInput plugin.
As far as issuing the native tasker custom setting action;
Create a new task
Add a Settings -> Custom Setting action
A developer settings action is probably a global setting but you may have to explore
When you are in the configuration for the Custom Setting action, use the magnifying glass and Find to identify the setting you want. A pop-up will appear directing you to ok out of the instructions then go to the setting you want to manage, activate the setting and return to Tasker. Then hit the magnifying glass again and if the setting was identified, it will display in the pop-up where you can select it.
No offence, even if I were on A10, this can be done with a basic understanding of Tasker so I wouldn't create a project for it. If you are still unsure what to do, please take the time to work through some basic tasker tutorials to gain familiarity with the app.
ktmom said:
There are loads of tutorials available to use the AutoInput plugin.
As far as issuing the native tasker custom setting action;
Create a new task
Add a Settings -> Custom Setting action
A developer settings action is probably a global setting but you may have to explore
When you are in the configuration for the Custom Setting action, use the magnifying glass and Find to identify the setting you want. A pop-up will appear directing you to ok out of the instructions then go to the setting you want to manage, activate the setting and return to Tasker. Then hit the magnifying glass again and if the setting was identified, it will display in the pop-up where you can select it.
No offence, even if I were on A10, this can be done with a basic understanding of Tasker so I wouldn't create a project for it. If you are still unsure what to do, please take the time to work through some basic tasker tutorials to gain familiarity with the app.
Click to expand...
Click to collapse
Will follow the steps. If I encounter any issues, will reply back here.
Big thanks.

Question Quick settings data toggle???

I just got my mother a pixel 7 for her birthday. She's just messaged me asking how to turn on data - as far as we can see there's no quick settings toggle, not even if you go into the extra tiles with the edit button. I've looked on google/xda/youtube and can't find anything. How do you turn data on and off from the quick settings, without going into the settings app and toggling it there?
You have internet tile in quick settings, it manages wifi and data both. In alternative, if you want the old style separated button, there are some ways but i think that they needs root. One way is AOSP mod for example.

Categories

Resources