Allow ephemeral apps to reach any CATEGORY_BROWSABLE

Apps receiving browsable intents should already be prompting the user
before taking any action/making any changes, which is what we want to
ensure for ephemeral apps. This way we don't have to manually mark all
such activities visibleToInstantApps.

Test: cts-tradefed run commandAndExit cts-dev -m
CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: Id64706f993a412f163e533fa85b83f5f466731f7
This commit is contained in:
Chad Brubaker
2017-01-25 14:09:22 -08:00
parent 3416cc2800
commit 35b79a7d44

View File

@@ -5028,9 +5028,7 @@ public class PackageParser {
}
private boolean isWebBrowsableIntent(IntentInfo intent) {
return intent.hasAction(Intent.ACTION_VIEW)
&& intent.hasCategory(Intent.CATEGORY_BROWSABLE)
&& (intent.hasDataScheme("http") || intent.hasDataScheme("https"));
return intent.hasCategory(Intent.CATEGORY_BROWSABLE);
}
private boolean parseAllMetaData(Resources res, XmlResourceParser parser, String tag,