Skip to main content
16 votes
Accepted

How to check if a package is enabled via shell?

pm list packages -d 2>/dev/null will list up all disabled packages, one per line, preceded with the keyword package: – so output looks like package:com.android.exchange package:com.android.email ...
Izzy's user avatar
  • 91.2k
10 votes
Accepted

Where is Google's internal account authentication token located?

The authentication token for Google accounts and of other accounts which uses AccountManager class are stored inside: /data/system/users/0/accounts.db # for Android Marshmallow and earlier /data/...
Firelord's user avatar
  • 25.2k
6 votes

How can I disable notification for a specific gmail account during certain hours?

Try the app Quiet for Gmail from here https://play.google.com/store/apps/details?id=com.sgarcia.quiet_for_gmail It toggles the sync of your email accounts on a schedule you can define. In addition to ...
sgc_code's user avatar
  • 171
6 votes

How to detect locked screen in Tasker?

Create a profile Screen Locked triggered on the event Display Off and calling a task that sets a variable %SCREEN_LOCKED to true iff %SCREEN is off. Create another profile Screen Unlocked triggered on ...
Noel Yap's user avatar
  • 211
5 votes

Can I use Tasker to activate grayscale mode on my Galaxy S5 running Marshmallow?

Yes, if you have root access. Tasker does not have the developer options built-in as something it can manage. However, the developer options, like most preferences, are stored in a database behind ...
Stephen S's user avatar
  • 5,407
5 votes

Using OR logic in contexts for Tasker

just posting my solution to this problem if anybody ever comes here: create a profile for each condition in the or statement on enter %Reasons += 1 on exit %Reasons -=1 create a profile with ...
kuba's user avatar
  • 51
5 votes

How can I emulate pressing another application's Quick Settings tile?

In brief Automating an already visible Quick Settings tile # Click on a TileService of the specified component cmd statusbar click-tile com.package.name/.service.QuickSettingsTileComponent # You may ...
Shane S.'s user avatar
  • 151
4 votes
Accepted

Tasker: If variable - not connected to Wifi

You're going about this the wrong way. Go to Profiles → (New profile) → State → Net → Wifi Connected. Leave SSID blank and tick "Invert". Link this profile to a task which ...
SSS's user avatar
  • 499
4 votes
Accepted

How do I use Tasker to download web images and set them as my background?

I just messed around with Tasker a little more and found an answer. For anyone who is curious here it is. 1. Create a new profile set to every 24 hours. 2. Add a new action 3. Search for and select ...
kevinuulong's user avatar
4 votes
Accepted

How to open a file located in a non-sdcard directory in Tasker?

The inbuilt Open File action doesn't seem to work for non-/storage file paths because it is hardcoded (I presumed from its error logs) to only load a file located under /storage/emulated/0. Even if ...
Firelord's user avatar
  • 25.2k
3 votes
Accepted

How to turn off Wi-Fi 15min after it had been turned on?

I am not familiar with Tasker , in Macrodroid another versatile automation app: Trigger : WiFi state change → connected (choose network) Actions: Wait 15 minutes WiFi configure → disable ...
beeshyams's user avatar
  • 41.1k
3 votes

Automatically enable WiFi when you're near a saved network

I had same issue and finally found a link to this project: https://www.reddit.com/r/tasker/comments/8p0ywt/project_share_switching_to_saved_wifi/ The project itself does a bit more, but shows one way ...
Simon's user avatar
  • 31
3 votes

How determine if Java object is null or not in Tasker?

There are two ways you can do null checking of Java objects. The first way, direct from the userguide, is checking of the object Equals null: If A Java object can be directly referenced in a ...
NixillUmbreon's user avatar
2 votes

Root Terminal command to kill or stop a service?

you can execute: pm disable "packagename" to fully hibernate apply pm enable "packagename" to enable again Some info & examples (click images to show larger variant): In case pm disable / ...
Carcheky's user avatar
2 votes
Accepted

Configure Tasker as alarm for date and time

