Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android launch app show "Can modify system settings" dialog

I write a simple demo , test a third-party push SDK.

When I launch my demo , system shows me a dialog like this. But the dialog doesn't show up below Android 6.0

enter image description here

How to avoid it when I launch my app except allowing the permission request?

like image 762
TimmyMa Avatar asked Jul 25 '16 13:07

TimmyMa


2 Answers

As per marshmallow and onwards,the app is not allowed the permissions at the time of installation. Rather, the system will ask for required permission at the time in need(only one time if granted).In older versions(<23), apps were granted all required permissions at the time of installation.

Can modify system settings:

This is another new access setting. This is used to do things like read your current settings, turn on Wi-Fi, and change the screen brightness or volume. It's another permission that isn't in the permissions list.

like image 152
Jack Avatar answered Nov 07 '22 22:11

Jack


Seems like my third-party SDK request the WRITE_SETTINGS permission programmatically and launch the “Can modify system settings” dialog.

like image 44
TimmyMa Avatar answered Nov 07 '22 23:11

TimmyMa