Tasker can't do it because the Tasker developer hasn't taken on the challenge of finding (and maintaining) whatever solution Secure Settings and Macrodroid found. Nor do I think he should. Since secure settings provides a solution that works for Tasker, I think time would be better spent coding things that Tasker can't otherwise do.