History log of /frameworks/base/vpn/java/android/net/vpn/VpnManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cef28e74afea535c038910d129a1dbe15969c49e 27-Aug-2009 Hung-ying Tyan <tyanh@google.com> Simplifies err code propagation.

* Other changes
+ Re-assign err codes in VpnManager.
+ Add new err codes: REMOTE_PPP_HUNG_UP, PPP_NEGOTIATION_FAILED.
+ Delete the state file only if it exists (to prevent logging an
unable-to-unlink error).
+ Extend timeout to 40 seconds.
/frameworks/base/vpn/java/android/net/vpn/VpnManager.java
935406709edb9aaf6538e23e88ecfdf77cccd8ba 03-Aug-2009 Hung-ying Tyan <tyanh@google.com> Issue an error when VPN connection is lost.

+ Add new error code CONNECTION_LOST to VpnManager.
+ Make VpnService call onError() instead of onDisconnect() when
connection is lost.
+ Make VpnService broadcast CONNECTION_LOST when that happens.
/frameworks/base/vpn/java/android/net/vpn/VpnManager.java
fe8e48cdd5e621905b8c07325dbe77bffffdb4bb 30-Jul-2009 Hung-ying Tyan <tyanh@google.com> Add state saving mechanism to support proc restart

Also...
+ stop daemons before getting server IP;
+ remove setForeground();
+ add the DBG flag for Log.d calls.

PatchSet 3:
+ add CHALLENGE_ERROR and REMOTE_HUNG_UP to VpnManager
+ broadcast new error codes in VpnService
+ check local IP change instead of dns change
+ move removeStates() to VpnService.onFinalCleanUp()

PatchSet 7:
+ add encryption flag to PptpProfile
+ PptpService and MtpdHelper are revised accordingly
/frameworks/base/vpn/java/android/net/vpn/VpnManager.java
df1aa3359ccfe81a3f79ed457c7bfc75942a9d91 11-Jul-2009 Hung-ying Tyan <tyanh@google.com> Add error code in vpn connectivity broadcast.

* Changes
+ Add VpnConnectingError.java.
+ Broadcast the error returned by daemons.
+ Add error codes to VpnManager.java.
+ Add error code to VpnManager.broadcastConnectivity().
Patch Set 4:
+ Replace VPN_UP with VPN_STATUS in response to ip-up-vpn changes.
+ Make VpnServiceBinder a foreground service so that it won't be
interrupted by the system.
Patch Set 5:
+ Remove the support of returning 0 from daemon and restart socket in
AndroidServiceProxy.
/frameworks/base/vpn/java/android/net/vpn/VpnManager.java
d3aba7f7b67c758b2b325276538da6e1350cce69 19-Jun-2009 Hung-ying Tyan <tyanh@google.com> Add PPTP, L2TP/IPSec preshared key and other fixes.

* Changes
+ Add PptpProfile.java, PptpService.java.
+ Add L2tpIpsecPskProfile.java
+ Add PPTP and L2TP_IPSEC_PSK entries in VpnType.java.
+ Add the secret option to L2tpProfile.java and have L2tpIpsecProfile
extend it.
+ Add MtpdHelper to send common PPP options.
+ Add getGatewayIp() to VpnService().
+ Revise VpnService.reallyGetHostIp().

Patch Set 6, 7, 8:
+ Add L2TP secret flag in L2tpProfile.

Patch Set 9:
+ Add description to VpnType.

Patch Set 11:
+ Pass ipparam to mtpd.

Patch Set 12:
+ Add L2TP secret support
+ Fix string constants
/frameworks/base/vpn/java/android/net/vpn/VpnManager.java
f94b6444a3d4dc6d904754f80b2f940be90e432b 08-Jun-2009 Hung-ying Tyan <tyanh@google.com> Add the VPN services package, VPN service base classes and L2tpIpsecService.

Also add android.security.Keystore. This is a quick solution. Will be
evolved to a more mature implementation.

PATCH SET 2:
+ Add VpnServiceBinder to hide VpnService and its subclasses.
+ Add sendCommand2() to AndroidServiceProxy to work with the latest mtpd.

PATCH SET 3:
+ Rebase to catch up with new commits; no changes made.

PATCH SET 4:
+ Remove/comment out @Override on interface methods to be compilable for Java 1.5.

PATCH SET 5:
+ Add L2tpService.java.
+ Make VpnService to work on SingleServerProfile; add serverIp to
connect(); set system property "net.vpn.server_ip"; and move
getPppOptionFilePath() from L2tpIpsecService to VpnService
+ Revise VpnManager to start VpnService without worrying about which
type (as the type info is in VpnProfile)
+ Remove installation stuff from VpnManager

PATCH SET 6:
+ Fix PATCH SET 5 (the patch was messed up). Please ignore PATCH SET 5.

PATCH SET 7:
+ Fix styles.

PATCH SET 8:
+ Add CANCELLED to VpnState.

PATCH SET 9:
+ Make VpnProfile serializable (in order to save them to persistent storage)

PATCH SET 10:
+ Remove Keystore.java as it's added in another CL.
/frameworks/base/vpn/java/android/net/vpn/VpnManager.java
55567efca99de7242b118cf7bf13cc773b01941c 03-Jun-2009 Hung-ying Tyan <tyanh@google.com> First-time check-in of the VPN APIs.

Patch Set 2:
- Fixed style issues raised by cywang.
Patch Set 3:
- Hide everything
- Make VpnProfile parcelable
Patch Set 4:
- Add license notice
/frameworks/base/vpn/java/android/net/vpn/VpnManager.java