Loading core/java/android/provider/Settings.java +2 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,8 @@ import java.util.Set; * The Settings provider contains global system-level device preferences. */ public final class Settings { private static final boolean DEFAULT_OVERRIDEABLE_BY_RESTORE = false; /** @hide */ public static final boolean DEFAULT_OVERRIDEABLE_BY_RESTORE = false; // Intent actions for Settings Loading packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java +5 −0 Original line number Diff line number Diff line Loading @@ -2778,6 +2778,11 @@ public class SettingsProvider extends ContentProvider { public boolean insertSettingLocked(int type, int userId, String name, String value, String tag, boolean makeDefault, boolean forceNonSystemPackage, String packageName, boolean forceNotify, Set<String> criticalSettings, boolean overrideableByRestore) { if (overrideableByRestore != Settings.DEFAULT_OVERRIDEABLE_BY_RESTORE) { getContext().enforceCallingOrSelfPermission( Manifest.permission.MODIFY_SETTINGS_OVERRIDEABLE_BY_RESTORE, "Caller is not allowed to modify settings overrideable by restore"); } final int key = makeKey(type, userId); boolean success = false; Loading Loading
core/java/android/provider/Settings.java +2 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,8 @@ import java.util.Set; * The Settings provider contains global system-level device preferences. */ public final class Settings { private static final boolean DEFAULT_OVERRIDEABLE_BY_RESTORE = false; /** @hide */ public static final boolean DEFAULT_OVERRIDEABLE_BY_RESTORE = false; // Intent actions for Settings Loading
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java +5 −0 Original line number Diff line number Diff line Loading @@ -2778,6 +2778,11 @@ public class SettingsProvider extends ContentProvider { public boolean insertSettingLocked(int type, int userId, String name, String value, String tag, boolean makeDefault, boolean forceNonSystemPackage, String packageName, boolean forceNotify, Set<String> criticalSettings, boolean overrideableByRestore) { if (overrideableByRestore != Settings.DEFAULT_OVERRIDEABLE_BY_RESTORE) { getContext().enforceCallingOrSelfPermission( Manifest.permission.MODIFY_SETTINGS_OVERRIDEABLE_BY_RESTORE, "Caller is not allowed to modify settings overrideable by restore"); } final int key = makeKey(type, userId); boolean success = false; Loading