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

Commit 6e5e4382 authored by William Loh's avatar William Loh Committed by Android (Google) Code Review
Browse files

Merge "Keep same behavior after initiatingPackageName change" into udc-dev

parents f8662a4f 5d2420d4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -53,7 +53,8 @@ public class AppStoreUtil {
            // so we choose to ignore this when supplied by a non-system app.
            String originatingPackageName = source.getOriginatingPackageName();
            String initiatingPackageName = source.getInitiatingPackageName();
            if (originatingPackageName != null && initiatingPackageName != null) {
            if (originatingPackageName != null && initiatingPackageName != null
                    && !initiatingPackageName.equals("com.android.shell")) {
                ApplicationInfo ai = context.getPackageManager().getApplicationInfo(
                        initiatingPackageName, 0);
                if ((ai.flags & ApplicationInfo.FLAG_SYSTEM) != 0) {