26 Commits

Author SHA1 Message Date
Eric Fischer
18634b34e6 Import translations. DO NOT MERGE
Change-Id: I2761d2e7bb8795ab23a0024ed41ec299abc400e1
2012-02-28 12:23:51 -08: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
Eric Fischer
2fbd56a652 Import revised translations.
Change-Id: I71efb16f2c6b257dfd444728c7e56ada662e6f77
2011-11-02 09:41:15 -07:00
Eric Fischer
b0d150aa53 Import revised translations.
Change-Id: I83ab00ec220b7c0ba0d37e7f4c91e945e35aab39
2011-10-18 15:03:21 -07:00
Eric Fischer
03e9d8ae07 Import revised translations.
Change-Id: Id046f8008aef32a1b94b4fa5b57e2beb2f9f2e80
2011-10-07 16:09:10 -07:00
Eric Fischer
d3530ac774 Import revised translations.
Change-Id: Ic8e228878fde375b90797c6e344fcb3114180f1d
2011-09-30 16:32:04 -07: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
Eric Fischer
50c83888a6 Import revised translations.
Change-Id: I5e375bebc8f74d9108a929246f16608427ce9317
2011-09-20 10:21:56 -07:00
Chia-chi Yeh
f63c17d741 VpnDialogs: add string description for translation.
Change-Id: Id826838661e8cfa20d01a4f51943f7744a2665e2
2011-09-14 18:09:59 -07:00
Chia-chi Yeh
d80549c8dc VpnDialogs: allow strings wrapped into multiple lines.
Change-Id: I51443c14c2f113a149818dc060fb90fa16527545
2011-09-13 15:41:23 -07:00
Eric Fischer
5820aeee0b Import revised translations.
Change-Id: Iac73006cfaf846d210855496f6732cbdc6ad0de8
2011-09-02 14:44:12 -07:00
Eric Fischer
6a51343975 Import revised translations.
Change-Id: I51e1fc94b7fa3fec13f7dddad62b978dd9a71d43
2011-08-26 14:49:23 -07:00
Eric Fischer
8da527d843 Import revised translations.
Change-Id: I51335fa15a40d471010dbcc96e228b170f06ce7e
2011-08-22 11:09:13 -07:00
Eric Fischer
23018767d2 Import revised translations.
Change-Id: Ic1a72dc93b5450b90bcc46365746e61d7d9ca3e6
2011-08-15 13:19:15 -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
Christopher Tate
2efd2dbbac Support full-backup encryption and global backup password
If the user has supplied a backup password in Settings, that password
is validated during the full backup process and is used as an encryption
key for encoding the backed-up data itself.  This is the fundamental
mechanism whereby users can secure their data even against malicious
parties getting physical unlocked access to their device.

Technically the user-supplied password is not used as the encryption
key for the backed-up data itself.  What is actually done is that a
random key is generated to use as the raw encryption key.  THAT key,
in turn, is encrypted with the user-supplied password (after random
salting and key expansion with PBKDF2).  The encrypted master key
and a checksum are stored in the backup header.  At restore time,
the user supplies their password, which allows the system to decrypt
the master key, which in turn allows the decryption of the backup
data itself.

The checksum is part of the archive in order to permit validation
of the user-supplied password.  The checksum is the result of running
the user-supplied password through PBKDF2 with a randomly selected
salt.  At restore time, the proposed password is run through PBKDF2
with the salt described by the archive header.  If the result does
not match the archive's stated checksum, then the user has supplied
the wrong decryption password.

Also, suppress backup consideration for a few packages whose
data is either nonexistent or inapplicable across devices or
factory reset operations.

Bug 4901637

Change-Id: Id0cc9d0fdfc046602b129f273d48e23b7a14df36
2011-07-28 16:01:20 -07:00
Chia-chi Yeh
8f6fdf448c VpnDialogs: change paddings.
Change-Id: I46d949099778d1801ac1ca81b845b93936ceecb9
2011-07-15 15:21:44 -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