Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35b79a7d authored by Chad Brubaker's avatar Chad Brubaker
Browse files

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
parent 3416cc28
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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,