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

Commit a1e65efc authored by Ayush Sharma's avatar Ayush Sharma Committed by Android Build Coastguard Worker
Browse files

Handle error connecting to KeychainService

Bug: 210537972
Test: NA
(cherry picked from commit a93b4fdf)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:82e838218f45e0af3365f3b5fe4d6346b8ad7a41)
Merged-In: If2f41aea48ac9284ad205debb878d633072431f4
Change-Id: If2f41aea48ac9284ad205debb878d633072431f4
parent eab38734
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6515,7 +6515,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
                         KeyChain.bindAsUser(mContext, userHandle)) {
                IKeyChainService keyChain = keyChainConnection.getService();
                return keyChain.setGrant(granteeUid, alias, hasGrant);
            } catch (RemoteException e) {
            } catch (RemoteException | AssertionError e) {
                Slogf.e(LOG_TAG, "Setting grant for package.", e);
                return false;
            }