Commit Graph

6941 Commits

Author SHA1 Message Date
Philip P. Moltmann
192e1c6476 Merge changes from topic "SettingsLibRestrictedLockUtils"
* changes:
  Make methods used by PermissionController @SystemApi
  Make restricted lock icon system-api
2018-09-18 15:27:36 +00:00
Josh Gao
7b9617dcf2 Merge "Fix typo in IntentFilter documentation." am: ada39fe63d am: 5c775ffdc8
am: 39510ef3d2

Change-Id: I32f695532dbf0549f418e61345818635e9508e5a
2018-09-17 20:20:23 -07:00
Josh Gao
39510ef3d2 Merge "Fix typo in IntentFilter documentation." am: ada39fe63d
am: 5c775ffdc8

Change-Id: Iae760087190441702f01e91115da0c9e52061ff7
2018-09-17 20:11:58 -07:00
Josh Gao
5c775ffdc8 Merge "Fix typo in IntentFilter documentation."
am: ada39fe63d

Change-Id: I9da782211b8a6766ceb6b17fdec3b31e2e884676
2018-09-17 19:59:26 -07:00
Treehugger Robot
ada39fe63d Merge "Fix typo in IntentFilter documentation." 2018-09-18 01:44:46 +00:00
Yiwei Zhang
d5cd5e1621 Merge "Revert "pm: Exposing Vulkan 1.1 does not guarantee AHB extension support"" 2018-09-17 23:04:43 +00:00
TreeHugger Robot
2105ec5fe8 Merge "Keep app in high memory adjust if moving from TOP to FGS" 2018-09-15 04:38:29 +00:00
Amith Yamasani
e5bfeee745 Keep app in high memory adjust if moving from TOP to FGS
If an app was in the TOP state and immediately moved
to a foreground service state, then try harder to keep it
in memory for another 20 seconds before releasing the
memory to bound foreground services. Using an oom_adj value
of 50 which is between "fore" and "vis". So BFGS apps might
get killed ("vis") before this recently FGS'ed app. That
way any app that has a lot of state in memory that it needs
to persist before getting killed has a chance to do so.

Also bind NotificationListeners with a special bind flag
to rank them below FGS (perceptible adj) so that they
can be killed before any other foreground services or
bound services get killed.

Bug: 110969183
Test: Manual for now. Take a bunch of portrait
      pictures and hit home, while being under memory
      pressure with a bunch of notification listeners.
Change-Id: Ie8934c2331afe6450c582b209869aeca7272f58a
2018-09-14 15:52:40 -07:00
Eugene Susla
79a85ae200 Merge "Reduce coupling between DefaultPermissionGrantPolicy and PM" 2018-09-14 20:36:51 +00:00
Philip P. Moltmann
3c44c6c925 Merge "Describe paramter to PackageInstaller.Session#commit" 2018-09-14 19:13:38 +00:00
Philip P. Moltmann
2fe7dee1cf Describe paramter to PackageInstaller.Session#commit
Test: Built
Change-Id: I4c20b54070ba5345e0c95429fbf0700fe9b2f7d2
Fixes: 115609562
2018-09-14 10:59:33 -07:00
Mathew Inwood
db0657a4f4 Merge "Move some members to the "Q blacklist"." 2018-09-14 13:54:28 +00:00
Mathew Inwood
8c854f86a4 Move some members to the "Q blacklist".
Based on some analysis, these fields/methods are likely false positives.
Set maxTargetSdk=P so that any apps using them are required to migrate off
them in future. See the bug for more details.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: I719b5c94e5b1f4fa562dd5d655953422958ad37e
2018-09-14 13:18:34 +01:00
kopriva
f0ca62a3eb Merge "docs: fixed mistaken reference to NotificationManager" into pi-dev am: 206a50673d
am: bb252836e5

Change-Id: If12876c83c191b91235e16a69d7dad66fc682b80
2018-09-13 20:06:12 -07:00
kopriva
bb252836e5 Merge "docs: fixed mistaken reference to NotificationManager" into pi-dev
am: 206a50673d

Change-Id: I03ebc3385e89c5b71888d7a4d11b0e2608d80fed
2018-09-13 19:57:19 -07:00
kopriva
5495dbbb80 docs: fixed mistaken reference to NotificationManager
Test: make ds-docs

Bug: 36952345

Change-Id: Icc74db9f8808e67c6eafacc0e40a35f47cba32ba
Exempt-From-Owner-Approval: Docs-only change
2018-09-13 14:18:34 -07:00
Jeff Sharkey
e0339a6f6e Merge "Support more createPackageContextAsUser() users." 2018-09-13 20:08:57 +00:00
TreeHugger Robot
456e4f5b59 Merge "Expose Resources.getFloat publicly" 2018-09-13 19:15:50 +00:00
Eugene Susla
47e8820816 Reduce coupling between DefaultPermissionGrantPolicy and PM
This is a refactoring that should help us eventually split
DefaultPermissionGrantPolicy away from package manager
Specifically, this CL:
  - Removes usages of PM-internal APIs from DPGP, such as
    PackageParser.Package and PackageList
  - Introduces APIs in PackageManagerInternal to replace the above
  - Removes PackageManagerService as a middleman for default
    sms and dialer app changes

