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

Commit 4f05eafd authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Allowing apps under instrumentation who haven't specified a flag to...

Merge "Allowing apps under instrumentation who haven't specified a flag to (temporarily) avoid specifying a receiver exported/not exported flag."
parents 0438d565 70ef9675
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1780,6 +1780,12 @@ class ContextImpl extends Context {
            }
        }
        try {
            ActivityThread thread = ActivityThread.currentActivityThread();
            Instrumentation instrumentation = thread.getInstrumentation();
            if (instrumentation.isInstrumenting()
                    && ((flags & Context.RECEIVER_NOT_EXPORTED) == 0)) {
                flags = flags | Context.RECEIVER_EXPORTED;
            }
            final Intent intent = ActivityManager.getService().registerReceiverWithFeature(
                    mMainThread.getApplicationThread(), mBasePackageName, getAttributionTag(),
                    AppOpsManager.toReceiverId(receiver), rd, filter, broadcastPermission, userId,