Loading packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java +2 −2 Original line number Diff line number Diff line Loading @@ -2470,7 +2470,7 @@ public class SettingsProvider extends ContentProvider { boolean isRestrictedShell = android.security.Flags.protectDeviceConfigFlags() && hasAllowlistPermission; if (!isRestrictedShell && hasWritePermission) { if (hasWritePermission) { assertCallingUserDenyList(flags); } else if (hasAllowlistPermission) { Set<String> allowlistedDeviceConfigNamespaces = null; Loading Loading @@ -2500,7 +2500,7 @@ public class SettingsProvider extends ContentProvider { } if (!namespaceAllowed && !DeviceConfig.getAdbWritableFlags().contains(flag)) { Slog.wtf(LOG_TAG, "Permission denial for flag '" + flag throw new SecurityException("Permission denial for flag '" + flag + "'; allowlist permission granted, but must add flag to the " + "allowlist"); } Loading Loading
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java +2 −2 Original line number Diff line number Diff line Loading @@ -2470,7 +2470,7 @@ public class SettingsProvider extends ContentProvider { boolean isRestrictedShell = android.security.Flags.protectDeviceConfigFlags() && hasAllowlistPermission; if (!isRestrictedShell && hasWritePermission) { if (hasWritePermission) { assertCallingUserDenyList(flags); } else if (hasAllowlistPermission) { Set<String> allowlistedDeviceConfigNamespaces = null; Loading Loading @@ -2500,7 +2500,7 @@ public class SettingsProvider extends ContentProvider { } if (!namespaceAllowed && !DeviceConfig.getAdbWritableFlags().contains(flag)) { Slog.wtf(LOG_TAG, "Permission denial for flag '" + flag throw new SecurityException("Permission denial for flag '" + flag + "'; allowlist permission granted, but must add flag to the " + "allowlist"); } Loading