Commit Graph

11038 Commits

Author SHA1 Message Date
Irina Dumitrescu
801dfc476f Merge "Change existing LockPatternUtil APIs to fail untrusted password updates." 2019-03-22 16:12:39 +00:00
Irina Dumitrescu
c90674dcc2 Change existing LockPatternUtil APIs to fail untrusted password updates.
Add alternative APIs to allow untrusted password changes explicitly, so the caller
can choose to use them if needed.

Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
Bug: 120039091
Change-Id: I4ca03c9185081d300d7e325965b1e20515e33d51
2019-03-22 16:07:03 +00:00
Sunny Goyal
006ab03fb7 Merge "Updating the AppTarget API to use a builder for constuction" 2019-03-22 15:55:17 +00:00
TreeHugger Robot
f81337ade4 Merge "Sharesheet - Support landscape mode" 2019-03-22 12:31:22 +00:00
TreeHugger Robot
0917f93924 Merge "Raster and badge directshare with IconFactory" 2019-03-22 03:57:26 +00:00
TreeHugger Robot
f621dfc7d5 Merge "Make LSS report honest password quality to DPMS" 2019-03-22 03:02:04 +00:00
Brad Stenning
75eaf771f8 Merge "Provide a hook for forcing all system bars to be displayed at all times" 2019-03-22 02:18:58 +00:00
TreeHugger Robot
e08a4e19c9 Merge "Move public methods of ResolverComparator to abstract class." 2019-03-22 01:09:29 +00:00
George Hodulik
30f0c6f32a Move public methods of ResolverComparator to abstract class.
The public methods of ResolverComparator are moved to
AbstractResolverComparator. The original implementation is moved to
subclass ResolverRankerServiceResolverComparator. Next on the
agenda is to move more of the common functionality to
AbstractResolverComparator.

Bug:129014961
Test: atest frameworks/base/core/tests/coretests/src/com/android/internal/app
      Tests pass except WindowDecorActionBarTest https://paste.googleplex.com/6680684066242560
      Also manually tested text, image, no matching apps, browsable/URI
Change-Id: I8bd4e923b448c6f9d4e55cc0d15f74752f42b85d
2019-03-21 12:01:34 -07:00
Matt Pietal
faedea813f Sharesheet - Support landscape mode
Measure the current icon width, and support a max of 4 icons wide in
portrait mode, or 8 in lanscape mode. Also correct an issue with cell
visibility; app targets were fading out when they should've been
instantly invisible.

Bug: 120419081
Test: atest ChooserActivityTest and visual inspection
Change-Id: I635532aff362b65900ec02bafaae818267b2d51f
2019-03-21 12:22:37 -04:00
TreeHugger Robot
ba5cb9136c Merge changes from topic "whichless"
* changes:
  BatteryStats remove which - log warnings
  LongSamplingCounter - remove update()
  Remove which from BatteryStats
2019-03-21 14:16:28 +00:00
Annie Meng
153edfc35e Merge "API Review: Make dataManagementLabel a CharSequence" 2019-03-21 10:17:09 +00:00
TreeHugger Robot
b9b1befb36 Merge "Trigger Augmented Autofill when the standard service used FillResponse.disableAutofill()" 2019-03-20 23:59:30 +00:00
Jeff Sharkey
5212157f0b Merge "Fix reading app ops data - framework" 2019-03-20 23:44:16 +00:00
Brad Stenning
e057369877 Provide a hook for forcing all system bars to be displayed at all times
Bug: 121257946

Test: manual
Change-Id: Ibbf41a03b0229b62366a42543e542af954a0ea8b
2019-03-20 16:27:47 -07:00
Mike Digman
9c4ae50255 Raster and badge directshare with IconFactory
Removes badge view and id. Unifies permission check for icon
loading. Fixes a threading issue in IconFactory so badging works
properly. Partly setting up for label and sublabel loading in a
future commit.

Fixes: 126568207
Test: manual
Change-Id: I265d08cc3a5c1499da252307fea6e28b22d59066
2019-03-20 13:29:35 -07:00
Felipe Leme
adb34f58de Trigger Augmented Autofill when the standard service used FillResponse.disableAutofill()
Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.augmented.DisableAutofillTest
Test: atest CtsAutoFillServiceTestCases # sanity check