This intentionally doesn't move DPGP yet, to make it easier to review what actually changed

Test: gts-tradefed run gts -m GtsPermissionTestCases -t com.google.android.permission.gts.DefaultPermissionGrantPolicyTest
Change-Id: Iff5b1a6b97888c496d982cf2ce656b58ed0a31a6
2018-09-13 11:08:32 -07:00
Steven Moreland
8b4ce09de4 Merge changes from topic "remove-hidl-boot-jars" am: 82e3d2f066 am: fc8de0d9e3
am: d70998a8d9

Change-Id: Iee10a8281e023c9917fb81a2e72be1475dc10772
2018-09-13 10:35:38 -07:00
Steven Moreland
d70998a8d9 Merge changes from topic "remove-hidl-boot-jars" am: 82e3d2f066
am: fc8de0d9e3

Change-Id: If4d5c5e99bf605f31371426ab3a5def66f0a0137
2018-09-13 09:57:42 -07:00
Philip P. Moltmann
2f69263101 Make methods used by PermissionController @SystemApi
The PermissonController is going to become a mainline module, hence it
has to compile against @SystemApi. Hence all APIs needed have to be
upgraded.

Bug: 110953302
Test: Built
Change-Id: I329e062040bdb6dc20fd65baf71e025338d01c4e
2018-09-13 09:56:41 -07:00
Steven Moreland
fc8de0d9e3 Merge changes from topic "remove-hidl-boot-jars"
am: 82e3d2f066

Change-Id: I17b89f904ed17ee8f1f31c6d56cb96da705cb553
2018-09-13 09:40:50 -07:00
Jake Wharton
32365b91ce Expose Resources.getFloat publicly
This saves users from having to create a TypedValue, calling getValue, and then pulling out the float manually.

Test: none, just exposing existing functionality
Bug: 37116599
Change-Id: Ie4fcf51d64ec6113148e1fbf3c199cfff028f579
2018-09-13 12:12:27 -04:00
Jeff Sharkey
8068dfe6be Merge "Utilities for content:// Uris and file modes." 2018-09-13 15:20:59 +00:00
Ian Lake
666a965fd5 Annotate ComponentCallbacks with nullability annotations
BUG: 78245676
Test: make
Change-Id: Idd88ecbfc97672f3a234641c8892c245b4fe130a
2018-09-12 15:13:19 -07:00
Jeff Sharkey
ec5f7d1625 Support more createPackageContextAsUser() users.
We created this API to make it easy to pass a given UserHandle into
all Managers obtained from a given Context, which works great for
"normal" users, but we should also support special users like ALL
and CURRENT.

Also add an AutoCloseable marker to make try-with-resources easier.

Bug: 112153259
Test: atest android.content.cts.ContextTest
Change-Id: I261dfcc5cfdfc76bda5d70181785e11c2715a558
2018-09-12 14:02:11 -06:00
Jeff Sharkey
63280e06fc Utilities for content:// Uris and file modes.
Bug: 111268862, 111960973
Test: atest cts/tests/tests/content/src/android/content/cts/ContentUrisTest.java
Test: atest frameworks/base/core/tests/coretests/src/android/os/FileUtilsTest.java
Change-Id: I94373055468d279e6553d4a038267732b9b53745
2018-09-12 12:35:52 -06:00
Steven Moreland
f36ad62907 pm: Add hidl libraries to old class paths.
These two libraries:
android.hidl.base-V1.0-java
android.hidl.manager-V1.0-java

are being removed from BOOT_JARS. This change facilitates linking to them
for libraries or prebuilts in or before P.

Test: atest android.content.pm.AndroidHidlUpdaterTest
Bug: 77307025

Change-Id: Ic0db24cc68d66f5dbfab126ce7e304eec0bfc969
2018-09-12 09:18:40 -07:00
Mike Ma
43908f112b Merge "Avoiding potential NPE when dumping to proto." am: a52b601ef3
am: 8964390dd3

Change-Id: Ie9dc401990b4267b9bcf0469a3526db93dc438d2
2018-09-11 18:47:58 -07:00
Mike Ma
8964390dd3 Merge "Avoiding potential NPE when dumping to proto."
am: a52b601ef3

Change-Id: I9d5e520654877e6a46ea19ad3eddd3a901e58699
2018-09-11 18:26:45 -07:00
Xin Wei Chow
fb86f86e7e Merge "Fix typo - 'singed' to 'signed'" 2018-09-12 01:16:15 +00:00
Kweku Adams
ce8e43f8d2 Avoiding potential NPE when dumping to proto.
Inspired by aosp/736453. Cherry-picked from ag/4934453

