WRITE_SECURE_SETTINGS permission error even when added in Manifest

前端 未结 6 1075
南方客
南方客 2020-11-28 14:28

I have added \"android.permission.WRITE_SECURE_SETTINGS\" in the Manifest. But still i get an error message saying - required \"WRITE_SECURE_SETTINGS\".

I have seen

6条回答
  •  时光取名叫无心
    2020-11-28 15:00

    For the api that I used, which required WRITE_SECURE_SETTINGS privileges, I had to include this in the manifest:

    
    
    
    ...
    

    ref: https://github.com/android/platform_packages_apps_settings/blob/master/AndroidManifest.xml

    I also had to run the application as a system app (under: /system/app). Here is an how to: http://www.addictivetips.com/mobile/how-to-install-any-app-as-system-app-on-android/

提交回复
热议问题