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

Commit d7ad0b7a authored by Tony Mak's avatar Tony Mak Committed by android-build-merger
Browse files

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

am: 247b9c4a

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