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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user