Query all of the components with ACTION_VISUAL_VOICEMAIL_SERVICE_EVENT
To resolve to all voicemail service components in the target package and
find the proper one that is used as the voicemail client package.
Bug: 112438544
Test: CTS test
Change-Id: I8b0fdb3420194b45fd80e1405917ec961507b0c9
diff --git a/src/com/android/phone/vvm/RemoteVvmTaskManager.java b/src/com/android/phone/vvm/RemoteVvmTaskManager.java
index 98cb959..50ac669 100644
--- a/src/com/android/phone/vvm/RemoteVvmTaskManager.java
+++ b/src/com/android/phone/vvm/RemoteVvmTaskManager.java
@@ -161,8 +161,7 @@
continue;
}
bindIntent.setPackage(packageName);
- ResolveInfo info = context.getPackageManager()
- .resolveService(bindIntent, PackageManager.MATCH_ALL);
+ ResolveInfo info = context.getPackageManager().resolveService(bindIntent, 0);
if (info == null) {
continue;
}