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

Commit e709cb85 authored by Michael Groover's avatar Michael Groover Committed by Android (Google) Code Review
Browse files

Merge "Remove isInstrumenting workaround from receiver flag enforcement"

parents c0d2dfe2 29767611
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -1814,12 +1814,6 @@ 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,