diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java
index 9cb3dd6e4c0af..2ace0a211dd67 100644
--- a/core/java/android/app/admin/DevicePolicyManager.java
+++ b/core/java/android/app/admin/DevicePolicyManager.java
@@ -6343,6 +6343,7 @@ public class DevicePolicyManager {
* The settings that can be updated by a profile or device owner with this method are:
*
* - {@link Settings.Secure#DEFAULT_INPUT_METHOD}
+ * - {@link Settings.Secure#INSTALL_NON_MARKET_APPS}
* - {@link Settings.Secure#SKIP_FIRST_USE_HINTS}
*
*
@@ -6351,15 +6352,6 @@ public class DevicePolicyManager {
*
{@link Settings.Secure#LOCATION_MODE}
*
*
- * Note: Starting from Android O, apps should no longer call this method with the
- * setting {@link android.provider.Settings.Secure#INSTALL_NON_MARKET_APPS}, which is
- * deprecated. Instead, device owners or profile owners should use the restriction
- * {@link UserManager#DISALLOW_INSTALL_UNKNOWN_SOURCES}.
- * If any app targeting {@link android.os.Build.VERSION_CODES#O} or higher calls this method
- * with {@link android.provider.Settings.Secure#INSTALL_NON_MARKET_APPS},
- * an {@link UnsupportedOperationException} is thrown.
- *
- *
* @param admin Which {@link DeviceAdminReceiver} this request is associated with.
* @param setting The name of the setting to update.
* @param value The value to update the setting to.
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 7c8e264fe4422..c9b1c9cf27033 100755
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -5216,18 +5216,6 @@ public final class Settings {
*/
public static final String INSTALL_NON_MARKET_APPS = "install_non_market_apps";
- /**
- * A flag to tell {@link com.android.server.devicepolicy.DevicePolicyManagerService} that
- * the default for {@link #INSTALL_NON_MARKET_APPS} is reversed for this user on OTA. So it
- * can set the restriction {@link android.os.UserManager#DISALLOW_INSTALL_UNKNOWN_SOURCES}
- * on behalf of the profile owner if needed to make the change transparent for profile
- * owners.
- *
- * @hide
- */
- public static final String UNKNOWN_SOURCES_DEFAULT_REVERSED =
- "unknown_sources_default_reversed";
-
/**
* Comma-separated list of location providers that activities may access. Do not rely on
* this value being present in settings.db or on ContentObserver notifications on the
diff --git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml
index 720612726a8f5..136f17e5a77c4 100644
--- a/packages/SettingsProvider/res/values/defaults.xml
+++ b/packages/SettingsProvider/res/values/defaults.xml
@@ -38,7 +38,7 @@
true
false
- false
+ true
true