54 Commits

Author SHA1 Message Date
Bill Yi
c5b06289e0 Import translations. DO NOT MERGE
Change-Id: I149ea5a3d107bd0e5cdad51d242366bf14d1f698
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-06 15:22:38 -07:00
Roozbeh Pournader
b84a505b62 Rename language+country resources to just language
Bug: 26496609
Test: none
Change-Id: I40b99a8728f1f324f4c1f8066a61c3d5f92b1ac6
2017-01-10 23:51:26 -08:00
Bill Yi
cc50678e50 Revert "Import translations. DO NOT MERGE"
This reverts commit c2eaccba60e23eb545870d325962ffa5fa9ffa38.

Change-Id: Ic5632658c483ab345c4ce0375f4e506b9fd495ac
2016-12-05 18:55:30 +00:00
Bill Yi
c2eaccba60 Import translations. DO NOT MERGE
Change-Id: I17914696df3951b94031ce6d848473013b5f6908
Auto-generated-cl: translation import
2016-12-02 20:42:21 -08:00
Geoff Mendal
5d0394acf3 Import translations. DO NOT MERGE
Change-Id: I5516d0fd622547e23e6f1f2da1b411f05896907c
Auto-generated-cl: translation import
2016-03-18 20:08:53 -07:00
Jeff Sharkey
78bcc89df4 Merge "Refactoring FBE APIs based on council feedback." into nyc-dev am: a0a58a2
am: 5a128c4

* commit '5a128c4f33aa38d3a35b5884519f6bd3a355512d':
  Refactoring FBE APIs based on council feedback.
2016-03-17 22:09:46 +00:00
Jeff Sharkey
8a372a0a28 Refactoring FBE APIs based on council feedback.
Mostly consists of removing the word "encryption" from most APIs,
since we can't actually make promises about the data being encrypted.

Bug: 27531029
Change-Id: Iace9d7c4e64716abf86ed11847c40f3947e1d625
2016-03-17 14:49:08 -06:00
Geoff Mendal
3fa816d733 Import translations. DO NOT MERGE
Change-Id: Ia63006b080bdd964478f361d880ab9ba916cdc01
Auto-generated-cl: translation import
2016-02-17 05:25:43 -08:00
Geoff Mendal
e3bb069234 Import translations. DO NOT MERGE
Change-Id: I3d1857a1d9ab8b2b7e71fbf2daf334874d691622
Auto-generated-cl: translation import
2016-02-15 05:26:13 -08:00
Geoff Mendal
d6a70de3ae Import translations. DO NOT MERGE
Change-Id: I5bc6d48d53fb7c0971c2a84e1c20639a2449026c
Auto-generated-cl: translation import
2015-12-16 05:34:05 -08:00
Geoff Mendal
0514864947 Import translations. DO NOT MERGE
Change-Id: I1b007d3e22aef09f2a1162478a2ed9b148f67cfb
Auto-generated-cl: translation import
2015-12-14 05:27:57 -08:00
Jeff Sharkey
f9fc6d6cc0 More file-based encryption work.
Add granular StorageManager APIs for key creation/destruction and
unlocking/locking.  Start passing through an opaque token as part
of the unlock command, but leave it empty for now.  We now have a
separate "prepare" method that sanity checks that user directories
are correctly setup.

Define a handful of system properties used for marking devices that
should be operating in FBE mode, and if they're emulating FBE.  Wire
a command to "sm", but persisting will come later.

Start using new "encryptionAware" flag on apps previously marked with
coreApp flag, which were apps running in the legacy CryptKeeper
model.  Small tweaks to handle non-encryptionAware voice interaction
services.  Switch PackageManager to consult StorageManager about the
unlocked state of a user.

Bug: 22358539
Change-Id: Ic2865f9b81c10ea39369c441422f7427a3c3c3d6
2015-11-11 10:47:23 -08:00
Geoff Mendal
15ac411604 Import translations. DO NOT MERGE
Change-Id: Ica39f82dd0f4affff241f73ddd7d076ba289a612
Auto-generated-cl: translation import
2015-07-22 05:25:20 -07:00
Soonil Nagarkar
2ec5c5cced Fix reintroduction of b/10845061
Prevent crash in case where NLP is not available. Also fix an integer
overflow bug that remained uncaught.

