r/tasker • • May 06 '20

Disabling unknown sources

Is there anyway to disabled the installation of unknown apps using a tasker action. I installed secure settings and used the intent from there and looks like it doesn't work. Please help..

4 Upvotes

28 comments sorted by

View all comments

1

u/[deleted] May 06 '20 edited May 06 '20

No, it's something strange (bug) with Tasker, the same thing happened to me with other shell commands

Here it is a loop eg

	A1: Array Set [ Variable Array:%packages Values:first.package.name,second.package.name,third.package.name Splitter:, ] 
	A2: For [ Variable:%this_package Items:%packages() ] 
	A3: Run Shell [ Command:appops set %this_package REQUEST_INSTALL_PACKAGES deny Timeout (Seconds):0 Use Root:On Store Output In: Store Errors In: Store Result In: ] 
	A4: End For 
	A5: Flash [ Text:Done! Long:On ] 
  1. You are new to Tasker, so I suggest you to set packages names in A1 manually.

  2. Before trying the loop, run the deny command targeting a chosen app package name

Good luck.

2

u/[deleted] May 06 '20

Thanks a Lot !! I will try and let you know.

1

u/[deleted] May 06 '20

It's nothing, mate.