Change critical settings with ADB without root

Android Enthusiasts Asked by CDoc on December 17, 2020

I am new to Android “internals”. I am looking for a way to change some settings on my device, just by using ADB, with debug mode enabled, without having root on my phone (warranty issues taken seriously).

The settings I am trying to change are:

  • Turn ON/OFF the unknown sources.
  • Add specified app to device administrators and remove it at any time.
  • Allow / disallow notifications for specific apps.
  • Optimize / do not optimize battery usage for specific apps.
  • Give / take screen capture permissions for specific apps.
  • Enable / disable google scan feature.

Unfortunately I am not a Java programmer, but, if there isn’t a way to do the things above with adb but there is a chance to automate these tasks by using an app, I will try to do it. I just need some directions here. Thanks.

One Answer

No, you cannot change device settings with ADB unless you have root.

$ adb shell

$ settings put system test_variable test_value
Error while accessing settings provider
java.lang.SecurityException: Permission Denial

$ su
# settings put system test_variable test_value
# settings get system test_variable

Answered by Matthew Read on December 17, 2020

Add your own answers!

Related Questions

BLU phone having trouble downloading apps

1  Asked on December 26, 2021 by elena-marriott


Power control widget auto rotate toggle issue

2  Asked on December 24, 2021 by user1014639


Unable to delete a huge UPDATE.APP file on Huawei P8lite

1  Asked on December 24, 2021 by shahrukh-asghar


HTC One M7 – Unauthorized in adb

1  Asked on December 22, 2021 by james-s


ServiceManager: Waiting for service media.audio_policy

1  Asked on December 22, 2021 by rinaldo-jonathan


Gmail is consuming so much data in background

1  Asked on December 22, 2021 by ghassen-rjab


How do I print from Android through my LAN?

1  Asked on December 21, 2021 by peter-raeves


Disable proximity sensor on Nexus 5

1  Asked on December 21, 2021 by gopi


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP