fix check for provider resolution

Change-Id: I504e16463fbd58fb97a65ca74ffa38697e715652
Fixes: 37547666
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest#testEphemeralQuery
This commit is contained in:
Todd Kennedy
2017-04-24 11:07:17 -07:00
parent 0db9724b6c
commit cc576cfbb4

View File

@@ -7672,6 +7672,7 @@ public class PackageManagerService extends IPackageManager.Stub
}
// instant application; filter out non-exposed provider
if (instantAppPkgName != null
&& !isInstantApp
&& (provider.info.flags & ProviderInfo.FLAG_VISIBLE_TO_EPHEMERAL) == 0) {
return null;
}