Fixes: 123099744

Change-Id: Ic40727a72f931d7a062dedf02fa83d091648498b
2019-03-20 12:03:30 -07:00
Sunny Goyal
11af969687 Updating the AppTarget API to use a builder for constuction
Bug: 124017728
Test: Everything compiles
Change-Id: I1c07a5dcf0483d014b8350a03ccce141405f6089
2019-03-20 11:03:43 -07:00
Bookatz
db6d624a19 BatteryStats remove which - log warnings
In ag/6694908, BatteryStats is changed to only support the "which" of
STATS_SINCE_CHARGED. Here, we deal with BatteryStats calls that attempt
to use a different which, logging the event, exiting, and/or just using
STATS_SINCE_CHARGED as applicable.

Test: compiles
Bug: 70892428
Change-Id: Id0e9f863d8b1a5fb7baa770683c0c4ec5880e976
2019-03-20 10:13:58 -07:00
Pavel Grafov
19a4fb3fe0 Make LSS report honest password quality to DPMS
Previously password quality would be promoted to whatever admin
has requested or depending on whether it was PIN or password.

Bug: 120536847
Test: manual, steps from b/123924734
Test: atest DeviceAdminHostSideTestApi24#testRunDeviceOwnerPasswordTest
Test: atest MixedManagedProfileOwnerTest#testResetPasswordWithToken
Test: atest com.android.cts.devicepolicy.PasswordComplexityTest
Test: atest PasswordMetricsTest
Change-Id: I51ca2d327f4c6db8f74c0b0ec35e4a3a346a9b5c
2019-03-20 15:53:02 +00:00
Adrian Roos
5f9ec2c1c6 Merge "Gestures: Assemble per-window exclusion zones" 2019-03-20 15:28:03 +00:00
Svet Ganov
8e5bf968c1 Fix reading app ops data - framework
There was an optimized code path that is hit if the op
has not been accessed that does not write the uid state
information which did not add the closing tag which
resulted in producing a malformed XML.

Test: atest android.app.appops.cts.AppOpsTest#testNonHistoricalStatePersistence

bug:128872367

Change-Id: Iaddcce09b41f3e124e1838b65731d8dac9ca64e3
2019-03-20 15:12:23 +00:00
Annie Meng
4eb4efc466 API Review: Make dataManagementLabel a CharSequence
Make the data management label a CharSequence for the system APIs:
- BackupManager#updateTransportAttributes
- BackupManager#getDataManagementLabel
- BackupTransport#dataManagementLabel

Renames dataManagementLabel -> dataManagementIntentLabel to change
return type

Removes getDataManagementLabel AIDL method as usages converted to use
"forUser" version in topic CL.

Bug: 113856654
Test: 1) atest RunBackupFrameworksServicesRoboTests
2) atest BackupManagerTransportAttributesHostSideTest
3) atest $(find \
frameworks/base/services/tests/servicestests/src/com/android/server/backup \
-name '*Test.java')
4) Manual: boot and verify transports registered properly using old API;
Modify LocalTransport to use new API, verify success

Change-Id: Ia48017156debe0a29684909f58927fa1fbf972f9
2019-03-20 12:13:10 +00:00
Adam He
c384395d1a Merge changes from topics "aa_fill_ui", "aa_cancellation"
* changes:
  Don't show fill ui if fillrequest times out.
  Implemented CancellationSignal for augmented autofill requests.
2019-03-19 17:31:37 +00:00
Matt Pietal
73a873f235 Sharesheet - Profile switching & permissions
Need to make sure all content uris have the userid prepended in them,
otherwise when switching profiles the chooser will be denied access.
This is needed for content preview in the chooser itself.

Bug: 128597855
Test: atest ChooserActivityTest
Change-Id: Id835c7b443c1c5a83a8bf61d0545d86e32e92bfc
2019-03-19 07:36:10 -04:00
Andreas Gampe
5c22b02211 Merge "Zygote: Load system server code early" 2019-03-19 00:09:44 +00:00
Bookatz
1371b9ac52 LongSamplingCounter - remove update()
It wasn't being used anywhere and was requiring an extra long. Since
LongSamplingCounter takes up (cumulatively, due the huge number of
them) a lot of memory, each byte counts for a lot. (It was added in
ag/3771500, but appears to have never been used, so we restore its
original algorithm.)

