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

Commit 6dc1bd35 authored by Rhed Jao's avatar Rhed Jao
Browse files

Support launching apps by package name without visibility

PackageManager#getLaunchIntentForPackage returns null if the caller
is not allowed to query the package. This cl adds a new api using
the same implementation with the #getLaunchIntentForPackage. Instead
of returning the Intent, it returns the IntentSender which is not
restricted by package visibility.

Bug: 175336608
Test: atest android.content.pm.cts.PackageManagerTest
Change-Id: I43524f26b27b2278417dae1a75bcdeb0447b8273
parent 3c2d1e7e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment