Commit Graph

113704 Commits

Author SHA1 Message Date
TreeHugger Robot
777531511f Merge "Rename get/setProtectedPackages methods" into rvc-dev 2020-03-15 23:05:42 +00:00
Stanislav Zholnin
48811ee600 Add logging operation ids.
Add operation ids which are used only for logging. They will
allow to reduce bandwidth required for logging. Mapping between
operation string ids (OPSTR_, public API) and Logging ids
is enforced by statsd CTS test.

Bug:143519689
Test: android.cts.statsd.atom.UidAtomTests#testAppOps
Test: android.cts.statsd.atom.UidAtomTests#testForegroundServiceAccessAppOp
Exempt-From-Owner-Approval: discussed  with moltmann@ in chat.

Change-Id: I2f85d6889e946219557d26b28334d4bacde06b12
Merged-In: I2f85d6889e946219557d26b28334d4bacde06b12
2020-03-15 14:29:32 +00:00
Mark Chien
b4decfc142 Merge "Add javadoc for Network#netId" into rvc-dev 2020-03-15 02:53:29 +00:00
Paul Chang
eaca5898d0 Merge "Pass value to indicate screenshot is requested or not in Bugreporting API" into rvc-dev 2020-03-14 18:04:46 +00:00
Eugene Susla
1d7a7910e4 Add missing OPSTR for OPSTR_AUTO_REVOKE_MANAGED_BY_INSTALLER
Fixes: 151506845
Test: Ensure no error on boot
Change-Id: I912fb0c2058ef8db4a58b2c05a1d142a7d7d22cc
2020-03-14 09:16:43 -07:00
Khaled Abdelmohsen
2c89227525 Merge "Support multi apk stamp verification" into rvc-dev 2020-03-14 07:23:34 +00:00
Eugene Susla
41b448e39b Merge "Introduce per-app API for installer whitelisting" into rvc-dev 2020-03-14 05:43:11 +00:00
Eugene Susla
922cd08f62 Introduce per-app API for installer whitelisting
Test: presubmit
Bug: 146513245
Change-Id: I5a4502aeb78d2e35209ed88312d24bcafbb4ba7c
2020-03-13 22:09:22 -07:00
TreeHugger Robot
764e7971d8 Merge "Updated v4 signature processing." into rvc-dev 2020-03-14 02:28:40 +00:00
Jayant Chowdhary
6241aceae8 Merge "camera2: rename getConcurrentStreamingCameraIds() -> getConcurrentCameraIds()" into rvc-dev 2020-03-14 01:44:50 +00:00
TreeHugger Robot
c670246edb Merge "Treat MODE_FOREGROUND as ALLOWED for appop checks" into rvc-dev 2020-03-14 01:34:04 +00:00
Philip P. Moltmann
e6c5650e88 Treat MODE_FOREGROUND as ALLOWED for appop checks
noteOp always resolved MODE_FOREGROUND into IGNORED/ALLOWED
checkOp resolves it too, but checkOpRaw does not resolved it and might
return it.

Preflight checks should be independant of the uid state, hence treat
MODE_FOREGROUND similar to ALLOWED as MODE_FOREGROUND might allow it.

Bug: 150508177
Fixes: 148197098
Test: TH
Change-Id: I7b4f53c7ce638f92747d452f2d2f72d098e94b78
2020-03-14 01:22:55 +00:00
Song Hu
e9851d5fad Merge "Prototype for Sharesheet direct share row append mechanism" into rvc-dev 2020-03-14 01:09:13 +00:00
TreeHugger Robot
62748d0a66 Merge "Set mNextServedView as null only when current served view lost focus" into rvc-dev 2020-03-14 00:26:57 +00:00
Khaled Abdelmohsen
f6b1e8c3f6 Support multi apk stamp verification
Bug: 148005911
Test: atest FrameworksCoreTests:SourceStampVerifierTest
Change-Id: Iffab565a03ae57c469784baa12bec9cd130e69a1
2020-03-14 00:23:56 +00:00
Evgenii Stepanov
eeff2cf753 Enable gwp-asan in system_server.
Enables gwp-asan in system_server with a small probability, same as any
native process or system app.

Bug: 149991821
Test: kill system_server in a loop - find "GWP" in /proc/$PID/maps
      eventually
