Loading keystore/java/android/security/CertTool.java +5 −1 Original line number Diff line number Diff line Loading @@ -209,6 +209,10 @@ public class CertTool { } freeX509Certificate(handle); } if (intent != null) context.startActivity(intent); if (intent != null) { context.startActivity(intent); } else { Log.w("CertTool", "incorrect data for addCertificate()"); } } } packages/VpnServices/src/com/android/server/vpn/VpnService.java +0 −7 Original line number Diff line number Diff line Loading @@ -256,9 +256,6 @@ abstract class VpnService<E extends VpnProfile> implements Serializable { if (mState == VpnState.IDLE) return; // keep the notification when error occurs if (!anyError()) mNotification.disableNotification(); restoreOriginalDns(); restoreOriginalDomainSuffices(); mState = VpnState.IDLE; Loading @@ -269,10 +266,6 @@ abstract class VpnService<E extends VpnProfile> implements Serializable { mContext.stopSelf(); } private boolean anyError() { return (mError != null); } private void restoreOriginalDns() { // restore only if they are not overridden String vpnDns1 = SystemProperties.get(VPN_DNS1); Loading Loading
keystore/java/android/security/CertTool.java +5 −1 Original line number Diff line number Diff line Loading @@ -209,6 +209,10 @@ public class CertTool { } freeX509Certificate(handle); } if (intent != null) context.startActivity(intent); if (intent != null) { context.startActivity(intent); } else { Log.w("CertTool", "incorrect data for addCertificate()"); } } }
packages/VpnServices/src/com/android/server/vpn/VpnService.java +0 −7 Original line number Diff line number Diff line Loading @@ -256,9 +256,6 @@ abstract class VpnService<E extends VpnProfile> implements Serializable { if (mState == VpnState.IDLE) return; // keep the notification when error occurs if (!anyError()) mNotification.disableNotification(); restoreOriginalDns(); restoreOriginalDomainSuffices(); mState = VpnState.IDLE; Loading @@ -269,10 +266,6 @@ abstract class VpnService<E extends VpnProfile> implements Serializable { mContext.stopSelf(); } private boolean anyError() { return (mError != null); } private void restoreOriginalDns() { // restore only if they are not overridden String vpnDns1 = SystemProperties.get(VPN_DNS1); Loading