am f86aeb66: am dd2f15a5: Merge "Make sure to check write perms after rewriting destination table" into jb-mr1-dev
* commit 'f86aeb66360bc825090c18851ffb8d89baa000bf': Make sure to check write perms after rewriting destination table
This commit is contained in:
@@ -849,7 +849,6 @@ public class SettingsProvider extends ContentProvider {
|
|||||||
if (TABLE_FAVORITES.equals(args.table)) {
|
if (TABLE_FAVORITES.equals(args.table)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
checkWritePermissions(args);
|
|
||||||
|
|
||||||
// Special case LOCATION_PROVIDERS_ALLOWED.
|
// Special case LOCATION_PROVIDERS_ALLOWED.
|
||||||
// Support enabling/disabling a single provider (using "+" or "-" prefix)
|
// Support enabling/disabling a single provider (using "+" or "-" prefix)
|
||||||
@@ -869,6 +868,9 @@ public class SettingsProvider extends ContentProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check write permissions only after determining which table the insert will touch
|
||||||
|
checkWritePermissions(args);
|
||||||
|
|
||||||
// The global table is stored under the owner, always
|
// The global table is stored under the owner, always
|
||||||
if (TABLE_GLOBAL.equals(args.table)) {
|
if (TABLE_GLOBAL.equals(args.table)) {
|
||||||
desiredUserHandle = UserHandle.USER_OWNER;
|
desiredUserHandle = UserHandle.USER_OWNER;
|
||||||
|
|||||||
Reference in New Issue
Block a user