Merge "[SettingsProvider] fix server-side Readable maxTargetSdk check"

This commit is contained in:
TreeHugger Robot
2021-12-28 21:10:22 +00:00
committed by Android (Google) Code Review

View File

@@ -2117,7 +2117,7 @@ public class SettingsProvider extends ContentProvider {
}
if ((ai.flags & ApplicationInfo.FLAG_TEST_ONLY) == 0) {
// 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