Commit Graph

10868 Commits

Author SHA1 Message Date
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
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
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
Matvei Malkov
6deeabb6bc Merge "Rename methods for PopupWindow" 2019-03-13 11:55:17 +00:00
Ganesh Mahendran
b116b20732 Merge "continue read file when returned count > 0" am: 894c578a02 am: 2a82e9a69c
am: 289ccbd48d

Change-Id: I8921e6be0760cdedef05c74ae1e77e18b9bd2b04
2019-03-13 01:24:38 -07:00
Ganesh Mahendran
289ccbd48d Merge "continue read file when returned count > 0" am: 894c578a02
am: 2a82e9a69c

Change-Id: I2880bdc9157996d30472e3eddb714c498b14e66b
2019-03-13 01:15:04 -07:00
Ganesh Mahendran
2a82e9a69c Merge "continue read file when returned count > 0"
am: 894c578a02

Change-Id: I43f5be6a4b365e2e7ea11ae413860d9cb0c37949
2019-03-13 00:59:30 -07:00
Treehugger Robot
894c578a02 Merge "continue read file when returned count > 0" 2019-03-13 07:36:51 +00:00
Kiyoung Kim
82ce8e4176 Merge "Schematize Crypto state system property" am: 88b57a2c4d
am: d5f216ac8b

Change-Id: I38fa65ef0864d8a40eb7546ad50ab254e7e0ec25
2019-03-12 22:08:25 -07:00
Kiyoung Kim
d5f216ac8b Merge "Schematize Crypto state system property"
am: 88b57a2c4d

Change-Id: Idb96ab95b1ea69a636f315edeb84c8ba025d75bd
2019-03-12 21:33:34 -07:00
Treehugger Robot
88b57a2c4d Merge "Schematize Crypto state system property" 2019-03-13 01:30:58 +00:00
Christian Wailes
cbee8d1b23 Merge changes I29d91abd,Ie13d2c1a
* changes:
  Fixes initialization bug in USAP pool properties.
  Fixed a nullptr exception in ZygoteProcess.java.
2019-03-12 21:07:31 +00:00
Chris Wailes
84efefd666 Fixes initialization bug in USAP pool properties.
This patch fixes an initialization order bug in the USAP pool policy
management code.  Previously, bad values were used when initializing the
USAP pool when it was enabled on device boot.  This patch ensures that
the policy system properties have been checked before the pool is
initialized.

Test: Boot with USAP pool enabled
Change-Id: I29d91abd511bc35c7a70a3a56668c7ee2290864b
2019-03-12 11:19:42 -07:00
Matt Pietal
5b64856b96 Sharesheet - expand 4 direct share to 8 when possible
When the user scrolls, expand or collapse the direct share targets
when more than 4 targets exist.  Move the caller row below the
direct share row and limit to 4 items.

Bug: 126565347
Test: atest ChooserActivityTest
Change-Id: Ibae2dc0522d9393f2022d699ee641a4f6d553974
2019-03-12 13:40:45 -04:00
Matvei Malkov
25c9ac3f5b Rename methods for PopupWindow
This CL renames 4 methods for PopupWindow based on API council
suggestions. Also remove unused import in order to `repo upload`

Bug: b/126354063
Test: All ListPopupWindow, MenuPopup and PopupWindow passed
Change-Id: I5db93b1c18a7a3dc9033cb9c5bbe89107ac22024
2019-03-12 17:12:44 +00:00
Kiyoung Kim
453a487b29 Merge "Add product apk support from libnativeloader" am: 307df45b5f
am: ad0ca523a6

Change-Id: I896f609e4994eb6b0494e3fcf38737c4a69352a8
2019-03-12 02:14:20 -07:00
Kiyoung Kim
ad0ca523a6 Merge "Add product apk support from libnativeloader"
am: 307df45b5f

Change-Id: I1f9c9e63c1cf7477436b8bc38e5e62e075183c64
2019-03-12 02:05:13 -07:00
Ram Periathiruvadi
b0e93d731e Merge "Notify the TrustAgent when the token is activated." 2019-03-11 20:35:51 +00:00
Beth Thibodeau
e970c5c049 Merge "Fix RTL expanded media notification layout" 2019-03-11 14:00:30 +00:00
Kiyoung Kim
5cba0cff2c Add product apk support from libnativeloader
Currently libnativeloader appends vendor lib path if apk is from vendor
partition. Similar to this we should add product lib path if apk if from product partition.

Bug: 124705551
Test: m -j && tested from crosshatch with product apps (such as Wallpaper)
Change-Id: Ic85b16e8e4484a35c659c16e067f1e7c7285d05e
Merged-In: Iaa8d0ea61b1b9ab8a1da676a492f75c6a5d71d5d
2019-03-11 11:42:28 +09:00
Bernie Innocenti
a7de534a93 Merge "Add junyulai@ as owner of the core networking dirs" am: e5e3ac639b am: b0498ba448
am: 6f6fc40839

Change-Id: I5902959b76797a58884480e3fd219ba53497ae8e
2019-03-09 06:04:09 -08:00
Chalard Jean
5c6f6ed370 Merge "Support VPN Proxy(1/2)" am: 65087f4705 am: ba4a9abe35
am: ff3d9bb029

Change-Id: If9b778dd168efdd8b2df15db375ac654398dd709
2019-03-09 04:19:38 -08:00
TreeHugger Robot
045630b80d Merge "Delete the color extraction blacklist" 2019-03-09 02:40:35 +00:00
TreeHugger Robot
071c59240d Merge "Check mChooserListAdapter for null when using App Predictor Service" 2019-03-08 23:45:46 +00:00
Beth Thibodeau
52fcd9d9fb Fix RTL expanded media notification layout
Fixes: 127643295
Test: visual, examples at https://drive.google.com/open?id=17NoNOO3UClrw7MGfrIfFDYUPmsKJ01WI
Change-Id: I2bc2c779750a3a7c6caf64131c728a6a5567a663
2019-03-08 16:51:58 -05:00
TreeHugger Robot
d1bd765392 Merge "Add RoleControllerManager for role controller service." 2019-03-08 21:32:00 +00:00
Ram Periathiruvadi
32d5355b4d Notify the TrustAgent when the token is activated.
Previously, the agent will have to query the TrustManager to see if a
recently added escrow token has been activated.  If the agent asked too
soon about the token state, then the result could be inactive.  That
will be hard to distinguish from when the token is actually inactive
because activation failed.

This change pipes the call from LockSettings to the TrustAgentService
through the TrustManager when the token is activated.  So, the trust
agent doesn't have to query, it just gets notified.

Bug: 124312230
Test: Observe the onTokenStateReceived() callback received on the trust
agent.

Change-Id: I0ac674219fd7925ba36f50bb695c9998c18226f7
2019-03-08 13:21:02 -08:00
Robert Snoeberger
4603244f68 Delete the color extraction blacklist
Bug: 124180048
Test: TonalTest passes
Change-Id: Ia3c00d88e2b224a5ea2f81e3734f2b3eff8a712a
2019-03-08 15:58:38 -05:00
George Hodulik
0dd5fbe86e Check mChooserListAdapter for null when using App Predictor Service
mChooserListAdapter will be null if there are no apps that can perfrom
the action (Share, Open With).

Bug:127305716
Test: Flashed and got the appropriate behavior: https://screenshot.googleplex.com/VcJFGHadspN
Change-Id: I5ca647cd974a02041522409fc070c27df2bdc9c4
2019-03-08 12:34:20 -08:00