How to Enable Allow From Unknown Sources via ADB Commands
In this guide, we will show you the steps to enable Allow From Unknown Sources via ADB Commands. But why is there a need to take the help of ADB Commands when you can easily get this job done by enabling a single toggle? Well, there could be quite a few reasons for this. For instance, recently, the Settings menu of my device got corrupted [I was on a custom ROM].
Initially, I thought that shouldn’t be an issue because I had already taken a backup of all the configurations of my device, including the Settings menu. However, to restore the backup, I had to install a third-party app from the dev’s GitHub page [it wasn’t there on the Play Store]. And this is where things went out for a toss. Since the Allow From Unknown Sources was turned off and there was no way of accessing the Settings menu either, I was left with no choice.

The generic Settings menu approach
And guess what? Using a single line of command, you can easily change its value to True and allow installation from unknown sources. Or if you are willing to take it to the next level, you can root your device and manually make changes to this database file! In this guide, we will show you both of these methods. So without any further ado, let’s get started.
- How to Enable Allow From Unknown Sources via ADB Commands Non Root Root
How to Enable Allow From Unknown Sources via ADB Commands

In this guide, we will show you both the root and non-root methods. You may try out the one that is in sync with your requirement [though non-root is recommended, but the choice is all yours!]. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device, and data by performing the below steps.
Non Root
- Download and extract Android SDK Platform Tools on your device.
- Now enable USB Debugging and connect your device to PC via USB.
- After that, open Command Prompt inside platform-tools and type in adb shell settings put global install_non_market_apps 1
- Unknown Sources is now enabled. You may install the desired apps.
- If you want to turn Unknown Sources off via ADB Commands, type: adb shell settings put global install_non_market_apps 0
Root
UPDATE: This method might no longer work on newer Android versions.
- Download and install SQLite Editor from the Play Store.
- Then launch it and tap on Grant in the SuperUser request.
- Under Apps, select Settings Storage > settings.db > Global.
- Tap install_non_market_apps → click edit icon at the top.
- Change the Value to 1 and restart your device. That’s it.
- Install, Uninstall, Send Apps on RayNeo X2 Glasses [ADB Commands]
- Edit Touch and Hold Delay Timings on Android via ADB Commands
- Expand and Collapse the Notifications on Android via ADB Commands
- Install an Older Version of an App on Android without ADB Commands
(Cancel Reply)
Δ