I can't enable WRITE_SECURE_SETTINGS for an app over ADB

Search This thread

niallasher

Member
Dec 7, 2016
26
6
I'm using the Chinese Find X, and when I try to give permission to an app to use WRITE_SECURE_SETTINGS via ADB.
I enter this:
adb shell pm grant it.simonesestito.ntiles android.permission.WRITE_SECURE_SETTING
and am met with:
Operation not allowed: java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.

I have never had this problem with a phone, Chinese ROM or not.

I also tried enabling immersive mode, and received:
Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS

I couldn't find anything on Google. Can anybody help me out?
tyia
 

haotingliu1990

Senior Member
Jun 30, 2017
63
23
The more you dig into Chinese rom, the sooner you will find that Chinese android sys is not android, it's AnZhuo......

Apparently, the permission is removed for this operation.
 

France Mari

Member
Oct 13, 2018
35
1
Tagbilaran
erase & format....

Good morning/noon/afternoon and evening... Just asking if there is a easy way to activate the oppo find x PAFM00 version after erasing data and reformat then the device lock and forgot the oppo id to activate? thanks...
 

Kang saab6

New member
May 12, 2021
3
0
Thanks! Worked on my Reno 10x Zoom.
Didn't work for my oppo f9 pro ,COLORos ,also have disable permission monitoring but still same issue I don't know why I tried to grant permission once before after enabling that disable permission monitoring option and it worked but am doing that again after a couple of days but idk why it doesn't work even after enabling that option now,btw I am trying to use root tiles in quick settings and through adb I wanna grant the permissions to use root needing tiled to be enabled
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    last option in dev mode : Disable permission monitoring
    2
    I'm using the Chinese Find X, and when I try to give permission to an app to use WRITE_SECURE_SETTINGS via ADB.
    I enter this:
    adb shell pm grant it.simonesestito.ntiles android.permission.WRITE_SECURE_SETTING
    and am met with:
    Operation not allowed: java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.

    I have never had this problem with a phone, Chinese ROM or not.

    I also tried enabling immersive mode, and received:
    Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS

    I couldn't find anything on Google. Can anybody help me out?
    tyia
    2
    In developer options, enable "USB Debugging (Security settings). If you do not know how to enable developer options in android, search google.
    1
    You have to turn off the last security option in dev mode on your X. Did not remeber the name.
    1
    last option in dev mode : Disable permission monitoring
    Thank you. Spot on!
    I kept getting this error, despite enabling USB debugging, and able to connect with adb shell. And by disabling the permission monitoring setting, I can change the Android settings now, and this is for Realme C2.