Merge "Fixes "package doesn't belong to uid" exception for DeviceConfig clients calling DeviceConfig's access methods as root or shell."

This commit is contained in:
TreeHugger Robot
2020-02-11 10:12:03 +00:00
committed by Android (Google) Code Review

View File

@@ -2193,7 +2193,7 @@ public class SettingsProvider extends ContentProvider {
if (prefix == null) {
return;
}
String callingPackage = getCallingPackage();
String callingPackage = resolveCallingPackage();
String namespace = prefix.replace("/", "");
if (DeviceConfig.getPublicNamespaces().contains(namespace)) {
return;