53 Commits

Author SHA1 Message Date
Alan Viverette
e3c38a0b0e Fix recents theme, add missing headers
Change-Id: Ib8eea6153eaf7e0e93e54c69fe59e63e98a409a6
2014-04-02 15:39:13 -07:00
Alan Viverette
6259933ec9 Switch framework Holo references to Quantum.Light
Change-Id: Ib545a143f1959b6104adbc9d594dd626851d90b3
2014-04-01 14:57:39 -07:00
Baligh Uddin
869de0d1d0 Import translations. DO NOT MERGE
Change-Id: I90b992fe5850b901f15b4c9ae778a316d574edb2
Auto-generated-cl: translation import
2013-12-26 11:08:12 -08:00
Baligh Uddin
38bae539f8 Remove deprecated locales
Bug:11340849
Change-Id: Ib99486303927a6bce308b113d70f8e5b5bce4a13
2013-12-09 22:41:12 +00:00
John Spurlock
6090995951 Remove unused imports from frameworks/base.
Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
2013-11-20 11:31:47 -05:00
Baligh Uddin
289de24d64 Import translations. DO NOT MERGE
Change-Id: I9a274d2dae9b41ed8378f460da42507f44f429c5
Auto-generated-cl: translation import
2013-10-30 09:33:10 -07:00
Vinit Deshapnde
28cf65a6cf am adcf8696: am b1992b55: am e42325c7: Merge "Fix incorrect VPN time" into klp-dev
* commit 'adcf86961356157089daa4dc13c865258d1eea49':
  Fix incorrect VPN time
2013-10-02 12:32:42 -07:00
Vinit Deshapnde
adcf869613 am b1992b55: am e42325c7: Merge "Fix incorrect VPN time" into klp-dev
* commit 'b1992b55e967329f3bc9a63229615130761df701':
  Fix incorrect VPN time
2013-10-02 12:29:26 -07:00
Vinit Deshapnde
2b862e5e75 Fix incorrect VPN time
First, startTime's default value is -1 and not 0, so use it to test
if the startTime is set. Also, startTime isn't being set when connecting
legacy VPN; this change fixes that too.


Bug: 10985174
Change-Id: Ibf52b8f489b18c96efba501b76aa73e9a9e0e3e8
2013-10-02 11:50:39 -07:00
Baligh Uddin
6cdfb390b0 Import translations. DO NOT MERGE
Change-Id: Iea99a461037b5ef6dc3cd573b594b483692222ef
Auto-generated-cl: translation import
2013-09-25 09:11:27 -07:00
Baligh Uddin
fb1854b45d Import translations. DO NOT MERGE
Change-Id: I2512b43867fbd6821e94b937b31768c313bfd8b4
Auto-generated-cl: translation import
2013-09-18 23:59:33 -07:00
Baligh Uddin
da9120b062 Import translations. DO NOT MERGE
Change-Id: Ie76c722a4e7525264922041684f25b5b35286973
Auto-generated-cl: translation import
2013-09-14 20:30:38 -07:00
Baligh Uddin
ca892360a0 Import translations. DO NOT MERGE
Change-Id: I41d53a68f479490dab20dc25d2d020ec098a1ff8
Auto-generated-cl: translation import
2013-09-11 11:45:08 -07:00
Baligh Uddin
b5445c815e Import translations. DO NOT MERGE
Change-Id: I2ae3c5acea8bc6736dc896c9a51647894a5f3175
Auto-generated-cl: translation import
2013-08-28 18:34:39 -07:00
Baligh Uddin
94103d0778 Import translations. DO NOT MERGE
Change-Id: I65179cd29f91ec7e22edef7d6cdde4dfccdbef4b
Auto-generated-cl: translation import
2013-08-26 09:51:55 -07:00
Baligh Uddin
e8127bddf0 Import translations. DO NOT MERGE
Change-Id: I5b04fc1fefa16588f7b6e935473f722b073f757c
Auto-generated-cl: translation import
2013-08-19 08:21:39 -07:00
Baligh Uddin
defdc5d971 Import translations. DO NOT MERGE
Change-Id: Ie06cabcb736bd0cf12f4c1f393bf691a3a732495
Auto-generated-cl: translation import
2013-08-09 00:28:21 -07:00
Chad Brubaker
bf6ff2c025 Support multiple Vpn ManageDialogs
Move away from storing the configs in the Intent to prevent issues with
PendingIntents and multiple configs.

The Dialog now queries ConnectivityService for the configuration to
display in the management dialog.

Change-Id: I0e0ef52db840152914d117a24f776d8106e836ff
2013-07-16 18:59:12 -07:00
Christopher Tate
ccbf84f44c Some system apps are more system than others
"signatureOrSystem" permissions are no longer available to all apps
residing en the /system partition.  Instead, there is a new /system/priv-app
directory, and only apps whose APKs are in that directory are allowed
to use signatureOrSystem permissions without sharing the platform cert.
This will reduce the surface area for possible exploits of system-
bundled applications to try to gain access to permission-guarded
operations.

The ApplicationInfo.FLAG_SYSTEM flag continues to mean what it is
says in the documentation: it indicates that the application apk was
bundled on the /system partition.  A new hidden flag FLAG_PRIVILEGED
has been introduced that reflects the actual right to access these
permissions.

At some point the "system" permission category will be
renamed to "privileged".

Bug 8765951

Change-Id: I6f0fd9cdb9170e076dfc66d83ecea76f8dd7335d
2013-06-17 12:47:35 -07:00
Kenny Root
56480ef53f VpnDialogs: filter obscured touches
Change-Id: Ifcc919c36006c88e36363f5160f9334df0cf7e5b
2013-02-13 16:32:48 -08:00
Björn Lundén
1129a85203 Framework: Use holo alert drawables
Replaces the current usage of the GB alert
drawable with theme-consistent holo ones.

Change-Id: I8594ef8276db5bb0e192f3a541937d7281321043
2012-11-15 15:32:02 +01:00
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
Ying Wang
2ff06437ae Import translations. DO NOT MERGE
Change-Id: I0f6f872984c04033f03960aec8312f86b0451fd0
Auto-generated-cl: translation import
2012-07-20 12:01:04 -07:00
Ying Wang
b1ac6afe7f Import translations. DO NOT MERGE
Change-Id: I64327f26c87a11b1395acd7dfa217c3fd386b133
Auto-generated-cl: translation import
2012-07-10 12:27:03 -07:00
Chia-chi Yeh
dadc857d9d VPN: move VpnDialogs away from system uid.
Bug: 6632536
Change-Id: Iece647c077caf5298ccfe7d7aba5f0911a4ed0d1
2012-06-08 13:05:58 -07:00
Eric Fischer
e68159ae74 Import translations. DO NOT MERGE
Change-Id: Iaa68a41570f03ee73c3f36502862477746c474a3
2012-03-23 13:04:55 -07:00
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