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

Commit 1bd943cc authored by Rubin Xu's avatar Rubin Xu
Browse files

Catch IllegalStateException during KeyChain binding

Bug: 309342993
Test: None
Flag: None
Change-Id: If24e549ceb1922ebd462e3d5d4f00dfac065b1de
parent b0ceadb9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -399,7 +399,8 @@ public class SecurityControllerImpl implements SecurityController {
                    UserHandle.of(userId))) {
                boolean hasCACerts = !(conn.getService().getUserCaAliases().getList().isEmpty());
                idWithCert = new Pair<Integer, Boolean>(userId, hasCACerts);
            } catch (RemoteException | InterruptedException | AssertionError e) {
            } catch (RemoteException | InterruptedException | AssertionError
                     | IllegalStateException e) {
                Log.i(TAG, "failed to get CA certs", e);
                idWithCert = new Pair<Integer, Boolean>(userId, null);
            } finally {