Skip to content
Snippets Groups Projects
Commit a93b4fdf authored by Ayush Sharma's avatar Ayush Sharma
Browse files

Handle error connecting to KeychainService

Bug: 210537972
Test: NA
Change-Id: If2f41aea48ac9284ad205debb878d633072431f4
parent dc4d27df
No related branches found
No related tags found
No related merge requests found
......@@ -6471,7 +6471,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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment