Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android.permission.WRITE_SECURE_SETTINGS error

Hello my problem is that when I try to change weather or not the GPS setting is enabled I get the following error 10-20 05:44:31.890: E/AndroidRuntime(889): java.lang.SecurityException: Permission denial: writing to secure settings requires android.permission.WRITE_SECURE_SETTINGS while in my manifest file I do have the permission listed in the error inside my manifest file.

Manifest:

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

Any help would be appreciated

like image 380
camelCaseD Avatar asked Oct 22 '11 21:10

camelCaseD


People also ask

What is dump permission?

wavelet android. permission. DUMP ), the app can detect and apply audio corrections to many more media player/streaming apps than it could before.

What does READ_PHONE_STATE permission do?

READ_PHONE_STATE is one of the Android permissions categorized as dangerous. This is because it “allows read only access to phone state, including the phone number of the device, current cellular network information, the status of any ongoing calls, and a list of any Phone Accounts registered on the device” [2] .

What is android permission Get_accounts?

android.permission.GET_ACCOUNTS. Allows access to the list of accounts in the Accounts Service. The app uses this permission in an effort to find the device user's name when the support session is presented to a representative.


1 Answers

WRITE_SECURE_SETTINGS is a signatureOrSystem permission, meaning that ordinary SDK applications cannot hold it. Only apps that are related to the firmware can hold this permission.

like image 123
CommonsWare Avatar answered Oct 22 '22 18:10

CommonsWare