After installing the application with instructions on AndroidManifest.xmlfollow
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
You must also run Settingsby followingadb
adb shell am start -S com.android.settings/.Settings
Then click APPS>YOUR_APP, then click permission.
Now the switch can be clicked. Therefore, AT is not granted permission. It must be provided manually.
source
share