Change-Id: I3900f5d277d28987883a918d62fe9390c780ac30
(cherry picked from commit 2bb1dba5c7)
2020-03-14 00:10:02 +00:00
Kevin Chyn
6b7b2300c4 Merge "Pass operationId to LSS, add HAT to KeyStore" into rvc-dev 2020-03-13 23:53:16 +00:00
Eugene Susla
2ac02b0d3e Add public API to check if current app is auto-revoke exempt
Test: presubmit
Bug: 146513245
Change-Id: I18ac5957eb9ae1ea0d7de2daf407e6d797079937
2020-03-13 22:44:00 +00:00
Eugene Susla
ff17a587a8 Merge "Introduce per-app manifest flags for autoRevoke" into rvc-dev 2020-03-13 22:40:36 +00:00
Roshan Pius
4d4e926a74 Merge changes from topic "services.net-wifi" into rvc-dev
* changes:
  services.net: Add a static library needed by wifi module
  services.net: Use the new ModuleNetworkStackClient
2020-03-13 22:39:09 +00:00
Alex Buynytskyy
f5e605a00c Updated v4 signature processing.
Passing to libincfs.so.
Obtaining and verifying, including v3 digest check.

go/apk-v4-signature-format

Test: atest PackageManagerShellCommandTest
Bug: b/151241461
Change-Id: Id61f5716b9f9b55d6ab1ebca5a7ecb1c6e54570a
2020-03-13 15:13:25 -07:00
Mihir Patel
a5efb2c838 Merge "Notifying the on-device intelligence service when view window insets have changed" into rvc-dev 2020-03-13 21:02:15 +00:00
Selim Cinek
5f003f4e10 Merge changes I69b33b0c,If904c85e,I28444df4,I3bfa4580,I88d9667d, ... into rvc-dev
* changes:
  Decrease avatar and sender name sizes in MessagingStyle
  Fixed various conversation layout appearences
  Implemented FacePile if no group icon is present
  Fixed the behavior of headers in conversation groups
  Ensured correct coloring of badge in dark mode
  Fixed an issue where the bubble badge was visible independent of the icon
  Improved transitions for expanding messaging notifications
  Adjusted single line representation to include a colon
  Made the expand button positioning conditional on expanded state
  Ensured that the sender of the first message is hidden
  Baseline for the new ConversationLayout
2020-03-13 21:01:24 +00:00
Selim Cinek
83cf855163 Merge "Made sure that templated views support RTL" into rvc-dev 2020-03-13 20:58:52 +00:00
Song Hu
e2deffd7bf Prototype for Sharesheet direct share row append mechanism
Use this cmd to enable the feature:
adb shell device_config put systemui append_direct_share_enabled true

Use this cmd to adjust timeout threshold (in millisecond):
adb shell device_config put systemui share_sheet_direct_share_timeout 15000

Bug: 151112858
Test: manually tested both prod flow and prototype flow on phones.

Change-Id: I328ecefc9dffad40ec412c033da54e0443f8889a
2020-03-13 13:52:24 -07:00
Shuo Qian
aa49e5b750 Merge "Add updateMccMncConfiguration as @TestApi for CTS" into rvc-dev 2020-03-13 20:40:31 +00:00
Hall Liu
19ecc1c95c Merge "Hide APIs introduced in earlier change" into rvc-dev 2020-03-13 20:29:19 +00:00
Hall Liu
1b243291f4 Merge "Hide RoleManager#getDefaultSmsPackage" into rvc-dev 2020-03-13 20:28:36 +00:00
Rob Carr
6e2a98a1f8 Merge "InsetAnimationControlImpl: Copy SurfaceControl" into rvc-dev 2020-03-13 20:18:09 +00:00
Mihir Patel
b73c421753 Notifying the on-device intelligence service when view window insets have changed
bug:137800469

Test: manual
Change-Id: Ia69e273a6646fc15e289f75084a81193e71e1eef
2020-03-13 20:04:25 +00:00
Nate Myren
2585289c30 Merge "Update USER_SENSITIVE flags on app install and optimize it" into rvc-dev 2020-03-13 19:43:10 +00:00
Hongyi Zhang
d7886dcbae Merge "RescueParty: Add a DeviceConfig killswitch" into rvc-dev 2020-03-13 19:37:38 +00:00
Joanne Chung
031fe36d35 Merge "Refine TC request classes." into rvc-dev 2020-03-13 19:35:33 +00:00
Khaled Abdelmohsen
e6bae5dc05 Merge "Change source stamp verifier outcome" into rvc-dev 2020-03-13 19:01:28 +00:00
Khaled Abdelmohsen
39bad6c991 Change source stamp verifier outcome
Modify source stamp verifier to produce non-present stamps when
receiving an error while reading the stamp file in an APK.

