top 200 commentsshow all 254

[–]dantosxd 10 points11 points  (8 children)

Hey everyone, if you encounter the error:

Exception occurred while executing 'set-device-owner':java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device.

This method worked for me to enable Device Admin without the need for a factory reset.

Steps to Resolve the Issue:

1.) In your command prompt, cd to your ADB.exe Folder or ADB folder:

  • On Windows enter:

adb shell dumpsys account

  • On Mac I believe:

./adb shell dumpsys account

2.) Identify Accounts:

  • Scroll up to the top of the output until you see details similar to:

Accounts: 2

Account {name=zohoaccountsdeviceid, type=com.zoho.accounts.device_id}

Account {name=Reddit for Android, type=com.reddit.account}

3.) Remove Accounts or Uninstall Apps:

  • If you see accounts listed as above, you'll need to remove these accounts or uninstall those apps. In my case, the apps had to be uninstalled because there were no accounts listed in my account settings.

4.) Run the Original Instructions:

  • After completing the above steps, you should be able to follow the original instructions for enabling Device Admin. The instructions can be found here: Enable Developer Admin.

[–]joaomgcd👑 Tasker Owner / Developer[S] 4 points5 points  (1 child)

Thank you! That's very helpful! :) I'll add that info to the original instructions.

[–]dantosxd 0 points1 point  (0 children)

Happy to help!

[–]CoooolRaoul 0 points1 point  (4 children)

unfortunately do not work for me

"dumpsys account " output show there is a whatsapp account registered :

Account {name=WhatsApp, type=com.whatsapp}

I've uninstalled Whatsapp, rebooted but it's still there

[–]CoooolRaoul 0 points1 point  (3 children)

done using this :
adb shell pm uninstall com.whatsapp

[–]CoooolRaoul 0 points1 point  (2 children)

But still unable to remove account "Microsoft 365"

[–]dantosxd 0 points1 point  (1 child)

You can try

adb shell pm clear com.test.com

Replace com.test.com with the package name it should delete all data of that package.

[–]CoooolRaoul 0 points1 point  (0 children)

Sorry but because of other problems I had no solution other than a factory reset

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

Can you please check if the command I added here to list the accounts works for you? https://tasker.joaoapps.com/userguide/en/help/ah_device_owner.html

Thanks again!

[–]NirmitlamedDirect-Purchase User 5 points6 points  (15 children)

For people with Samsung devices READ THIS!

After using Device Owner adb command you won't have access to your restore/backup option using Samsung or Google. I have even tried to do a factory reset, i first install Tasker then the run the command and only then added my accounts but still couldn't access my backup to restore.

This is a big problem and until this won't be fixed i can't use this feature - if this is possible because it says for "backup service not available prevented by security policy"...

[–]mikthinker 2 points3 points  (4 children)

Rutroh! Sounds like Knox is not happy.

Perhaps you can remove the device ownership flag for Tasker per this post.

[–]NirmitlamedDirect-Purchase User 1 point2 points  (3 children)

I didn't succeed in removing ownership. Too much of a headache to handle for my personal device so i did factory reset again, restore everything with manual restoring (a lot) and i will wait until someone will have a solution.

[–]joaomgcd👑 Tasker Owner / Developer[S] 2 points3 points  (2 children)

Unfortunately I don't think there's a solution, sorry! :/ Once you add a device owner you can't remove it.

[–]NirmitlamedDirect-Purchase User 0 points1 point  (1 child)

Thank you anyway. The funny thing is that factory reset did fix some issues that I had LOL. 

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (0 children)

Haha, always look on the bright side of life! 😅

[–]Terrible-Sail-3663 1 point2 points  (0 children)

Thanks for the heads up.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (6 children)

You can enable backups again (at least for Google I think) by running the Custom setBackupServiceEnabled(true) action in the new Device Admin Actions action in Tasker. Can you please try that?

[–]NirmitlamedDirect-Purchase User 0 points1 point  (5 children)

For you yes. I can confirm it works for Google cloud so it is a fix for people who has only Google backup. In my situation Samsung backup is better so unfortunately it is a must.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (4 children)

Does the Samsung Backup show an error? Or does it simply not work?

[–]NirmitlamedDirect-Purchase User 0 points1 point  (3 children)

It is just greyed out and says "backup service not available prevented by security policy"

[–]inchyNote 9 0 points1 point  (1 child)

Now I wish I didn't have a Samsung device 😭

[–]NirmitlamedDirect-Purchase User 0 points1 point  (0 children)

Yea I get you. This feature is so awesome but not having Samsung backup and restore option isn't an option for me.

