Source: [Project Share] Toggle settings (e.g. location, mobile data, night mode, more) WITHOUT root
With recent versions of Android, a lot of previously easily toggleable settings are no longer available without root. This is a workaround method to be able to toggle many settings without root. There is however a decent amount of setup. You will have to create an app using Tasker and declare the appropriate permission for toggling secure settings. You will then need to explicitly grant permission to that app. This is to workaround Android's security policy on this permission. Ordinarily, you wouldn't want to grant this level of permission to other apps, but since this an app you're creating yourself, you don't need to worry about it. The actual toggling is done with Java calls.
Continue reading »