[locksettings] system_server should not call non forUser Settings.Secure.get* methods

BUG: 166312046
Test: builds
Change-Id: I167b60c2d9b56f84fd4bd001b3bffdc76d275246
This commit is contained in:
Songchun Fan
2020-09-03 15:37:09 -07:00
parent 4743509c7e
commit b10389457f

View File

@@ -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);
}