android.permission.WRITE_SECURE_SETTINGS error
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.
Related videos on Youtube
camelCaseD
I first taught myself engineering when I was 11 years old; my dad brought home a book on HTML4 one night that piqued my interest and made me want to learn more. Today, I am a software engineer with experience in both front and back end products. As an engineer I enjoy the unique problems involved in solving and creating amazing applications. I have worked with Javascript, Node.js, Meteor, Angular, Express, PHP, Laravel, MySQL, and Mongo.
Updated on June 04, 2022Comments
-
camelCaseD almost 2 years
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
-
camelCaseD about 11 years@MiguelRibeiro In order for that to work you need to put the source code of your app within the source of android itself then compile android from source. Then your app will have a system signature. But I wouldn't recommend it because its a breach of trust between you and the user and a security issue.
-