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

Commit 1ab548f5 authored by Adnan Begovic's avatar Adnan Begovic
Browse files

am: Don't take down activity process if target intent component is null.

  When no activity exists to handle a given action, the target component
  of the resolve will be null. Ignore this scenario for protected apps
  checks since there can be no component to protected.

TICKET: CYNGNOS-1755
Change-Id: I25d7d15d17c4b5ccd4fe9db6e6c9d57088feba2f
parent 1991db98
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -974,7 +974,7 @@ public final class ActivityStackSupervisor implements DisplayListener {

            try {
                //TODO: This needs to be a flushed out API in the future.
                if (AppGlobals.getPackageManager()
                if (intent.getComponent() != null && AppGlobals.getPackageManager()
                        .isComponentProtected(callingPackage, intent.getComponent(), userId)) {
                    Message msg = mService.mHandler.obtainMessage(
                            ActivityManagerService.POST_COMPONENT_PROTECTED_MSG);