Update pkg mgr flags to match uninstalled component for GMS
This is required as optional GMS core are installed after the 1st boot. Test: Manually Change-Id: I068c8200da0198f921d1ebe2682c9a5a8bb03d86
This commit is contained in:
@@ -281,8 +281,12 @@ public class QRCodeScannerController implements
|
||||
// Our intent should always be explicit and should have a component set
|
||||
if (intent.getComponent() == null) return false;
|
||||
|
||||
int flags = PackageManager.MATCH_DEFAULT_ONLY | PackageManager.MATCH_DIRECT_BOOT_AWARE
|
||||
| PackageManager.MATCH_DIRECT_BOOT_UNAWARE;
|
||||
int flags = PackageManager.MATCH_DIRECT_BOOT_AWARE
|
||||
| PackageManager.MATCH_DIRECT_BOOT_UNAWARE
|
||||
| PackageManager.MATCH_UNINSTALLED_PACKAGES
|
||||
| PackageManager.MATCH_DISABLED_COMPONENTS
|
||||
| PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS
|
||||
| PackageManager.MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS;
|
||||
return !mContext.getPackageManager().queryIntentActivities(intent,
|
||||
flags).isEmpty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user