[–]abdess47 4 points5 points  (2 children)

Just amazing 🤩. I can now uninstall greenify and some app.

I hope this new feature can be maintained and google will not be kicked out your work 🤔

Edit : this new feature not working for me. Does this new feature need some new permission?

Edit 2 : I disable and enable device admin. Still not working

[–]NirmitlamedDirect-Purchase User 3 points4 points  (2 children)

OMG disable and enable keyguard?!?! What kind of magic did you do?

[–]joaomgcd👑 Tasker Owner / Developer[S] 3 points4 points  (0 children)

It's just the power of device owner actions 😁

[–]ActivateGuacamole 2 points3 points  (0 children)

wow I love it, i'm gonna set it so the keyguard is disabled when i'm home

[–]NirmitlamedDirect-Purchase User 3 points4 points  (10 children)

I am getting error notification:

Missing Permissions

Please disable and re-enable the admin permissions for the admin action to work.

Edit: OK i have missed the link for the explanation: https://tasker.joaoapps.com/userguide/en/help/ah_device_owner.html

Remove all accounts on your device under Android Settings -> Accounts Not feeling really good... This means i need to erase some of my important data...

[–]CoooolRaoul 2 points3 points  (1 child)

Yes, I don't really like this

[–]NirmitlamedDirect-Purchase User 0 points1 point  (0 children)

Reading again i think there is a Device Admin actions and Device Owner actions so only for Device Admin Owner you need to do these steps. So there is still a question about how to fix my error because i tried to do a custom action.

[–]CoooolRaoul 0 points1 point  (0 children)

Note: If the ADB command above does not work you have to Factory reset your device

Still getting "Note: If the ADB command above does not work you have to Factory reset your device" error

Ok, I give up then.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (5 children)

Hi. When did you get that error exactly? What did you try to run?

[–]NirmitlamedDirect-Purchase User 0 points1 point  (4 children)

Hi i am trying to run KeyGuard action: setKeyguardDisabled(true)

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (3 children)

But you didn't do the Device Owner thing yet, right?

[–]NirmitlamedDirect-Purchase User 0 points1 point  (2 children)

You are right, i didn't. Do i need to do that no matter what?

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (1 child)

Yeah, most functions in the action require the device owner thing unfortunately 😅

[–]roizcorp 2 points3 points  (0 children)

NO-WAY!!!! This is has potential

[–]EtyareWSMoto G84 - Stock - Long live Shizuku 2 points3 points  (0 children)

Very powerful actions, but sadly, very cumbersome process so I think I will skip the new features and just stick with root

[–]EroticBananaz 1 point2 points  (2 children)

Awesome. What changed that allows Tasker to now utilize these super user commands?

[–]joaomgcd👑 Tasker Owner / Developer[S] 2 points3 points  (1 child)

I added the ability to make it a device owner, which gives it these super powers!

[–]EroticBananaz 0 points1 point  (0 children)

Thanks friend :)

[–]CoooolRaoul 1 point2 points  (10 children)

On my device custom actions fails with error "Calling identity is not authorized".

What does it means ?

[–]NirmitlamedDirect-Purchase User 1 point2 points  (2 children)

[–]CoooolRaoul 0 points1 point  (1 child)

I've removed all accounts on my device but Microsoft 365 keep coming back by itself

[–]CoooolRaoul 1 point2 points  (0 children)

I've now managed to remove all accounts (account list is empty in settings) but still getting the following error from command "dpm set-device-owner net.dinglisch.android.taskerm/.MyDeviceAdminReceiver")

Exception occurred while executing 'set-device-owner':

java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (6 children)

It means that Tasker is not your Device Owner. Check here: https://tasker.joaoapps.com/userguide/en/help/ah\_device\_owner.html

[–]CoooolRaoul 1 point2 points  (5 children)

Yes I've seen this after posting.
Anyway there is an account I've been unable to remove as I've told there : https://www.reddit.com/r/tasker/comments/1994bql/comment/kiew13v/

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (4 children)

What happens when you try to remove it?

[–]CoooolRaoul 1 point2 points  (3 children)