BUG: 22345134
Change-Id: If6ff7b12f0d15bb2fe97589f8b0be10f9ed06197
2015-07-21 20:49:59 +00:00
Geoff Mendal
d392c2b8ad Import translations. DO NOT MERGE
Change-Id: I72b14e7163a35d71613ec05ba36d159c49e1e0f3
Auto-generated-cl: translation import
2015-05-29 20:55:56 -07:00
Geoff Mendal
ac06142832 Import translations. DO NOT MERGE
Change-Id: I3d47097880ee8196c951b6ff5e61011285c6b877
Auto-generated-cl: translation import
2015-05-21 05:13:10 -07:00
Geoff Mendal
6fa9148e5e Import translations. DO NOT MERGE
Change-Id: If4919373256f7d4e74072e4c34fcfbc36bad6825
Auto-generated-cl: translation import
2015-04-22 05:27:09 -07:00
Geoff Mendal
c6d8b937d0 Import translations. DO NOT MERGE
Change-Id: I274a842ea3e3811e64c35791e2eb3a7603509184
Auto-generated-cl: translation import
2015-03-20 23:25:50 -07:00
Soonil Nagarkar
55fc40cbb7 Fix FusionEngine so it isn't confused by location providers enabling/disabling.
Bug: 18900529
Change-Id: I80ebf9e0482148897eb943b44bf711577b6dcf7a
2015-01-28 16:55:01 -08:00
Baligh Uddin
dfe2d15eef Remove deprecated locales
Change-Id: I9789601a2fffc8eb8e6eeff4a8bd6c83fbf6fb10
2014-07-17 15:43:04 -07:00
Baligh Uddin
0a24efd513 Import translations. DO NOT MERGE
Change-Id: I39f20de8a02ff8d825102a4a36570bcb6180f12e
Auto-generated-cl: translation import
2014-07-05 09:25:31 -07:00
Baligh Uddin
f8c5b40b6c Import translations. DO NOT MERGE
Change-Id: I1ce049ca89479b5d669f813661ce097d97e36629
Auto-generated-cl: translation import
2014-06-30 14:34:23 +00:00
Baligh Uddin
1de821cc85 Import translations. DO NOT MERGE
Change-Id: I70eb28f41b715d1843f3b90c95c0efa71f005e8a
Auto-generated-cl: translation import
2014-05-20 08:16:45 -07:00
John Spurlock
6090995951 Remove unused imports from frameworks/base.
Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
2013-11-20 11:31:47 -05:00
Baligh Uddin
ed822f8a39 Import translations. DO NOT MERGE
Change-Id: I79945322799c86169e725cb3c67be0b8046f55fe
Auto-generated-cl: translation import
2013-11-11 08:10:44 -08:00
Baligh Uddin
ca6c7fc653 Import translations. DO NOT MERGE
Change-Id: Ie33acfe6f39d170f88a99ec57ee960dc62c84ee0
Auto-generated-cl: translation import
2013-11-06 11:52:19 -08:00
Baligh Uddin
2280aedc9f Import translations. DO NOT MERGE
Change-Id: I67083211b646acc186939e051ea5218fb00ed1c6
Auto-generated-cl: translation import
2013-10-16 14:39:18 -07:00
Victoria Lease
04e44f3b30 am 7831fd2f: am 7d3fb2d6: am 881e1a6b: Merge "do not request location from unavailable providers" into klp-dev
* commit '7831fd2fdb46572025195b4b8ec6f1f5b3d9b8c6':
  do not request location from unavailable providers
2013-10-14 10:52:04 -07:00
Baligh Uddin
11bb67d6c2 Import translations. DO NOT MERGE
Change-Id: Ib34e81399bfc7c5867fcc060af7d5487485a2855
Auto-generated-cl: translation import
2013-10-14 09:13:55 -07:00
Victoria Lease
7831fd2fdb am 7d3fb2d6: am 881e1a6b: Merge "do not request location from unavailable providers" into klp-dev
* commit '7d3fb2d6c5539226a3adcd20cee48177dd8dc571':
  do not request location from unavailable providers
2013-10-13 15:07:51 -07:00
Victoria Lease
b30f38383e do not request location from unavailable providers
This commit prevents a system_server crash when applications attempt
to use the fused location provider on systems that do not have a
network location provider available.

Bug: 10845061
Change-Id: I85b33806e05566e8b68ee2ccc401b1c565fd7b9a
2013-10-13 12:15:40 -07:00
Baligh Uddin
e9fe9d729e Import translations. DO NOT MERGE
Change-Id: I82d4f166b346b10babd67f89f3035426e74db7dd
Auto-generated-cl: translation import
2013-10-11 16:28:01 -07:00
Baligh Uddin
9c56db19c5 Import translations. DO NOT MERGE
Change-Id: I8d1fd0e44df5ea45d590e675e1f2d0afda54bc69
Auto-generated-cl: translation import
2013-10-11 16:25:46 -07:00
Baligh Uddin
d053c98298 Import translations. DO NOT MERGE
Change-Id: I693a68b27aba9bcde0a4b4b79f8927483ca0fd2c
Auto-generated-cl: translation import
2013-10-10 17:46:04 -07:00
Baligh Uddin
607e971112 Import translations. DO NOT MERGE
Change-Id: Icd16db08d07dc6156aecaa64750e91b492b9c86a
Auto-generated-cl: translation import
2013-10-10 17:44:24 -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
Victoria Lease
03cdd3d275 dual-mode switching single/multiuser ServiceWatcher
This changelist revises LocationManager's previous multiuser system.

