am f9c6dbb6: Merge "Add missing conditional in settings provider" into mnc-dev
* commit 'f9c6dbb6d1c2001c0ccd7479668eb59b1d4b7c5c': Add missing conditional in settings provider
This commit is contained in:
@@ -905,7 +905,9 @@ public class SettingsProvider extends ContentProvider {
|
||||
private boolean mutateSystemSetting(String name, String value, int runAsUserId,
|
||||
int operation) {
|
||||
// Check for permissions first.
|
||||
hasPermissionsToMutateSystemSettings();
|
||||
if (!hasPermissionsToMutateSystemSettings()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Verify whether this operation is allowed for the calling package.
|
||||
if (!isAppOpWriteSettingsAllowedForCallingPackage()) {
|
||||
|
||||
Reference in New Issue
Block a user