How can I find all the packages with a particular intent filter?
问题 I need to get the names of all the installed packages whose names being with com.mridang . In order to do this, I'm using something on the lines of the following snippet: for (PackageInfo pkgPackage : mgrPackages.getInstalledPackages(0)) { if (pkgPackage.applicationInfo.packageName.startsWith("com.mridang.")) { System.out.println(pkgPackage.applicationInfo.packageName); } } I need to only get the names of those packages which have a service containing the following intent filter com.google