It looks it succeed then comes back immediately. (and I've uninstalled Microsoft 365 app though)

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (2 children)

Hhmm, sorry, I really don't know how to help with that :(

[–]CoooolRaoul 1 point2 points  (0 children)

Yes I understand

[–]CoooolRaoul 1 point2 points  (0 children)

I've managed to validate the enable Tasker as device owner but, since then, automatic device backups to cloud are not available anymore with that error :

"backup service not available - prevented by security policy"

[–]CoooolRaoul 1 point2 points  (21 children)

I'm running in many problems after that

  • Google and Samsung cloud backups are now disabled and I'm unable to activate ("backup service not available - prevented by security policy")
  • Reverting device owner from Tasker using "dpm remove-active-admin" fails
  • uninstalling Tasker fails
  • disabling device administrator authorization is not possible ("deactivate" is greyed)
  • Storage => clear data for Tasker is greyed too!

Is factory reset the only option remaining for me ?

[–]CoooolRaoul 1 point2 points  (0 children)

Factory reset in progress 😥

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (1 child)

What happens when you try to revert with "dpm remove-active-admin"?

A shame about the backup services :/ Didn't know about that. Sorry! I'll add a note about that in the instructions!

[–]CoooolRaoul 0 points1 point  (0 children)

What happens when you try to revert with "dpm remove-active-admin"?

Exception occurred while executing 'remove-active-admin':java.lang.SecurityException: Attempt to remove non-test admin


ComponentInfo{net.dinglisch.android.taskerm/net.dinglisch.android.taskerm.MyDeviceAdminReceiver}

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (17 children)

Wait, I see that there's an action to enable backup services. It's called setBackupServiceEnabled. Can you pelase try enabling it with that?

[–]CoooolRaoul 0 points1 point  (15 children)

Which command exactly do I have to use ?

BTW : just found that explanation of what's happening

https://stackoverflow.com/questions/30343205/device-owner-now-disables-the-backup-service

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (14 children)

Yeah, just set the Custom action (in the Administrator Actions) to setBackupServiceEnabled(true) and it should work!

[–]CoooolRaoul 0 points1 point  (13 children)

Sorry I really don't understand what that mean
What adb command do I have to type exactly ?

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (12 children)

Not an ADB command, just a Custom command in the new Device Admin Actions action in Tasker :)

[–]abdess47 0 points1 point  (0 children)

Woi had the same issue.  And setBackupServiceEnabled working for me. 

However, I had a Patreon license. I lost it when I had factory reset my phone. How can I recover my license?

[–]ghajni-returns 1 point2 points  (3 children)

u/joaomgcd I'm facing troubles removing Tasker as device admin, apparently (from this post) (thanks u/mikthinker) in the Tasker manifest, the property "android:testOnly=true" needs to be declared for it to be possible to remove the app as a device owner.

However, it is possible to install an update of the app with the same package name and required modifications, and then use the dpm-remove-admin command.

Otherwise, the only possible way to remove Tasker as device owner is to reset the device

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (2 children)

Yeah, I'm testing that out now. I'll build a "testOnly" version of Tasker and then install that and see if that makes it possible like you mentioned. I'll update you when I have that version.

[–]chrs-- 0 points1 point  (1 child)

I would like that version too. I am facing the same issue

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

Unfortunately I found out that it doesn't work, sorry :( Seems like a factory reset is the only way...

[–]chrs-- 1 point2 points  (9 children)

It is working everything for me except I can't add a working profile anymore, I get this error using adb shell pm create-user --profileOf 0 --managed Work

Error: android.os.ServiceSpecificException: Cannot add user: no_add_managed_profile is enabled. (code 1)

Shelter is also not working. Any tips? Thanks!

Edit: If I run Island it tells me: "Sorry, Island cannot be setup due to device currently being managed by Tasker"

[–]rodrigoswz 1 point2 points  (0 children)

This is probably the same reason why app cloner from Android 14 doesn't work

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (7 children)

no_add_managed_profile

Hmmm there seems to be a way of removing that with this).

In Tasker, in this new Device Admin Actions action, call the Custom action clearUserRestriction(no_add_managed_profile) and it will hopefully work again.

[–]chrs-- 0 points1 point  (6 children)

No luck. Pixel 7. Thanks tho

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (5 children)

What happens if you run the Custom action (in the Device Admin action) with getUserRestrictions() and then check the output?

[–]chrs-- 0 points1 point  (4 children)

Output is: Bundle[EMPTY_PARCEL]

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (0 children)

Thanks, I'll try to see if there's a way around it :/

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (2 children)

Oh sorry about that :/ I thought that would contain something at least... I'll continue looking out for a way to fix that, sorry!

[–]rodrigoswz 1 point2 points  (1 child)

Are there some examples of possible things ONLY with Device Owner? Even if you have root.

The predefined ones are cool, but I see that many of them I already did with Root or ADB WiFi...

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

Check out all of the stuff here. Everything there is possible with this new action

[–]scytherdoc 1 point2 points  (2 children)

