Toggle "Unknown Sources" with Tasker Is it possible to toggle the Unknown Source setting with Tasker? I couldn't find such a setting. I also tried the Secure Settings Plugin there is also no action for this.

What I want to achieve is to set this setting on when I start the Amazon AppStore and switch it off when I close it again.

Samsung Galaxy Note, Android 4.1.2 Jelly Bean
This can't be done in a totally automated fashion, as indicated by the accepted answer to this StackOverflow question. Basically, it's against the Android security model to allow Unknown Sources to be changed programmatically.