Merge "Get value from setting provider using user id."

This commit is contained in:
Joanne Chung
2021-01-22 01:52:00 +00:00
committed by Android (Google) Code Review

View File

@@ -7689,8 +7689,8 @@ public class AppOpsManager {
if (code != OP_RECORD_AUDIO) {
return false;
}
final String voiceRecognitionComponent = Settings.Secure.getString(
context.getContentResolver(), Settings.Secure.VOICE_RECOGNITION_SERVICE);
final String voiceRecognitionComponent = Settings.Secure.getStringForUser(
context.getContentResolver(), Settings.Secure.VOICE_RECOGNITION_SERVICE, userId);
final String voiceRecognitionServicePackageName =
getComponentPackageNameFromString(voiceRecognitionComponent);