Bug: 148005911
Test: atest FrameworksCoreTests:SourceStampVerifierTest
Change-Id: I7682f51761e60b4236424cf2cdb6119f53259ab0
2020-03-13 18:56:21 +00:00
Adam He
640c3b4f92 Merge "Hide autofill highlight if filling only the focused field." into rvc-dev 2020-03-13 18:52:57 +00:00
Adam He
2f70bc5503 Merge "Removed inlinePresentation from Dataset ctor and added setInlinePresentation." into rvc-dev 2020-03-13 18:52:09 +00:00
Evan Severson
a285890237 Merge "Update reserved permission controller flags name" into rvc-dev 2020-03-13 18:30:25 +00:00
Feng Cao
f0e7d48fec Merge "Sends click and long click events from the inline suggestion to host app" into rvc-dev 2020-03-13 18:25:48 +00:00
Eugene Susla
db77bc14de Introduce per-app manifest flags for autoRevoke
This introduces extra attributes on <application/> tag corresponding to
requesting to be shown in UI for the user to disable auto-revoke
(allowDontAutoRevokePermissions)
and being whitelisted by the installer (dontAutoRevokePermissions)

Test: presubmit
Bug: 146513245
Change-Id: I07902632812b70ea418a667d343b74d7ae170bb9
2020-03-13 11:23:26 -07:00
Rob Carr
3a367c4bab InsetAnimationControlImpl: Copy SurfaceControl
This way the lifetime can be bound to the animation. Otherwise
the InsetController owns the lifetime, and it can be challenging
to synchronize the two (we would need to update all the running
animations when we rebuild the control list).

Bug: 150918857
Test: Existing tests pass
Change-Id: I86017b2eaee29ab0d8174479d187c9b7dd014305
2020-03-13 17:11:52 +00:00
Jerome Gaillard
f9fe6f87a9 Rename AutoTime and AutoTimeZone APIs part 2
Some usages were forgotten.

Bug: 150958098
Test: m docs
Change-Id: I1d3dc332942638160e35c9f5c224f51b47e71bb3
2020-03-13 16:34:23 +00:00
Hongyi Zhang
3aecf323e3 RescueParty: Add a DeviceConfig killswitch
1. Add a killswitch DeviceConfig flag in case emergency rollback is
needed (e.g. PackageWatchdog doesn't behave correctly).
2. Register the namespace for native flag sync mapper so that we can
also use the flag to turn off native disaster recovery.

Test: Atest RescueParty & verified on local device
Bug: 149420506
Change-Id: I9a0b546c7229c8444947b522585dd2c5ed37a00b
(cherry picked from commit 1c0993cf12)
2020-03-13 16:30:06 +00:00
Garfield Tan
7fcb7d59c4 Merge "Add window layout affinity." into rvc-dev 2020-03-13 16:16:18 +00:00
Simranjit Kohli
a03b6abb5b Merge "Secure FRP : Remove @SystemApi annotation." into rvc-dev 2020-03-13 15:44:29 +00:00
Roshan Pius
b6361f9490 services.net: Add a static library needed by wifi module
Add a new static library that compiles against system_current which
includes all the parts needed by the wifi mainline module.

Also,
a) Refactored TcpKeepalivePacketData to use public APIs. The parcel
read/write methods in the base class are @hide and they're not used by
the other child class (NatKeepalivePacketData). So, remove the @hide
method from base class and use it direcly in the child class.
b) Add jar-jar rules for all the statically linked dependencies in wifi
service jar rules.

Exempt-From-Owner-Approval: Minor change on top of owner's approval.
Bug: 145825329
Test: Device boots up & connects to wifi networks.
Change-Id: Ifde69b579cfe5b813766f676acb10e436e64a44c
2020-03-13 14:42:09 +00:00
Pavel Grafov
75e2ea6bb4 Merge "Clarify time units for setManagedProfileMaximumTimeOff argument." into rvc-dev 2020-03-13 14:30:07 +00:00
Philip P. Moltmann
d7a823623f Merge "Rename featureId -> attributionTag" into rvc-dev 2020-03-13 14:26:31 +00:00
lumark
ec78f00fe9 Set mNextServedView as null only when current served view lost focus
mNextServedView is set to null when the next view focus is lost.
but we should not set mNextServedView as null when received the
next view focus is lost but the view is not the current served view.

It can happen when received next view focused but input connection will
disconnect when mNextServidedView is null.

The issue is found when the Activity has ListView which added SearchView
as a list item.

When the Activity is launched, input connection will be started when
activity window focused and served view will be SearchView since search
view request focus by default, then when user taps SearchView,

several view focus in/out events comes out quickly that may cause
mNextServedView set to null when the conteiner View lost focus, so input
connection will be disconnected since ImeFocusController#checkFocus checked
there is no next served view.

The fix is to set mNextServedView as null only when the current served view
loses focus.

Fix: 148974380
Test: atest FocusHandlingTests
Change-Id: I9e90428387fcf43fbf86a8407de7535913202872
2020-03-13 19:22:49 +08:00
Nicolas Geoffray
98bf50a88e Merge "Revert "Zygote: Load system server code early"" into rvc-dev 2020-03-13 11:15:06 +00:00