Before you start having us write a new Tasker profile every day (kidding :), let me give you some help to help yourself: My site holds some Tasker Graphs showing you what conditions and tasks are to ...
Izzy's user avatar
  • 91.2k
2 votes
Accepted

Can I get an app package name as a Tasker Variable upon a package updated event?

You can always employ adb at your service to do the hunting on your own. For example: after a successful update of an app if you immediately execute the following command and follow the section ...
Firelord's user avatar
  • 25.2k
2 votes

How to use Tasker to close app on exit

After hours of researching I am pleased to inform you that I have found a way to clear the recent apps lists in Tasker Prerequisites: Autoinput plugin Root Open tasker and head to Task tab: You can ...
xavier_fakerat's user avatar
2 votes

How to check if a package is enabled via shell?

There are apps that have similar names, so just a simple grep might be problematic. Take the following apps for instance. com.amazon.dcp com.amazon.dcp.contracts.framework.library If the short one is ...
5p0ng3b0b's user avatar
  • 144
2 votes

Detect screenshot being taken and disable specific app

It is possible with Macrodroid automation app (free upto 5 macros) and real easy to learn I modified a macro to take screenshots on shaking and added your Twilight app Shaking the device takes ...
beeshyams's user avatar
  • 41.1k
2 votes
Accepted

Is it possible to send a text as my un-rooted device is shutting down using Tasker or any other method?

You should use State > Battery Level as a profile context with minimum and maximum battery as 3%. In the task, You can use %SMSRN to get phone number of last received SMS. Then to check the ...
Ranjit Singh's user avatar
2 votes

WhatsApp Intent

There is no intent to change text status directly but you can use a workaround by using Autoinput which is a tasker plugin. Here is the profile description. You can download XML for easy import here. ...
Ranjit Singh's user avatar
2 votes
Accepted

How to reset location_provider_allowed

You should be able to change it to blank by executing settings put secure location_providers_allowed ' ' If that doesn't work, directly modify the file settings_secure.xml located at /data/system/...
Firelord's user avatar
  • 25.2k
2 votes
Accepted

stop a previuos run of a task in tasker

That's what Tasker offers by default: if a task is already running, either the new instance stops immediately (default IIRC) or the already running one gets stopped. Should be in the advanced setting ...
Izzy's user avatar
  • 91.2k
2 votes

How to use Tasker with the new OpenVPN version?

Ok, thanks to this web. Seems that I am right and the configuration has been changed. The new settings for connecting will be: Send Intent Action:android.intent.action.MAIN Cat:None Extra:de.blinkt....
King Midas's user avatar
2 votes
Accepted

Auto start two apps on split screen after reboot

You can accomplish with automation. Using Automate to demonstrate how to do it: Select the Broadcast Receive block. Click on it, in the Action section, select "Boot completed". Click Done. Select App ...
Reddy Lutonadio's user avatar
2 votes
Accepted

How to change user account with Tasker?

You need root access for this answer to work. Setup this action in a task: Code → Run Shell → Command: am switch-user USER_ID, tick Use Root To know the USER_ID of a user account, see ...
Firelord's user avatar
  • 25.2k
2 votes
Accepted

Why can't Tasker manage battery mode on my rooted Pixel?

As it was confirmed in the comments, Tasker was denied superuser access in the Magisk app. Tasker can enable battery saver. If anyone wants a command-line solution, try this: Code -> Run Shell -> ...
Firelord's user avatar
  • 25.2k
2 votes

Why can't Tasker manage battery mode on my rooted Pixel?

If you use the Magisk app, add superuser permissions at Menu > Superuser > Tasker = ON. That worked for me on Resurrection Remix OS with Android 9.
SnY's user avatar
  • 21
1 vote
Accepted

How to track total time using for any app?

There are many apps that can track time usage: ManicTime, RescueTime, SmarterTime
Ooker's user avatar
  • 516

Only top scored, non community-wiki answers of a minimum length are eligible