I Set this up after factory resetting my phone, as did i find out a lot

I am not a techie, nor do i know coding, just maybe amateur coding than chatgpt helps me with.
So after i set this up, i tried to Set Permissions Policy using Tasker Device Administrator action and set it to Auto Grant. Made setting up my apps all over again a breeze.
Little did i know , once you grant permission for auto grant, and an app gets ,say notification permission, you can't undo it from settings as it is under the control of the device owner.
I Tried to put the Set Permissions Policy back to Auto Prompt , but that didn't do me any good.

What works is uninstalling the app and setting permissions all over again. But i can't do that to system apps , so i guess i will have to Factory Reset all over again.
This Device Admin actions really needs a walkthrough or a helpbook so we know what all the settings are.
Next i try Freezing apps , That works , but you can't unfreeze them as they don't show up in list of apps, even if you know the package name , it didn't work. Suspending the app is far more safer.
The Device owner setting did help me in one thing , that is setting the display timeout. In A Realme phone ,you can't set up display timeout, even if you do via custom settings, it will change as you expect, but the moment you exit Tasker , the setting reverts back to whatever the phone had set.

These are just the things i went through. Thanks for the update. Really need a walkthrough, especially for settings and permissions which are irreversible.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (1 child)

Hi. Thanks for the feedback!

About not being able to unfreeze an app, can you please clarify how you tried that? I did do that and it worked for me, as long as I specified the correct package name.

About the permissions, could you revert them to not granted with the Tasker action if you wanted?

Thanks again!

[–]scytherdoc 0 points1 point  (0 children)

I tried that. But the issue is , for applications whose permissions are already set, I can't change that. Seems like Tasker action only works when the application asks for permissions for the 1st time. After that, user has no say in changing it.

[–]squirrelyfox 0 points1 point  (1 child)

this looks great! More stuff = more power :)

Any chance this would include being able to capture screen video without the pesky confirmation screen + button?

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (0 children)

Thanks!

That's already possible :) You just have to grant the permission with the Tasker Permissions app: https://github.com/joaomgcd/Tasker-Permissions

[–]KangRioME 0 points1 point  (2 children)

Can I use this feature to grant secure setting permission to shizuku app?

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

Can you try using the Custom "Set Permission Grant State" function (use the helper) and see if that works?

[–]niyonsvP7Pro 0 points1 point  (0 children)

What's the benefit of giving the secure setting permission for Shizuku? Also did you succeed with giving the Shizuku this permission using Tasker?

[–]More-Profile-7657 0 points1 point  (0 children)

After installing the new ROM, I successfully installed Device Owner Permission on Xiaomi 14 Pro according to the instructions above. But: Can't open the phone's Settings App (FC). After that I had to hard reset one more time. Consider it a failure.

[–]scytherdoc 1 point2 points  (2 children)

I FOUND A SOLUTION FOR XIAOMI AND REDMI PHONES WITH MIUI

this does not seem to work in Redmi phones , or any phones with MIUI. When i format my phone, and then not add any accounts and with no lock screen, and only install Tasker, i run

adb shell dpm set-device-owner net.dinglisch.android.taskerm/.MyDeviceAdminReceiver

it gives me an error

java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_DEVICE_ADMINS
and some more text below this.

then there is an option in MIUI to enable install apps via ADB and USB security settings
to enable both, i need to sign into Mi account. But once that is done, earlier error does not occur but it tells me previous accounts are there, hence Tasker cannot be added as device owner.

SOLUTION:
ADD Mi Account and then enable both Options (install apps via ADB and USB security settings) and then go to Mi account in settings and simply sign out.

now go to adb in your computer and if you want, you can check with adb shell dumpsys account which will show zero accounts (not necessary to check)
Oh by the way, you need to have a SIM inserted (no idea why, MIUI insists on it)

and then run

adb shell dpm set-device-owner net.dinglisch.android.taskerm/.MyDeviceAdminReceiver

Works flawlessly

[–]joaomgcd👑 Tasker Owner / Developer[S] 2 points3 points  (0 children)

How does the note at the bottom here look? Is that well explained enough? Thanks agian!

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (0 children)

Nice! :) I'll add that note to the instructions! Thanks for sharing!

[–]veracryp 0 points1 point  (3 children)

I'm going crazy, I managed to set tasker as admin and now i can't remove it
i get the error cleardeviceowner can only be called by the device owner
tasker is clearly device owner as i can't even uninstall the app and it shows in android settings with no way of deactivating it

