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

Commit 7bed530d authored by Todd Kennedy's avatar Todd Kennedy
Browse files

don't blindly reuse content providers

when a provider is already running, we would automatically
give it out to other processes that request it. for instant
apps, don't do that.

Change-Id: I159913adc599e88dac6253104776589592b251fd
Fixes: 37501319
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
parent 3a8d8db6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -11252,6 +11252,10 @@ public class ActivityManagerService extends IActivityManager.Stub
                    holder.provider = null;
                    return holder;
                }
                // Don't expose instant app providers
                if (cpr.appInfo.isInstantApp()) {
                    return null;
                }
                final long origId = Binder.clearCallingIdentity();