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

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

Merge "Clear calling identity before binding instant app resolver" into oc-dev

parents f0223b1f f2645400
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.pm.InstantAppResolveInfo;
import android.os.Binder;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
@@ -140,7 +141,12 @@ final class EphemeralResolverConnection implements DeathRecipient {
            if (mRemoteInstance != null) {
                return mRemoteInstance;
            }
            long binderToken = Binder.clearCallingIdentity();
            try {
                bindLocked(token);
            } finally {
                Binder.restoreCallingIdentity(binderToken);
            }
            return mRemoteInstance;
        }
    }