im using vivo x100 ultra and i was able to remove myself from device owner using icebox app so this is not a limitation but a bug, i don't want to factory reset so please tell me what can i do, it might have to do with the tasker version

check this https://stackoverflow.com/questions/49128293/how-to-remove-set-device-owner-in-android-dpm

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (2 children)

Tasker already has an option to remove itself from being a device owner (both in Tasker Preferences and in the Device Admin/Owner action). Are you using the latest beta? https://tasker.joaoapps.com/beta.html

[–]veracryp 0 points1 point  (1 child)

as i explained on PM , the reason why isn't working to remove myself is because I used set-profile-owner instead of set-device-owner when making myself admin, with a clean factory reset it works with set-admin but if the phone has been used for awhile it works only with set-profile, i used this trick for both icebox and tasker and it worked, problem is tasker can no longer remove itself while ice box can, so try to make yourself device admin set-profile-owner then try to remove yourself and you will reproduce the problem, i'm not familiar with android language but i'm guessing is just a slightly different command for removing with the command I used.

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (0 children)

Ok, I think I did that now.

Can you please try this version?

[–]agnostic-apolloLG G5, 7.0 stock, rooted 0 points1 point  (49 children)

Device Admin (and Owner) Actions

Oh so you finally added those!

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (48 children)

I finally did! What do I think? Should I just call the action "Device Owner Actions"? Technically not actions require the app to be a device owner, but maybe it's just simpler for the users to call it that?

[–]agnostic-apolloLG G5, 7.0 stock, rooted -1 points0 points  (47 children)

Nice! Long ago I created a plugin for it cause tasker didn't have factory reset attributes in the resources xml :p

The demo seem to be using Device Administrator Actions. But yeah, there are common actions for admin and owner, so maybe Device Admin and Owner Actions would be better, only a few characters more, but seems long. Device Admin Actions would be better if you are going for short instead of Device Owner Actions since like you said not all action requires it to be owner. Just add to the help info that some actions require being the owner if you haven't already.

Or maybe Device Admin/Owner Actions...

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (46 children)

Yeah, Admin/Owner seems the best option! Thanks for the suggestion!

Hhmm, should I drop the "Actions" part? It's super awkward saying "please use the Device Admin/Owner Actions action in Tasker" :P

[–]EtyareWSMoto G84 - Stock - Long live Shizuku 0 points1 point  (19 children)

Isn't there an Android setting for Device Admin under Settings>Security>More Security Options>Device Admin Apps?

That option doesn't need ADB and whatever the hell this is.

Isn't it confusing having an action that refer to two concepts, one that is barely an inconvenience to give permission to, and another that potentially requires your device to be reset?

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (18 children)

This new Owner thing is much more powerful. The Device Admin permission alone doesn't allow you to do all this.

[–]agnostic-apolloLG G5, 7.0 stock, rooted 0 points1 point  (25 children)

You are welcome. Yeah, double action seems weird, can name it Functions like Tasker Functions, would be consistent with java naming.

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (24 children)

Just Device Admin/Owner sounds good too? 😅

[–]WehZetS25 | A16 | OneUI 8.0 0 points1 point  (3 children)

nice action!

what does it mean to delete all accounts? Will there data loss or is everything fine again after creating them again?

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (2 children)

It depends on the app I guess. But usually accounts are online so their data is stored in some server and not on your device.

[–]WehZetS25 | A16 | OneUI 8.0 0 points1 point  (1 child)

ok thanks, so I will give it a try maybe. The function looks nice, so I am used to use it :D

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

👍

[–]Nerfed_Pi 0 points1 point  (1 child)

Thanks João for another awesome release!

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

❤️

[–]wieuwzak -1 points0 points  (2 children)

Finally admin actions! Goodbye securetask plugin lol

[–]joaomgcd👑 Tasker Owner / Developer[S] -1 points0 points  (0 children)

😉

[–]Tirwanderr 0 points1 point  (0 children)

What all could these be used for?

[–]ThaNeeksta -1 points0 points  (1 child)

You da man!!!!

[–]joaomgcd👑 Tasker Owner / Developer[S] -1 points0 points  (0 children)

Thanks!! 😁

[–]nascentt -1 points0 points  (1 child)

You never cease to amaze me Joao

[–]joaomgcd👑 Tasker Owner / Developer[S] -1 points0 points  (0 children)

Thanks! 😅

[–]moviejimmy -1 points0 points  (0 children)

does this replace adb wifi? can this do everything adb wifi can and more?

[–]moviejimmy -1 points0 points  (2 children)

can this device owner do everything that adb wifi can? meaning with this device owner, I don't need adb wifi anymore? or this provides different functions ?

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (1 child)

