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

Commit 4407d43c authored by gang.huang's avatar gang.huang
Browse files

Ignore null action in ActivityManagerService.

Test: Manual.
Change-Id: I0216597a97fa5ca1809bf66f763dd9196eb2a9d0
parent bc6e650b
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -5239,6 +5239,11 @@ public class ActivityManagerService extends IActivityManager.Stub
        mContext.registerReceiver(new BroadcastReceiver() {
        mContext.registerReceiver(new BroadcastReceiver() {
            @Override
            @Override
            public void onReceive(Context context, Intent intent) {
            public void onReceive(Context context, Intent intent) {
                final String action = intent.getAction();
                if (action == null) {
                    return;
                }
                String[] pkgs = intent.getStringArrayExtra(Intent.EXTRA_PACKAGES);
                String[] pkgs = intent.getStringArrayExtra(Intent.EXTRA_PACKAGES);
                if (pkgs != null) {
                if (pkgs != null) {
                    for (String pkg : pkgs) {
                    for (String pkg : pkgs) {