Loading services/devicepolicy/java/com/android/server/devicepolicy/CertificateMonitor.java +5 −5 Original line number Diff line number Diff line Loading @@ -79,16 +79,16 @@ public class CertificateMonitor { X509Certificate cert = parseCert(certBuffer); pemCert = Credentials.convertToPem(cert); } catch (CertificateException | IOException ce) { Slog.e(LOG_TAG, ce, "Problem converting cert"); Slog.e(LOG_TAG, "Problem converting cert", ce); return null; } try (KeyChainConnection keyChainConnection = mInjector.keyChainBindAsUser(userHandle)) { return keyChainConnection.getService().installCaCertificate(pemCert); } catch (RemoteException e) { Slog.e(LOG_TAG, e, "installCaCertsToKeyChain(): "); Slog.e(LOG_TAG, "installCaCertsToKeyChain(): ", e); } catch (InterruptedException e1) { Slog.w(LOG_TAG, e1, "installCaCertsToKeyChain(): "); Slog.w(LOG_TAG, "installCaCertsToKeyChain(): ", e1); Thread.currentThread().interrupt(); } return null; Loading @@ -100,9 +100,9 @@ public class CertificateMonitor { keyChainConnection.getService().deleteCaCertificate(aliases[i]); } } catch (RemoteException e) { Slog.e(LOG_TAG, e, "from CaCertUninstaller: "); Slog.e(LOG_TAG, "from CaCertUninstaller: ", e); } catch (InterruptedException ie) { Slog.w(LOG_TAG, ie, "CaCertUninstaller: "); Slog.w(LOG_TAG, "CaCertUninstaller: ", ie); Thread.currentThread().interrupt(); } } Loading services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +134 −160 File changed.Preview size limit exceeded, changes collapsed. Show changes services/devicepolicy/java/com/android/server/devicepolicy/RemoteBugreportManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -207,7 +207,7 @@ public class RemoteBugreportManager { return true; } catch (RemoteException re) { // should never happen Slog.e(LOG_TAG, re, "Failed to make remote calls to start bugreportremote service"); Slog.e(LOG_TAG, "Failed to make remote calls to start bugreportremote service", re); return false; } finally { mInjector.binderRestoreCallingIdentity(callingIdentity); Loading Loading
services/devicepolicy/java/com/android/server/devicepolicy/CertificateMonitor.java +5 −5 Original line number Diff line number Diff line Loading @@ -79,16 +79,16 @@ public class CertificateMonitor { X509Certificate cert = parseCert(certBuffer); pemCert = Credentials.convertToPem(cert); } catch (CertificateException | IOException ce) { Slog.e(LOG_TAG, ce, "Problem converting cert"); Slog.e(LOG_TAG, "Problem converting cert", ce); return null; } try (KeyChainConnection keyChainConnection = mInjector.keyChainBindAsUser(userHandle)) { return keyChainConnection.getService().installCaCertificate(pemCert); } catch (RemoteException e) { Slog.e(LOG_TAG, e, "installCaCertsToKeyChain(): "); Slog.e(LOG_TAG, "installCaCertsToKeyChain(): ", e); } catch (InterruptedException e1) { Slog.w(LOG_TAG, e1, "installCaCertsToKeyChain(): "); Slog.w(LOG_TAG, "installCaCertsToKeyChain(): ", e1); Thread.currentThread().interrupt(); } return null; Loading @@ -100,9 +100,9 @@ public class CertificateMonitor { keyChainConnection.getService().deleteCaCertificate(aliases[i]); } } catch (RemoteException e) { Slog.e(LOG_TAG, e, "from CaCertUninstaller: "); Slog.e(LOG_TAG, "from CaCertUninstaller: ", e); } catch (InterruptedException ie) { Slog.w(LOG_TAG, ie, "CaCertUninstaller: "); Slog.w(LOG_TAG, "CaCertUninstaller: ", ie); Thread.currentThread().interrupt(); } } Loading
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +134 −160 File changed.Preview size limit exceeded, changes collapsed. Show changes
services/devicepolicy/java/com/android/server/devicepolicy/RemoteBugreportManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -207,7 +207,7 @@ public class RemoteBugreportManager { return true; } catch (RemoteException re) { // should never happen Slog.e(LOG_TAG, re, "Failed to make remote calls to start bugreportremote service"); Slog.e(LOG_TAG, "Failed to make remote calls to start bugreportremote service", re); return false; } finally { mInjector.binderRestoreCallingIdentity(callingIdentity); Loading