Location provider services that are not multiuser-aware continue to
run as before: ServiceWatcher binds to location provider services as
the current active user. When the device switches from one user to
another, ServiceWatcher unbinds from the old user's location provider
service and binds to the new user's instance.

Now, location provider services that are multiuser-aware or
user-agnostic can declare "serviceIsMultiuser" metadata in their
AndroidManifest.xml to prevent ServiceWatcher from performing this
switching. These services will run as singleton services and will be
expected to handle user switches on their own.

With this feature in, I was able to switch FusedLocationProvider to
run in multiuser mode, sharing the system_server process instead of
running in its own process. The NetworkLocationProvider is unchanged,
still running in singleuser mode, cheerfully oblivious to the
possibility that there might be any user on the device besides the
one it services.

Bug: 8028045
Change-Id: I1a5bd032918419bab6edb46c62ff8c6811170654
2013-02-01 16:00:20 -08:00
Laurent Tu
161f42619b Protect against NPE in FusionEngine.java.
Bug: 7629406
Change-Id: Ic49a069eef47a62fb1e0c6f284a705a62c6ae232
2012-12-04 10:58:43 -08:00
Laurent Tu
7ab7f53892 Hide new location APIs and undeprecate old ones
Hide all new location APIs related to LocationRequest/Geofence and
undeprecate all deprecated APIs consequently to the LocationRequest and
Geofence introduction. Also introduce LocationRequestUnbundled for
LocationProviders to use.

Change-Id: I5b116c7d342041f45b341c88a4b6813571118018
2012-11-01 15:22:22 -07:00
Victoria Lease
779b77455f fix NLP for COARSE applications, build FLP with SDK
In this commit, we provide a means for unbundled location providers
to attach an EXTRA_NO_GPS_LOCATION to the Locations that they report.

We also build FusedLocation against the SDK rather than the internal
tree.

Used in conjunction with I394ded497b8de40d1f85618bff282553cdf378cb
to fix NLP for applications with only ACCESS_COARSE_LOCATION
permission.

Bug: 7453355
Change-Id: Ie696f7abff9ef5237740ab87fe9f537a1c812c54
2012-11-01 13:55:36 -07:00
Victoria Lease
a5f9b3fc26 FusedLocation runs per user as user
Change-Id: Ib9589000f201902bd6be2d58413c11b9340cf6ac
2012-10-29 09:28:53 -07:00
Jeff Hamilton
fbadb69978 Changes to support updating location providers.
This reverts commit 20de160ca32a8f2936a80ffd70551a22e2371d25.

Bug: 7242814
Change-Id: I9ec49a14feb835b6683186fc6da4a74ae19fbae2
2012-10-18 01:28:10 -05:00
Victoria Lease
0fdfa6b49e Simplify fused location provider.
The previous location fusion algorithm produced very poor results
outdoors, where stale-but-accurate network locations had too much
influence over the final fused location.

I swapped the previous fusion algorithm out with an algorithm
that has been well-tested elsewhere and should produce superior
results.

Bug: 7341419
Change-Id: Iba71950a07907cbf26429c4e377b5e2ed91ba302
2012-10-12 15:19:41 -07:00
Jeff Hamilton
20de160ca3 Revert "Changes to support updating location providers."
This reverts commit c19efc204aee1f0f3164dc21bd2ef3fdd4259c71.
2012-10-05 02:32:52 -05:00
Jeff Hamilton
c19efc204a Changes to support updating location providers.
There is now only a single config value pointing
at a list of packages to get certs from. The old
system was a bit confusing.

The fused location provider also now builds
against SDK 17, and the meta data service version
tag was renamed from the overly generic "version"
to "serviceVersion".

Bug: 7242814
Change-Id: I00d27c9cbd5cc31a37bb4a98160435d15a72e19e
2012-10-04 11:00:42 -05:00
Philip Milne
4118012da9 Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos()
Change-Id: Ie38952bbaace080e81e41e61350cda172951d548
2012-09-26 11:29:25 -07:00
Philip Milne
bc391d58c8 Merge "Revert "Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos()"" into jb-mr1-dev 2012-09-24 11:41:53 -07:00
Philip Milne
53fe756772 Revert "Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos()"
This reverts commit 2f6d8829524dfca3a77e9a57c3b9c3862209877d

Change-Id: Id5af767a09fc319127c4ebef837c5b7a7f75cb01
2012-09-24 11:38:29 -07:00
Philip Milne
b00df8e929 Merge "Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos()" into jb-mr1-dev 2012-09-24 11:02:31 -07:00
Philip Milne
2f6d882952 Fix for bug: #7173350. elapsedRealtimeNano() -> elapsedRealtimeNanos()
Change-Id: I71c24ea10093ece07a0780e97bc641ff548c1a44
2012-09-21 15:54:41 -07:00