Setedit Does Not Currently Support Editing This Table -

adb shell settings put secure lock_screen_allow_private_notifications 0 This method never shows the SetEdit error because it uses the official settings command. For developers only: You can decompile SetEdit, modify its manifest to request WRITE_SECURE_SETTINGS , and recompile it. However, without granting the permission via ADB (Solution 1), the system will still deny access. Common Scenarios Where You See This Error Let’s look at actual user cases where this error appears and how to resolve them:

Use ADB to grant WRITE_SECURE_SETTINGS permission once. Your best fix (root): Grant root access. Your fastest workaround: Use adb shell settings put directly. setedit does not currently support editing this table

adb shell settings put global stay_on_while_plugged_in 1 modify its manifest to request WRITE_SECURE_SETTINGS