java – android. permission. WRITE_ SECURE_ Settings error

Hello, my problem is that when I try to change the weather or no GPS settings are enabled, I get the following error 10-20 05:44:31.890: e / Android runtime (889): Java Lang. SecurityException: permission denied: writing to security settings requires Android permission. WRITE_ SECURE_ Settings, and in my manifest file, my manifest file has the wrong permissions

Performance:

<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>

Any help would be appreciated

Solution

WRITE_ SECURE_ Settings is a signatureorsystem permission, which means that ordinary SDK applications cannot accommodate it Only firmware related applications can have this permission

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>