ThisCalculator

Everyday

Unknown Sources Keeps Turning On: Fixes

Updated · Standard formula, shown below

Checks per day 1.00 /day
Time between checks
24 hours
You entered

Unknown Sources keeps turning back on because another app, a settings sync, or a device administrator policy is re-enabling it, and the fix is to find and disable that trigger rather than just toggling the switch. This guide covers the causes and the steps to stop it for good on Android, plus what to do when the setting is greyed out or controlled by an employer.

What “Unknown Sources” Actually Does

Unknown Sources is the Android permission that lets you install apps from outside the Google Play Store. When it is off, the system blocks APK files from browsers, file managers, email attachments, and third-party app stores. When it is on, those sources can install apps, which is how most malware and bloatware gets onto a device.

Since Android 8.0 (Oreo), the old single toggle was replaced with per-app permissions. You no longer enable “Unknown Sources” globally; instead, you grant the specific app (like Chrome or a file manager) the right to install packages. However, many phones still show a master “Unknown Sources” option in developer options or security settings, and that is the one that keeps flipping back on.

Why the Setting Keeps Reverting

There are four common reasons the toggle turns itself back on:

  • Another app is requesting it. When you open a browser or file manager and try to install an APK, Android asks for permission. If you tap “Allow” and then later check the master switch, it may appear on because that app now has install permission.
  • Device administrator apps. MDM (mobile device management) profiles, antivirus suites, or “find my phone” services can force the setting on so they can update themselves.
  • Backup and restore. Restoring from a cloud backup or switching devices can re-enable permissions that were previously granted.
  • A bug or aggressive “optimizer.” Some manufacturer skins (MIUI, One UI, ColorOS) have battery or security optimizers that reset permissions, and occasionally they flip the wrong way.

How to Find Which App Is Re-Enabling It

Instead of guessing, check the app-by-app install permission list. On stock Android, go to Settings → Apps → Special app access → Install unknown apps. You will see a list of every app that can install APKs. Any app with the toggle on is a candidate. Turn them all off, then try to install an APK from a browser. If the browser asks for permission again, you know that was the one.

On Samsung phones, the path is Settings → Biometrics and security → Install unknown apps. On Xiaomi, it is Settings → Apps → Manage apps → (three dots) → Default apps → Install unknown apps. The list is the same concept: it shows which apps have the right to install.

What to Do If It’s Greyed Out or Locked

If the toggle is greyed out or says “Disabled by administrator,” a device policy is controlling it. This happens on:

  • Work or school phones with an MDM profile (Microsoft Intune, VMware Workspace ONE, etc.)
  • Phones with a parental-control app or a family link account
  • Phones with a “secure folder” or Knox container that enforces its own rules

You cannot override a device administrator policy from the settings menu—that is the point. The fix is to remove the managing app. Go to Settings → Security → Device admin apps and uncheck the app that is enforcing the policy. If it is a work profile, you may need to remove the work account entirely. If the phone is company-owned, you likely cannot remove it at all; contact your IT department.

How to Stop It Permanently

Once you have identified the culprit, do these steps in order:

  1. Open Settings → Apps → Special app access → Install unknown apps.
  2. Turn off every app that you do not explicitly trust. At minimum, turn off browsers and file managers unless you are actively installing an APK.
  3. Go to Settings → Security → Device admin apps and uncheck any app that does not need to be an administrator (like a random “cleaner” or “booster”).
  4. Check Settings → Accounts → Backup and disable “Restore automatically” if you suspect a restore is re-adding permissions.
  5. Restart the phone. On some devices, a reboot is enough to stop a stuck permission loop.

If it still turns back on after a reboot, the next step is to clear the cache of the Settings app itself: Settings → Apps → Show system → Settings → Storage → Clear cache. This does not delete personal data, only temporary files.

Is It Safe to Leave It On?

Leaving Unknown Sources enabled for apps you use regularly (like a third-party app store you trust) is not automatically dangerous, but it is a risk. The permission means that app can install anything, and if that app is compromised, the attacker can push malware without asking you again. The safest habit is to turn it on only for the moment you install, then turn it off. If you install APKs more than once a month, consider using a dedicated file manager that you only open for that purpose, and keep its install permission off when not in use.

One common misconception is that Play Protect will catch anything installed via Unknown Sources. Play Protect scans APKs at install time, but it is not a guarantee—new malware can slip through before Google updates the definitions. The permission itself is the real gatekeeper.

Factory Reset as a Last Resort

If the setting still re-enables after all of the above, and you have not installed any suspicious apps recently, a factory reset will clear whatever is forcing it. Before you reset, back up your photos and documents to the cloud or a computer. After the reset, set up the phone as a new device (do not restore from backup) and check the Unknown Sources setting immediately. If it is off and stays off, the problem was in the backup or an app you reinstalled. If it turns on by itself on a fresh phone, the issue is in the firmware itself, and you should check for a system update or contact the manufacturer.

Frequently Asked Questions

Why does Unknown Sources turn back on after I restart my phone?

A restart alone does not change permissions. If it turns on after a reboot, something is re-applying it at boot—usually a device administrator app or a manufacturer “optimizer.” Check the device admin list and the install-unknown-apps list again after the reboot.

Can I install APKs without turning on Unknown Sources?

On Android 8.0 and newer, yes. You grant permission to the specific app (like a file manager) rather than a global switch. The app will ask you once, and you can allow it only for that session. On older Android versions, you must toggle the global switch, but you can turn it off immediately after the install finishes.

Is Unknown Sources the same as “sideloading”?

Yes. Sideloading is the act of installing an APK from outside the official store, and Unknown Sources is the permission that permits it. The terms are often used interchangeably, though “sideloading” can also refer to transferring files between devices.

My phone is from work and the setting is locked. What can I do?

If the phone is enrolled in a work management system, the administrator has locked it deliberately. You cannot bypass it without removing the work profile, which will delete work apps and data. Contact your IT support if you believe the policy is a mistake.

Does turning off Unknown Sources stop all APK installs?

Yes, on stock Android it blocks every install attempt from non-Play-Store sources. Some manufacturer skins have a separate “allow from this source” list, so check both the global toggle and the per-app list to be sure.

Related

Formula used
in t | Time between checks | hours | 24 | 0
out checks | Checks per day | /day | 24 / t | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.