[locksettings] system_server should not call non forUser Settings.Secure.get* methods
BUG: 166312046 Test: builds Change-Id: I167b60c2d9b56f84fd4bd001b3bffdc76d275246
This commit is contained in:
@@ -837,7 +837,7 @@ public class LockSettingsService extends ILockSettings.Stub {
|
||||
if (getString("migrated", null, 0) == null) {
|
||||
final ContentResolver cr = mContext.getContentResolver();
|
||||
for (String validSetting : VALID_SETTINGS) {
|
||||
String value = Settings.Secure.getString(cr, validSetting);
|
||||
String value = Settings.Secure.getStringForUser(cr, validSetting, cr.getUserId());
|
||||
if (value != null) {
|
||||
setString(validSetting, value, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user