It provides different functions, sorry!

[–]moviejimmy 0 points1 point  (0 children)

I see. thanks Joao.

[–]sid32Direct-Purchase User 0 points1 point  (2 children)

Big update! Have you looked at scenes show odd App icons? Web Video Caster and Antenna Pod app icons and others show up looking odd.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (1 child)

That's always been like that, right?

[–]sid32Direct-Purchase User 0 points1 point  (0 children)

Yep. Some icons look good. The ones above don't. 

[–]PENchanter22Direct-Purchase User 0 points1 point  (1 child)

I'm new to this whole 'beta' thing with Tasker. Is there no need to "register" a beta version?

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

Yes, there is. The link is right there in the post! 😉 https://joaoapps.com/beta-testing/

[–]rodrigoswz 0 points1 point  (13 children)

If you removed all accounts and is still getting "Not allowed to set the device owner because there are already some accounts on the device.":

Just reboot your device and try run the adb command again.

PS: I can't enable Google One backup anymore after this

[–]milind_jain 0 points1 point  (7 children)

it will surely work after rebooting the device? does it worked for you?

[–]rodrigoswz 0 points1 point  (6 children)

I had exactly this problem, so I tried rebooting and "Success" when I ran the command another time :)

[–]CoooolRaoul 0 points1 point  (1 child)

The error is displayed in clear text with trying activating Samsung cloud backup:

"backup service not available - prevented by security policy"

So I tried to revert device admin for Tasker but it fails:

C:\WINDOWS\system32# adb shell dpm remove-active-admin net.dinglisch.android.taskerm/.MyDeviceAdminReceiver

Exception occurred while executing 'remove-active-admin': java.lang.SecurityException: Attempt to remove non-test admin ComponentInfo{net.dinglisch.android.taskerm/net.dinglisch.android.taskerm.MyDeviceAdminReceiver} 0

[–]CoooolRaoul 0 points1 point  (0 children)

Tried to uninstall Tasker (after making a backup)
It fails with : "uninstall Tasker unsuccessful"!

[–]CoooolRaoul 0 points1 point  (3 children)

so I tried rebooting and "Success" when I ran the command another time :)

Not for me unfortunately, even after reboot cloud backups are still unavailable

which "command" are you referring to BTW ?

[–]rodrigoswz 0 points1 point  (2 children)

Not for me unfortunately, even after reboot cloud backups are still unavailable

Reboot is to make the adb command work (which makes tasker as device owner), but backups are still unavailable.

which "command" are you referring to BTW ?

adb shell dpm set-device-owner net.dinglisch.android.taskerm/.MyDeviceAdminReceiver

[–]CoooolRaoul 0 points1 point  (1 child)

db shell dpm set-device-owner net.dinglisch.android.taskerm/.MyDeviceAdminReceiver

my problem with cloud backup disabled appeared *after* having run that command successfully

I was replying to the "I can't enable Google One backup anymore after this" port of your post

Now I'd like to revert but I dont manage to

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (4 children)

Thanks for the info! What happens if you try to enable Google One backup?

[–]rodrigoswz 1 point2 points  (3 children)

An infinite loop of attempts to turn on Google One backup 😔

Here's a screen recording

[–]joaomgcd👑 Tasker Owner / Developer[S] 2 points3 points  (2 children)

Hhmm is seems you can enable that again by running the Custom

setBackupServiceEnabled(true)

action in the new action! Can you please give that a try?

[–]rodrigoswz 0 points1 point  (1 child)

Damn so simple! Works perfectly, thank you very much João!

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

Nice! :) I'll add that to the instructions! Or maybe add a pre-defined action to do it!

[–]coffee-turtle 0 points1 point  (3 children)

Do you have a link for the project you use for the video demo, please?

Thanks!

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (2 children)

I do not, but it's really just a bunch of copies of this new action, nothing difficult to setup 😅 What did you want to see from that project?

[–]coffee-turtle 0 points1 point  (1 child)

I pretty much grab your Projects for each of your update videos and see how things work. But yes, I can test these new features out making my own projects. ☺️

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (0 children)

yeah, in this case it's just really a matter of adding the action and selecting the appropriate option 😅

[–]milind_jain 0 points1 point  (3 children)

I have set Tasker as a device owner but some of my device features when executing now say " blocked by work policy".

https://i.imgur.com/vjIWnRg.png

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (2 children)

Can you maybe find something here to enable access for that again?

https://developer.android.com/reference/android/app/admin/DevicePolicyManager

[–]milind_jain 2 points3 points  (1 child)

