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:
committed by
Android (Google) Code Review
commit
d3e333c2ab
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user