Bug: 113087610
Test: Android builds
Change-Id: I9f0dae9cd5a839947c7ed150980eb30b928beef7
2018-09-11 19:21:52 +00:00
Philip P. Moltmann
a4b3022c51 Make PackageManager#arePermissionsIndividuallyControlled system-api
The PermissonController is going to become a mainline module, hence it
has to compile against @SystemApi.

PackageManager#arePermissionsIndividuallyControlled controls how certain
permissions are presented in the UI, hence Permission controller needs
to read it. The value of this API comes from a config option.

Bug: 110953302
Test: Built
Change-Id: If78b1bb594af0c85e92abf70ae8315e7ba3f31fa
2018-09-10 16:46:30 -07:00
David Brazdil
0b62a08c76 Merge "Move ApplicationInfo.usesNonSdkApi to private flags" am: fdd378c594
am: de5cc1ff5b

Change-Id: I8849fab757c732ab600e243c187f9acd0aa2c9d7
2018-09-07 04:15:02 -07:00
David Brazdil
de5cc1ff5b Merge "Move ApplicationInfo.usesNonSdkApi to private flags"
am: fdd378c594

Change-Id: I43fe6b903eb4cd900da9ebc2b10893213329c691
2018-09-07 03:12:59 -07:00
David Brazdil
fa5e8361c4 Move ApplicationInfo.usesNonSdkApi to private flags
No need to create an extra field for a boolean flag. Move the recently
added ApplicationInfo.usesNonSdkApi to one bit in privateFlags.

This also solves an issue where the field was not propagated during
copying of the data structure.

Bug: 113315999
Test: phone boots
Merged-In: I09f8f39454c013a84893ac304904a4412fc542bf
Change-Id: I09f8f39454c013a84893ac304904a4412fc542bf
(cherry picked from commit a5b4df2a89)
2018-09-06 15:31:33 +01:00
David Brazdil
b19f26e78f Merge "Move ApplicationInfo.usesNonSdkApi to private flags" 2018-09-06 14:10:22 +00:00
David Brazdil
a5b4df2a89 Move ApplicationInfo.usesNonSdkApi to private flags
No need to create an extra field for a boolean flag. Move the recently
added ApplicationInfo.usesNonSdkApi to one bit in privateFlags.

This also solves an issue where the field was not propagated during
copying of the data structure.

Bug: 113315999
Test: phone boots
Change-Id: I09f8f39454c013a84893ac304904a4412fc542bf
2018-09-06 09:53:08 +01:00
TreeHugger Robot
329fd3bc0d Merge "Add FEATURE_FACE and FEATURE_IRIS" 2018-09-05 20:12:54 +00:00
Chia-I Wu
c803806efb Merge "Fix widecg and hdr ordering in Configuration" 2018-09-05 17:24:56 +00:00
TreeHugger Robot
73855d4071 Merge "Avoiding potential NPE when dumping to proto." 2018-09-05 01:11:26 +00:00
Kweku Adams
15afdebe38 Avoiding potential NPE when dumping to proto.
Inspired by http://aosp/736453.

Bug: 113087610
Test: Android builds
Change-Id: I9f0dae9cd5a839947c7ed150980eb30b928beef7
2018-09-04 11:57:34 -07:00
Xin Wei Chow
6ab8afbe7b Fix typo - 'singed' to 'signed'
Test: Not necessary due to Javadoc change.
Change-Id: Id7e315f893920de9e010eb79b83d5bb7604ecf69
2018-08-31 23:31:57 +00:00
Chia-I Wu
0d8acf5a96 Fix widecg and hdr ordering in Configuration
Wide Gamut qualifier should be before the HDR one.

Bug: 78136980
Test: am get-config
Change-Id: If0f09ddb750d586d29b4cedcbab3d5981f393b92
2018-08-31 17:18:36 +00:00
David Brazdil
3fb373d63a Merge "Add android:usesNonSdkApi manifest attribute" am: 9446fbbeb8
am: a872cb1fcc

Change-Id: I489673fe1b36c146b9b64f3da434b853e002a472
2018-08-31 03:38:08 -07:00
David Brazdil
a872cb1fcc Merge "Add android:usesNonSdkApi manifest attribute"
am: 9446fbbeb8

Change-Id: I53b5c85fc16cdea5413b35ba4ddeec0d64f22b11
2018-08-31 03:28:30 -07:00
Philip P. Moltmann
7a80e14184 Merge "Factor some RestrictedLockUtils out of SettingLib" 2018-08-31 04:47:28 +00:00
TreeHugger Robot
49fa609ba0 Merge changes from topic "biometric-prompt-service"
* changes:
  Add BiometricPromptService
  Remove common biometric directory
2018-08-31 01:21:07 +00:00
Kevin Chyn
15bb32d33c Add FEATURE_FACE and FEATURE_IRIS
Fixes: 110535333

Test: make update-api
Test: make -j
Change-Id: I64e99c1437a497a37bc7d89c9c76a4930455f767
2018-08-30 14:49:32 -07:00