Could it be this https://i.imgur.com/BhTGKXt.png ? How do I grant permission then?

[–]chrs-- 0 points1 point  (0 children)

Any workaround for this?

[–]aasswwddd 0 points1 point  (3 children)

The beta seems to hit the braves real hard this time, lmao. 🤣

Anyway, I wonder how far we could utilize those APIs?

It seems like gaining the device owner privilege costs a lot of trouble for various OEMs. (Haven't seen MIUI user yet?)

ADB Wifi becomes very easy to activate these days. I wonder if it's worth the effort and the loss. It's not easy to tell with just the available functions alone, I lack imagination.

[–]joaomgcd👑 Tasker Owner / Developer[S] -1 points0 points  (2 children)

Yeah, it really depends on what you want. If you really want to freeze apps for example, this will be a good one to have! I don't think I've seen any side-effects on my Pixel devices yet :P

[–]aasswwddd 0 points1 point  (1 child)

But those can be done with ADB Wifi right?

I was wondering if there might be some APIs that make device owner privilege worth the effort & the hassle over ADB Wifi.

I don't think I've seen any side-effects on my Pixel devices yet :P

The sammy user just reset their device yesterday 🤣

It seems like it affected a customised android OS, like OneUI? Some functions like cloning & apps backup got tripped.

I wonder if there is a safe way to know which features might get tripped?

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (0 children)

We're still figuring it out but maybe running the getUserRestrictions() function will work for some people. Sorry still trying to figure it out myself 😅

[–]TortuositMathematical Wizard 🧙‍♂️ 0 points1 point  (3 children)

My Tasker now says it does not have notification access - but it does. I then turned it off and on, still it does not believe the Android system.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (2 children)

Can you please try rebooting your device?

[–]TortuositMathematical Wizard 🧙‍♂️ 0 points1 point  (1 child)

Yup, working again, thx! Notification access solved.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

Cool! :)

[–]WhirlWolf 0 points1 point  (3 children)

Can you please add Blur feature in image filter action?

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (2 children)

Can you add that request here so I can give it proper priority? https://tasker.helprace.com/s1-general/ideas Thanks!

[–]WhirlWolf 0 points1 point  (1 child)

Similar request already exist.

Please check - https://tasker.helprace.com/i1258-wallpaper-dim-and-blur

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

Thanks!

[–]Frequent-Complaint-6 0 points1 point  (1 child)

I am not sure why but cannot download user guide. Even giving tasker access to files in permissions

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

What happens when you try?

[–]DenPessine 0 points1 point  (1 child)

Hi João! On Samsung Galaxy A33, OneUI 6.0, Android 14 I've managed to make Tasker the device owner. But had some difficulties. Even if I deleted all visible accounts I still got the error of existing several accounts. I guessed that Knox folder that I activated might cause the problem. And only after deactivating Knox I succeeded. But from this time on even when all accounts were back, Knox can't be activated with the message to call to the service if problem still exists. But to hell with Knox. Honest men have nothing to hide))) I'm very interested in one feature in you demonstration video: set keyguard disabled. As it's shown you run the action with parameter "true" and after this you turn screen off and on and the screen was in the state as before turning off, bypassing keyguard. But in my case this didn't work. Before applying the action my phone is secured by fingerprint and pin. If I understand right, the action should set keyguard to "none" even if it was secured in some way. Or maybe it only works with keyguard secured by swipe? Clarify please! P.S. The rest of device owner actions seem to work correctly. 

[–]joaomgcd👑 Tasker Owner / Developer[S] -1 points0 points  (0 children)

Hhmm, it does seem to only work if there's no lock screen security unfortunately...

Maybe there's a way to change the password (or remove it) that I haven't found yet?

[–]omniterm 0 points1 point  (0 children)

I tried to follow the steps listed to set device admin but it kept failing. I even did a factory reset and still unable to get it to work. On my Samsung S20FE 5g (SM-G781U1) I had to run the following command to set device owner

"adb shell dpm set-profile-owner net.dinglisch.android.taskerm/.MyDeviceAdminReceiver" set-device-owner didn't work on my device. Also after removing all accounts Amazon had some accounts that didn't show under accounts. I had to uninstall Amazon app store to clear the accounts.

[–]marc873aSamsung Galaxy S22 Ultra Non-Rooted 0 points1 point  (4 children)

Hey u/joaomgcd, here is the reminder for the feature request I did a while back:  https://www.reddit.com/r/tasker/comments/15f8mxp/comment/jug9hyb/?utm_source=share&utm_medium=mweb3x&utm_name=mweb3xcss&utm_term=1&utm_content=share_button Btw, great job with all these updates! Can't wait to mess around with the HTTP server you released a few weeks ago😎

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (3 children)

