All Discussions
  • Tech Help
  • Disable unknown sources via ADB?

Started by Lcam · Jun 20, 2022

is there a way to disable unknown sources using adb? I am trying to block a phone and I dont want the allowance of downloading 3rd party apps

is there a way to remove the factory reset also?

THE_SOMEONE

DISABLE UNKNOWN SOURCES

(1) adb devices
(2) adb shell
(3) settings put secure install_non_market_apps 1

The command was once on the forum but i dont see it anymore not sure why

you could also disable defcontainer which will blaockany apps from getting installe the command is adb shell pm disable-user com.android.defcontainer