14 Commits

Author SHA1 Message Date
Jeff Sharkey
82f8521d38 Migrate legacy VPN arguments to system_server.
Generate the racoon and mtpd daemon arguments in system_server,
instead of accepting them from Settings.

Bug: 5756357
Change-Id: I42c1a644f6add477fe4222342640d7db15982cb8
2012-08-24 11:29:58 -07:00
Jeff Sharkey
899223b97c Begin moving VPN to NetworkStateTracker pattern.
Created base tracker that handles common bookkeeping, and move VPN
to become a tracker.  VPN status is now reflected in NetworkInfo, and
is mapped to LegacyVpnInfo.

Legacy VPN now "babysits" any init services it starts, watching for
when they stop unexpectedly.

Bug: 5756357
Change-Id: Iba7ec79da69469f6bd9a970cc39cf6b885b4c9c4
2012-08-23 16:41:06 -07:00
Chia-chi Yeh
b0736abca9 VpnDialogs: hide the fields when the statistic numbers are unavailable.
Bug: 5954284
Change-Id: I2321984d4f423e951989d799073a9da17a577ef9
2012-02-27 17:30:41 -08:00
Chia-chi Yeh
ae380fb89d VpnDialogs: fix screen flickering when popping up dialogs.
Bug: 5699057
Change-Id: Iad1b32cafa32f98b27b6c96a63e1e9d97908983a
2012-01-23 18:33:26 -08:00
Chia-chi Yeh
72fddaa5d9 VpnDialogs: revise UI layout.
Also hide statistics when they are not available.

Bug: 5372746
Change-Id: Iceffc8732cd51461630127f4fd17d505bc8b05aa
2011-09-26 15:07:49 -07:00
Chia-chi Yeh
fcc1b41b66 VPN: move away from the VPN permission.
VpnBuilder will be replaced by VpnService in the next change.

Change-Id: I2dea67a1616b74d17b372f7b214d207f1617198e
2011-08-03 15:52:12 -07:00
Chia-chi Yeh
339abf1fba VpnDialogs: enforce calling permissions.
Change-Id: I1bb3bd4616309f091ef653ee246b97b1a006a225
2011-07-15 12:10:48 -07:00
Chia-chi Yeh
100155a310 VPN: convert prepare() into a form which helps solve race conditions.
When someone tries to revoke packageA, it is possible that packageA is
already revoked by packageB. In this case packageB should not be revoked,
and the new prepare() can help solve this problem.

Change-Id: Iee056a191dd99467b8ad1b5379a17b02d404bad1
2011-07-03 17:03:27 -07:00
Chia-chi Yeh
34e7813e96 VPN: minor refinement.
Change-Id: I2b59cbe8554b6c6f8da48c465252489394f32653
2011-07-03 03:07:07 -07:00
Chia-chi Yeh
e9107901ae VPN: give legacy VPN a fake package name.
And add more comments.

Change-Id: I0cbc495fcb2c8dd105e16a841619b3b9bd227eae
2011-07-02 01:48:50 -07:00
Chia-chi Yeh
5db03df1ff VpnDialogs: prepare for the usages of legacy VPN.
- Use PendingIntent to start activities.
- Handle configs without package names.
- Switch to system UID.

Change-Id: Ia78112a97e3628b603d9e059705e32694ebe142b
2011-07-01 00:10:32 -07:00
Chia-chi Yeh
42bd53a9ff VpnDialogs: migrate to VpnConfig.
Also hide the configure button when configureActivity is not set.

Change-Id: Ic8eeec89970bb67d42397754d1f54a2744183eed
2011-06-17 15:27:41 -07:00
Chia-chi Yeh
f530da67b4 VpnDialogs: use IConnectivityManager instead or ConnectivityManager.
Change-Id: I8870a43ecbffa606d2e29f6c4b1b1a605b2b79e5
2011-06-15 17:05:25 -07:00
Chia-chi Yeh
19f054b0f6 The UI part of the user space VPN support.
Change-Id: Ia9b7d516f977bc0fa7c30f44ff8111466838d1aa
2011-06-03 17:06:29 -07:00