Merge "[SettingsProvider] fix server-side Readable maxTargetSdk check" into sc-v2-dev

This commit is contained in:
Songchun Fan
2021-12-30 19:16:13 +00:00
committed by Android (Google) Code Review

View File

@@ -2102,7 +2102,7 @@ public class SettingsProvider extends ContentProvider {
} }
if ((ai.flags & ApplicationInfo.FLAG_TEST_ONLY) == 0) { if ((ai.flags & ApplicationInfo.FLAG_TEST_ONLY) == 0) {
// Skip checking readable annotations for test_only apps // Skip checking readable annotations for test_only apps
checkReadableAnnotation(settingsType, settingName, ai.targetSandboxVersion); checkReadableAnnotation(settingsType, settingName, ai.targetSdkVersion);
} }
/** /**
* some settings need additional permission check, this is to have a matching security * some settings need additional permission check, this is to have a matching security