63 Commits

Author SHA1 Message Date
Bill Yi
ccbf2b41db Import translations. DO NOT MERGE
Change-Id: Iffd67758d2d557879a21b29668ed3d3ada32a1e7
Auto-generated-cl: translation import
2019-09-25 08:23:09 -07:00
Sasha Smundak
df848ac224 Convert Android.mk file to Android.bp
See build/soong/README.md for more information.

Bug: 122332340
Test: treehugger
Change-Id: I4ccc0a2e13fc49a0109e9823fbcb4077e11455d5
2019-02-08 15:13:25 -08:00
Bill Yi
6966cf1751 Import translations. DO NOT MERGE
Change-Id: I2e8669990526c050c97a671f88aba1864cd6d803
Auto-generated-cl: translation import
2019-02-02 08:27:57 -08:00
Soonil Nagarkar
1575a04e7b Refactor how location providers are managed
Put enabled/disabled state under location provider control, and use it
to represent whether a location provider may be used, not whether the
user has enabled or disabled a location provider.

Bug: 118885128
Test: manually
Change-Id: I1209c49c13ca8995b223f383ad332322fffc7a96
2018-12-10 10:29:17 -08:00
Soonil Nagarkar
94749f7ad1 Deprecate location provider status callbacks
Deprecate and remove logic around location provider status.

Bug: 118885128
Test: Tested manually on device
Change-Id: I68289cb5ed22e66532847758c36155a4ce607bbc
2018-11-26 23:19:00 +00:00
Bill Yi
bdad53acf8 Import translations. DO NOT MERGE
Change-Id: I231c1a888f046d69a62d75e2c80ed6268e55a43e
Auto-generated-cl: translation import
2018-05-02 08:40:29 -07:00
Anton Hansson
ab6ec61251 frameworks/base: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: I4233b9091d9066c4fa69f3d24aaf367ea500f760
2018-02-28 15:13:23 +00:00
Bill Yi
5590937f4c Import translations. DO NOT MERGE
Change-Id: Ia799ba487ff91b6370b7887728800687a6db5b4e
Auto-generated-cl: translation import
2018-02-22 02:33:55 -08:00
Bill Yi
b27fc5e9ca Import translations. DO NOT MERGE
Change-Id: I1d28d6697ec2deca12be125d0a1e6d3b4ec2be54
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-11 21:15:50 -07:00
Bill Yi
caf4f59c47 Import translations. DO NOT MERGE
Change-Id: I41700b1e734ee444db3d0368f64def55e856093c
Auto-generated-cl: translation import
2017-04-29 20:46:09 -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