Test: atest LongSamplingCounterTest
Change-Id: I7349e927ae6fe8c941e408c4d0843b638bf070e9
2019-03-18 16:17:56 -07:00
Mike Ma
99e57c3c40 Remove which from BatteryStats
BatteryStats tracks three "which" states:
STATS_SINCE_CHARGED,
STATS_CURRENT,
STATS_SINCE_UNPLUGGED

However, only STATS_SINCE_CHARGED is really needed; the other two
just take up a lot of unjustifiable RAM. We therefore remove them from
the implementation here.
We also remove mLastTime and mLastCount from Timers and Counters, since
it was always zero anyway.

While the other two "whiches" are left as constants, they are ignored,
and all functions treat any which as STATS_SINCE_CHARGED. In particular,
SystemHealthManager now uses STATS_SINCE_CHARGED, rather than
STATS_SINCE_UNPLUGGED for all of its Battery statistics.

This is adapted from ag/4310406, but slimmed down to just the 'which'
removal parts.

Bug: 70892428
Test: com.android.internal.os.BatteryStatsTests
Change-Id: I86f2743ff30afc15bbaa12c68f3206ea528857a1
2019-03-18 16:17:36 -07:00
TreeHugger Robot
93b4ed4cd8 Merge "Force LSKF in ConfirmCredential UI when pending escrow token exists" 2019-03-18 19:44:47 +00:00
Adam He
52577fcc24 Implemented CancellationSignal for augmented autofill requests.
Fixes: 122728762
Bug: 127062800
Test: atest android.autofillservice.cts.augmented.AugmentedLoginActivityTest#testCancellationSignalCalledAfterTimeout
Change-Id: Id6f0d6f5ac4e47b07e32c255fdbb02af878b6921
2019-03-18 11:42:33 -07:00
Adrian Roos
4ffc8977e2 Gestures: Assemble per-window exclusion zones
Adds a facility to listen for per-window exclusion zones and
assembles them into a per-display exclusion zone ready for
consumption by interested parties.

Bug: 126360272
Test: atest DisplayContentTests
Change-Id: Ic186f86ca551af98a5f77beb254d257c281a4160
2019-03-18 17:45:05 +00:00
Rubin Xu
fc06773c0a Force LSKF in ConfirmCredential UI when pending escrow token exists
Escrow tokens can only be activated by user confirming their LSKF,
while ConfirmCredential allows both LSKF and biometrics by default.
By requiring LSKF, it simplifies the DPC's flow of requesting the user
to activate a pending escrow token.

This change introduces an internal API to query the existence of
pending escrow tokens.

Bug: 127377026
Bug: 76084679
Bug: 79547502
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
Change-Id: Ie1ae58d2639394a9e6e1bf13d8bde44dfea240e8
2019-03-18 17:27:24 +00:00
Andreas Gampe
76b4b2c366 Zygote: Load system server code early
In an effort to allow loading integrity-checked artifacts from
the dalvik-cache, attempt to create and cache the system server's
classloader early, while still being in the system_server_startup
selinux domain.

The advantage of this approach is that allowances for loading
from the cache are restricted to startup.

Bug: 128688902
Test: m
Test: Device boots, picks up /system artifacts
Test: Device boots, picks up integrity-checked /data artifacts
Change-Id: If4a75fa106db09f1bd666d6d8df7ac3ac3e35a8c
2019-03-15 12:12:49 -07:00
TreeHugger Robot
3b11e376ce Merge "Update resolver icon generation" 2019-03-14 21:45:47 +00:00
Matt Pape
64e8dd211a Merge "Remove interfaces for runtime and runtime_native namespaces." 2019-03-14 20:07:46 +00:00
Mike Digman
220587edef Update resolver icon generation
Adds support for launcher-like icons via a ported form of
Iconloaderlib. Only fetches resolved activity's app icons with a special
cutout based on permission.

