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

Commit 4f7d56a7 authored by Robin Lee's avatar Robin Lee Committed by android-build-merger
Browse files

Force application context for KeyChain bindings

am: f04a663d

Change-Id: I16c31a9c31527a79addbd2b44003f8fe56cb652f
parents 901ec3d0 f04a663d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -368,7 +368,7 @@ public final class KeyChain {
        if (alias == null) {
            throw new NullPointerException("alias == null");
        }
        KeyChainConnection keyChainConnection = bind(context);
        KeyChainConnection keyChainConnection = bind(context.getApplicationContext());
        try {
            final IKeyChainService keyChainService = keyChainConnection.getService();
            final String keyId = keyChainService.requestPrivateKey(alias);
@@ -412,7 +412,7 @@ public final class KeyChain {
        if (alias == null) {
            throw new NullPointerException("alias == null");
        }
        KeyChainConnection keyChainConnection = bind(context);
        KeyChainConnection keyChainConnection = bind(context.getApplicationContext());
        try {
            IKeyChainService keyChainService = keyChainConnection.getService();