summaryrefslogtreecommitdiffstats
path: root/packages/VpnServices
Commit message (Collapse)AuthorAgeFilesLines
* Import revised translationsKenny Root2010-03-1720-280/+0
| | | | Change-Id: Id1a0d62dc917937fc14ccab26eb7bd2c2148137e
* Update with latest translations.Eric Fischer2010-01-072-4/+4
|
* Do not use a user tag on apps, as it is ignored.Jean-Baptiste Queru2010-01-061-1/+1
| | | | | | | | | | The build system does not honor user tags on apps, and setting it is misleading. This removes the confusion by making the makefiles behave like they read. Change-Id: I7c5feba1c7d07f915b97dd098584f29938a4c885
* Encrypted File Systems Project. Installer modifications.Oscar Montemayor2009-11-241-4/+13
| | | | Started to modify isntaller for data redirection to a secure location.
* Reimport translations.Eric Fischer2009-10-1320-56/+296
| | | | Change-Id: I3f59d859605c2744a4a10d06139bc366cc21cf8e
* am 3d95dfc4: am 62de7421: Merge change I4fe2a47a into eclairHung-ying Tyan2009-10-017-197/+195
|\ | | | | | | | | | | | | Merge commit '3d95dfc4f6b03511c76580690cf7f7364f29c0a5' * commit '3d95dfc4f6b03511c76580690cf7f7364f29c0a5': Fix stopping all vpn daemons before connect and more.
| * Fix stopping all vpn daemons before connect and more.Hung-ying Tyan2009-10-017-197/+195
| | | | | | | | | | | | * move DaemonHelper out from VpnService to VpnDaemons for better managing native daemons. * check connectivity and dns less frequently to save battery.
* | am 91115fd6: am 5b4aa6db: Merge change 26315 into eclairChia-chi Yeh2009-09-221-18/+5
|\ \ | |/ | | | | | | | | | | Merge commit '91115fd698c492c276307008ae533c22ebc46994' * commit '91115fd698c492c276307008ae533c22ebc46994': VpnService: use Credentials instead of CertTool.
| * VpnService: use Credentials instead of CertTool.Chia-chi Yeh2009-09-221-18/+5
| |
| * Import revised translations. DO NOT MERGEEric Fischer2009-09-1720-80/+40
| |
| * Import revised translations. DO NOT MERGEEric Fischer2009-09-0820-40/+320
|/
* Merge change 23023 into eclairAndroid (Google) Code Review2009-08-281-3/+3
|\ | | | | | | | | * changes: Armor string format tokens with translation placeholders.
| * Armor string format tokens with translation placeholders.Eric Fischer2009-08-281-3/+3
| | | | | | | | Change-Id: I2f1b1f0e9b028a9f66c4543afe5c7bdce486db15
* | Simplifies err code propagation.Hung-ying Tyan2009-08-282-22/+5
|/ | | | | | | | | * 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.
* am 7b98b666: Merge change 20738 into donutHung-ying Tyan2009-08-111-1/+1
|\ | | | | | | | | | | | | Merge commit '7b98b666ec465259c676c90cb12f3d1b4e1c7cf7' * commit '7b98b666ec465259c676c90cb12f3d1b4e1c7cf7': Fix a bug in getSocketError() in VpnService.
| * Fix a bug in getSocketError() in VpnService.Hung-ying Tyan2009-08-121-1/+1
| |
* | am c22e0c80: Merge change 20719 into donutHung-ying Tyan2009-08-111-45/+42
|\ \ | |/ | | | | | | | | | | Merge commit 'c22e0c8012828474e8aa2e29b441ef02728b0842' * commit 'c22e0c8012828474e8aa2e29b441ef02728b0842': Fix order of setting/saving state in VpnService.
| * Fix order of setting/saving state in VpnService.Hung-ying Tyan2009-08-111-45/+42
| | | | | | | | | | and also refactor code making sure a thread won't grab two locks (which may cause deadlocks in some corner cases).
| * Import revised translations. DO NOT MERGEEric Fischer2009-08-039-56/+54
|/
* Issue an error when VPN connection is lost.Hung-ying Tyan2009-08-031-9/+21
| | | | | | | + 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.
* Fix the auto notification cleanup when vpn is disconnected.Chung-yih Wang2009-08-031-7/+0
| | | | + add the log print if the browser give the incorrect data in addCertificate().
* Add state saving mechanism to support proc restartHung-ying Tyan2009-07-308-102/+253
| | | | | | | | | | | | | | | | | 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
* Simplify the VPN service implementation.Hung-ying Tyan2009-07-279-740/+370
| | | | | | | | | | | | | + Remove NormalProcessProxy and ProcessProxy as they are not used anymore. + Rename AndroidServiceProxy to DaemonProxy and simplify its implementation as it does not extend to ProcessProxy anymore. + Execute connect() in VpnService in one thread, which simplifies socket and error handling. + Modify service subclasses accordingly. + Execute connect() and disconnect() in VpnServiceBinder so that the operations do not block the UI thread. Mark service as foreground only upon connecting.
* Throw a connecting exception when timed out.Hung-ying Tyan2009-07-221-0/+3
|
* Stop a daemon before starting itHung-ying Tyan2009-07-192-0/+8
| | | | in case the daemon is not cleaned up in last session.
* Fix NullPointer in VpnServiceBinder.checkStatus().Hung-ying Tyan2009-07-181-3/+2
|
* Merge change 7069 into donutAndroid (Google) Code Review2009-07-142-5/+8
|\ | | | | | | | | * changes: Make VPN connect even when DNS is not present and other fixes.
| * Make VPN connect even when DNS is not present and other fixes.Hung-ying Tyan2009-07-142-5/+8
| | | | | | | | | | | | | | | | * Changes: + As title. + Add two new states to VpnState: UNKNOWN and UNUSABLE. + Add more debug messages when stopping a service and when DNS being overridden.
* | Import new translationsEric Fischer2009-07-138-0/+200
|/
* Remove host IP from related VPN classes.Hung-ying Tyan2009-07-134-49/+2
| | | | ...since the daemon (racoon) gets the information by itself.
* Add error code in vpn connectivity broadcast.Hung-ying Tyan2009-07-134-47/+114
| | | | | | | | | | | | | | | * 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.
* Move the watchdog timer to a separate thread...Hung-ying Tyan2009-07-091-14/+21
| | | | so that it won't block the UI thread.
* Add PPTP and L2TP/IPSec PSK service dispatchingHung-ying Tyan2009-07-061-5/+17
|
* Migrate to new keystore with the CertTool lib.Hung-ying Tyan2009-07-061-4/+4
|
* Fix strings.Hung-ying Tyan2009-07-042-15/+12
| | | | | | * Changes + Remove "Up time:" from ongoing event display. + Add hint in disconnected notification.
* Revise VpnService to use new vpn.* properties.Hung-ying Tyan2009-06-275-198/+103
| | | | | | | | | | | | * Changes + Make VpnService get dns info from vpn.dns1/dns2 and set net.dns1/dns2. + Make VpnService wait on vpn.up instead of monitoring on ip-up-vpn. + Change commands sent to racoon. + Remove original sendCommand() from AndroidServiceProxy and rename sendCommand2() to sendCommand(). + Add L2tpIpsecPskService.java. + Add short stop after sending ipsec command.
* Add PPTP, L2TP/IPSec preshared key and other fixes.Hung-ying Tyan2009-06-269-41/+155
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Squashed commit of the following:Eric Fischer2009-06-172-1/+4
| | | | | | | | commit 8e1a200225b7e4756b83d17d679a71a06a38b696 Author: Eric Fischer <enf@google.com> Date: Tue Jun 16 16:32:56 2009 -0700 Make names of Settings, VPN, Subscribed Feeds providers localizable.
* Use the new keystore API in vpn service.Chung-yih Wang2009-06-171-3/+4
|
* On the way of refactoring out SingleServerProfile.java.Hung-ying Tyan2009-06-151-2/+2
| | | | | | | + Move mServerName from SingleServerProfile and VpnProfile. + Add mSavedUsername to VpnProfile. + Keep empty SingleServerProfile to not break the classes that use it. + Remove use of SingleServerProfile from VpnService.java.
* Add the VPN services package, VPN service base classes and L2tpIpsecService.Hung-ying Tyan2009-06-1214-0/+1627
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.