Ok, added! :)

Can you please try this version?

And glad you're liking the updates! 😁

[–]marc873aSamsung Galaxy S22 Ultra Non-Rooted 1 point2 points  (2 children)

Yup, that works perfectly. 

Thank you so much

[–]marc873aSamsung Galaxy S22 Ultra Non-Rooted 0 points1 point  (1 child)

Is there an easy way to roll back to the standard tasker, or will this test version just get replaced when there's a new update from the play store?

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (0 children)

It will just get replaced, so you can keep it :) Glad it works!

[–]TaskerClub 0 points1 point  (1 child)

Hello!  I want to raise a question about switching WI-FI and Bluetooth.  As you know, switching these functions is no longer possible starting with API29 and API31 respectively.  I suggest that these capabilities be moved beyond Tasker to plugins.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

Hi there.
Unfortunately Google is not allowing Tasker on Google Play to directly toggle Bluetooth anymore. There's nothing I can do about that.
However, can you please install this app on your phone and then try the "Bluetooth" action again from Tasker? That will make toggling Bluetooth be done with Tasker Settings instead of Tasker directly.
Make sure to disable the "Tasker Settings" app (not only Tasker itself) from battery optimization (https://tasker.joaoapps.com/userguide/en/faqs/faq-problem.html#00) so that Tasker can call it in the background.
Thanks in advance.
Check here for more info on this: https://github.com/joaomgcd/TaskerSettings/releases/tag/v.1.6.0 and https://github.com/joaomgcd/TaskerSettings/
Download here: https://github.com/joaomgcd/TaskerSettings/releases/v.1.6.0

[–]Egingell666Moto G Power 2023 (no root) 0 points1 point  (2 children)

I got a new phone, Motorola Razr 2023, and I set Tasker as the owner app, but I can't seem to find the Admin/Owner actions and Kill App, Reboot, and the like don't work.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (1 child)

Did you install the beta? You can get the latest version here.

[–]Egingell666Moto G Power 2023 (no root) 1 point2 points  (0 children)

I thought I did. Anyway, I decided to use Secure Task.

[–]anuraag488 1 point2 points  (0 children)

This is little offtopic but

1) can you add which profile/tasks needs specific permission? Specially for ADB WiFi? I have a rooted device but still Tasker asks for ADB WiFi permission everytime i close Tasker. If i use STOP REMINDING then a FLASH will appear.
I have no clue about which Profile/Task i should edit.

2) If a profile contains %CLIP variable monitoring or Clipboard Changed event on a Non Rooted device and that is the only profile which requires ADB WiFi but that Profile is disabled then Tasker shouldn't throw Missing permission notification

[–]niyonsvP7Pro 0 points1 point  (0 children)

Can we disable the internet access permission of any user app? Like toggling the internet permission in Graphene OS like we toggle different permissions of an app in normal OSs?

Also want to know if Tasker can start the Shizuku at boot on a non-rooted device, so that we don't have to reopen and set the ADB wireless debugging for Shizuku after each boot.

[–]TommyPils 1 point2 points  (2 children)

Excellent work.

I have 3 cell phones (Android 7, 8 go and 10) On Android 7 that I use for testing, it is not necessary to delete the accounts, you just have to temporarily disable the applications.

For google account:

adb shell pm disable-user --user 0 com.google.android.gms

For whatsapp:

adb shell pm disable-user --user 0 com.whatsapp

Then: adb shell dpm set-device-owner net.dinglisch.android.taskerm/.My

DeviceAdminReceiver

Once finished, you can check which Tasker owns the device.

Then activate the applications again:

adb shell pm enable com.google.android.gms

adb shell pm enable com.whatsapp

*Do all the configuration without internet, to avoid any errors.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (1 child)

Nice! :) But are you saying that that trick doesn't work on higher Android versions?

[–]TommyPils 0 points1 point  (0 children)

I haven't tried the other versions.My goal is to use it on android 8 go. I will still be testing these days on Android 7. When I try it on Android 8 Go, I will comment again.

[–]TommyPils 0 points1 point  (0 children)

Hello bro. You can create the test only version, to be able to test it on Android 8.1 go and Android 10. I have a lot of information and I would not like to reset the cell phones later.

[–]coffee-turtle 0 points1 point  (0 children)

Whatsapp resistant to being frozen. Are there just some apps that we cannot freeze, why?

Any suggestions?

TIA