Bug: 126568207
Test: manual, mostly port of known to work code
Change-Id: Iba2c6f9aa5e63c457d9fd47921817c6529776b7a
2019-03-14 11:19:48 -07:00
TreeHugger Robot
f7b8614b18 Merge "Sharesheet - Scroll the content preview area" 2019-03-14 18:01:25 +00:00
Matt Pape
e9b680a3ae Remove interfaces for runtime and runtime_native namespaces.
Per API council feedback, we are making changes to include only the
namespace in the system API defined in DeviceConfig.java. Strings which
define property names should be defined in code local to the feature
instead.

Bug: 126411407
Test: atest FrameworksCoreTests:DeviceConfigTest

Change-Id: I73157c127a246719afb37eca65cabf2e3d24b38a
2019-03-14 10:07:41 -07:00
TreeHugger Robot
95335a500e Merge "Sharesheet - Remove pin/unpin actions" 2019-03-14 15:12:38 +00:00
Matt Pietal
1ef8800605 Sharesheet - Scroll the content preview area
Moved the content preview into the listview to be scrolled
with the rest of the content. Finally separated out each
content preview into its own layout file.

Bug: 120419296
Test: atest ChooserActivityTest, observe content preview area being scrolled
Change-Id: I2720ca5264a4db34abae178e653e4e91bc54500c
2019-03-14 11:04:15 -04:00
TreeHugger Robot
97640451bb Merge "Add missing XmlUtils.skipCurrentTag(parser); to "bugreport-whitelisted" case" 2019-03-14 12:58:59 +00:00
Nikita Ioffe
08146efa74 Add missing XmlUtils.skipCurrentTag(parser); to "bugreport-whitelisted" case
Somehow missed it in the original CL. :(
CL with CP into aosp already has this fix:
aosp/ee4d7be21948307a0fedc6ab75a21d41660aa0c5.

Test: m
Bug: 126541701
Change-Id: Ib5a0f0c7e07699e99f618fc70f4b3cba3abd235d
2019-03-14 11:08:36 +00:00
TreeHugger Robot
ca877189c1 Merge "Addressed deferred CL feedback comments." 2019-03-14 00:44:37 +00:00
Chris Wailes
fe3a348e7b Addressed deferred CL feedback comments.
This CL addresses several bits of feedback from previous CLs:
* ZygoteState.mABIList => ZygoteState.mAbiList
* Adding appropriate whitespace
* Finalizing variables where appropriate
* TEMP_RETRY_FAILURE around write
* Zygote.getSystemProperty => Zygote.getConfigurationProperty

Test: m
Test: Treehugger
Change-Id: I5ae4c8dfc336c7511bee375a80966abb1ead275e
2019-03-13 16:50:54 -07:00
TreeHugger Robot
248e3e5965 Merge "Fix issue with filtering threads with low CPU usage in KernelCpuThreadReader" 2019-03-13 19:47:31 +00:00
TreeHugger Robot
d5c06b57a2 Merge "Call AbstractRemoteService.finishRequest() on PendingRequest timeout." 2019-03-13 18:39:23 +00:00
Matt Pietal
df634cc099 Sharesheet - Remove pin/unpin actions
The new sharesheet design calls for the removal of
direct share/app pinning and unpinning

Bug: 128521718
Test: atest ChooserActivityTest
Change-Id: I5e89c775d3ce3df31a16310689fc36222ad2a107
2019-03-13 14:17:19 -04:00
Misha Wagner
2d938f364d Fix issue with filtering threads with low CPU usage in KernelCpuThreadReader
Also remove banned word from KernelCpuThreadReader to unblock commit.

Test: Existing unit tests

Change-Id: Iba872e8b48d81bef782f1cd51a22149520d78b4f
2019-03-13 18:15:52 +00:00
Matt Pietal
95574b0204 Sharesheet - Only show direct share with ACTION_SEND*
Do not run direct share logic with non ACTION_SEND* action
codes, as ChooserActivity can be used for many other types.
Update tests to check for correct target counts.

Bug: 127806974
Test: atest ChooserActivityTest
Change-Id: I2b37fc8312ca3602475dee1c989d945c0fdce7e1
2019-03-13 08:50:05 -04:00
TreeHugger Robot
309eb41ae1 Merge "Sharesheet - expand 4 direct share to 8 when possible" 2019-03-13 12:00:26 +00:00