AnswerBun.com

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
test_value

Answered by Matthew Read on December 17, 2020

Add your own answers!

Related Questions

How many clients can be connected to a WiFi Hotspot?

4  Asked on November 8, 2021 by arun-babu

 

No Mobile Network In Samsung Grand Prime

3  Asked on November 6, 2021 by samnaction

   

Can the LG K20V be rooted?

1  Asked on November 6, 2021 by kellin-baldenegro

   

How to fix a bricked K20 Pro?

1  Asked on October 29, 2021

 

Automatically copy calling phone number in realtime?

0  Asked on October 29, 2021 by omar-ahmed

   

Does Android TV remote always have a back button?

1  Asked on October 29, 2021 by pratap-patil

 

Set fixed BSSID in LineageOS16 / Android

0  Asked on October 29, 2021 by starkus

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP