Commit Graph

468813 Commits

Author SHA1 Message Date
Alex Buynytskyy
8e9e6a3255 Signature streaming from local file, property to disable incremental.
+Tests

Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest
Bug: b/136132412 b/133435829

Change-Id: I826900e120c72e7cdd0549c70da28d817982dcd3
2020-02-12 11:24:47 -08:00
Dave Mankoff
8df818ecda Remove last calls to Dep.get from GlobalActionsDialog
Bug: 147493050
Test: atest SystemUITests
Change-Id: Ic9a6887de0dd8202142226eeedda2d2752be3840
2020-02-12 14:22:26 -05:00
Yuliya Kamatkova
fea62a512b Restrict visibility of LOCUS_ID_SET events.
UsageStats will not return LOCUS_ID_SET events to callers
of #queryEvents and #queryEventsForUser if they don't have visibility.

Bug: 148821246
Test: manual, atest tests/tests/app.usage/src/android/app/usage/cts/UsageStatsTest
Change-Id: Ic904a97e66775ef63bc8b84e67e8f430b2a4121b
2020-02-12 11:20:22 -08:00
Alex Buynytskyy
780d2bb75d Merge "v4 signing schema parsing and verification." 2020-02-12 19:19:06 +00:00
Andrei Onea
2978f19124 Add @ChangeId for CTS test
Because CTS tests must run on user builds, the compat change for testing
android.app.compat.CompatChanges must be a legitimate one, gated on
targetSdk.

Bug: 149340016
Test: atest CtsAppCompatHostTestCases # on user build

Change-Id: I49985681f2022308419f7f7a1e4e4d4c0fe48315
2020-02-12 19:18:08 +00:00
Patrick Baumann
42a87d93b7 Adds QUERY_ALL_PACKAGES permission to packageinstaller
Test: atest PackageInstallerTest
Bug: 142386643
Change-Id: Ifad512054262dcfb093163fc3dd1ab28ab632ebd
2020-02-12 19:12:38 +00:00
Taran Singh
925c658631 Revert "Revert "Enable insets flag for IME""
This reverts commit d01913ae83.

Reason for revert: We're ready to re-enable the flag since b/149121559 is fixed

Change-Id: I1aca81bb6c2dbb544841a2a6d17ef477cb8bdc9e
2020-02-12 19:07:46 +00:00
Automerger Merge Worker
223c27ef69 [automerger skipped] Merge "NetworkRequest: Embed requestor uid & packageName" am: 9dd718c5d9 am: 894c9db9f5 am: 050d6c11d5 -s ours
am skip reason: Change-Id I207c446108afdac7ee2c25e6bbcbc37c4e3f6529 with SHA-1 e38acab53e is in history

Change-Id: Ie84d552bda61e5f3e5e1000eb6496a5d5da165b2
2020-02-12 19:04:02 +00:00
Automerger Merge Worker
30416b5b79 [automerger skipped] Merge "Add @Nullable and @NonNull to module API" am: 04ee825346 am: d785329abb am: d2b4bbb15c -s ours
am skip reason: Change-Id I71fb766d02f833ed9a1b3a7dbfbc1c8118882b30 with SHA-1 ca03ef4de6 is in history

Change-Id: Ib5bc634e527a6b779593ff528e56239beee73559
2020-02-12 19:03:34 +00:00
Brett Chabot
7484c6c83c Build StrictJarFile for host.
(cherry pick from I6c85c3b1e3d02c480a11ef3a3ba3df82ec01553c)
Bug: 138449617
Test: m libandroid_runtime

Change-Id: I969801d431e985d8f33ff5cb76ba67571cc6c8c9
2020-02-12 11:01:52 -08:00
Dave Mankoff
30a66e364f Remove final call to Dep.get(FalsingManager.class)
CarStatusBar had one last reference in its dump method.
FalsingManager, however, directly registers itself with the
DumpController, so this call is redundant.

Bug: 136279712
Test: atest SystemUITests
Change-Id: I3731e7ecac2f147e5d3967d4219f22d17e810843
2020-02-12 13:59:12 -05:00
Pavel Grafov
e878706d71 Add COPE related metric.
* setManagedProfileMaximumTimeOff
* setPersonalAppsSuspended
* COMP -> COPE migration

Test: OrgOwnedProfileOwnerTest#testSetManagedProfileMaximumTimeOffLogged
Test: OrgOwnedProfileOwnerTest#testSetPersonalAppsSuspendedLogged
Test: manual, via "adb shell cmd stats print-logs" + "adb logcat | grep statsd" during boot
Bug: 148788010
Change-Id: Iaf09b536328bdb6623a2d4f6c92f73cd7f94f28c
2020-02-12 18:59:10 +00:00
Automerger Merge Worker
050d6c11d5 Merge "NetworkRequest: Embed requestor uid & packageName" am: 9dd718c5d9 am: 894c9db9f5
Change-Id: Icdf8417670f1ff3e68f90d8c3dc5a52d9c024f00
2020-02-12 18:58:41 +00:00
Automerger Merge Worker
d2b4bbb15c Merge "Add @Nullable and @NonNull to module API" am: 04ee825346 am: d785329abb
Change-Id: I89ff5004e3df1cde65390cbdb7119ebb47637091
2020-02-12 18:58:09 +00:00
Automerger Merge Worker
8fa960732e [automerger skipped] Merge "Add null check for voiceInteractorComponentName." into qt-qpr1-dev am: 718b4fd970 am: 80d6f30aec -s ours
am skip reason: Change-Id I5b8ede1e5bd8c1bc047bc6d6220b425dea8f50ea with SHA-1 fffd182650 is in history

Change-Id: Ia8b96b0f987ea5d1224530fe6b05ce4cc9620002
2020-02-12 18:57:11 +00:00
Philip P. Moltmann
0946037764 Merge "Revert "Revert "Activity start: Send featureId from context->AppOpsManager""" 2020-02-12 18:52:23 +00:00
Automerger Merge Worker
894c9db9f5 Merge "NetworkRequest: Embed requestor uid & packageName" am: 9dd718c5d9
Change-Id: Ic4f9247e18a9d1cc22b26500b47da1af2d9b011d
2020-02-12 18:51:59 +00:00
Philip P. Moltmann
ee29509ecd Revert "Revert "Activity start: Send featureId from context->AppOpsManager""
This reverts commit e7421e92d9.

Exempt-From-Owner-Approval: revert-revert and only piping anyway
Test: 1:1 revert-revert
Bug: 136595429
Change-Id: I44e5fa2019f5604c6e2c08bdd1967129c64a90a7
2020-02-12 18:51:53 +00:00
Glenn Kasten
4ea98d30cc Merge "Deprecate OpenSL ES for Android as of API level 30 (R)" 2020-02-12 18:49:30 +00:00
Dominik Laskowski
26290bb074 Plumb display connection type to DMS
Secondary physical displays are now properly categorized as TYPE_INTERNAL
or TYPE_EXTERNAL, rather than assumed to be external. LocalDisplayAdapter
distinguishes between primary/secondary and internal/external categories
when populating DisplayInfo.

Bug: 134771872
Test: dumpsys display
Change-Id: Id43a72411131588897f29b8d8db417f8c9e78259
2020-02-12 10:47:27 -08:00
Qingxi Li
9dd718c5d9 Merge "NetworkRequest: Embed requestor uid & packageName" 2020-02-12 18:43:32 +00:00
Automerger Merge Worker
d785329abb Merge "Add @Nullable and @NonNull to module API" am: 04ee825346
Change-Id: I61943d8e33dc94d780401448a8acc716966a5763
2020-02-12 18:42:53 +00:00
Automerger Merge Worker
80d6f30aec Merge "Add null check for voiceInteractorComponentName." into qt-qpr1-dev am: 718b4fd970
Change-Id: I60936954d102a3d9557f2a01c9b70c333c1e4c4b
2020-02-12 18:42:23 +00:00
TreeHugger Robot
915b1aeb96 Merge "Fix UsageStats dump NPEs." 2020-02-12 18:42:09 +00:00
Grace Jia
6207b729e2 Remove ImsReasonInfo from PreciseDisconnectCause
Test: make, manual
Bug: 147767400
Change-Id: Ief1d85a046ae5aa018f10766c4578b31225516d3
2020-02-12 10:35:35 -08:00
Kevin Han
c1f04488b9 Add logging to content inflation pipeline
Use new LogBuffer to add more logging to content inflation classes,
namely NotifBindPipeline and RowContentBindStage to make our debugging
lives easier.

Test: adb shell settings put global systemui/buffer/NotifLog2 debug
Observe new logs in logcat
Change-Id: Ia4232c2586bab4a766d9900b56d3aface512f29f
2020-02-12 10:33:53 -08:00
Anton Hansson
04ee825346 Merge "Add @Nullable and @NonNull to module API" 2020-02-12 18:26:06 +00:00
TreeHugger Robot
0fe79c3fe2 Merge "Revert "System API used by telephony to bind to WapPushManager app."" 2020-02-12 18:23:59 +00:00
TreeHugger Robot
718b4fd970 Merge "Add null check for voiceInteractorComponentName." into qt-qpr1-dev 2020-02-12 18:23:06 +00:00
Eino-Ville Talvala
53e0762358 Merge "Camera NDK: New lifecycle for ACameraMetadata_fromCameraMetadata" 2020-02-12 18:09:33 +00:00
Songchun Fan
8ee930630f [adb data loader] release unique_fd from openWrite
Test: manual
BUG: 133435829
Change-Id: Ia124d802dd1c07a8626ada32bb26e90611c7360f
2020-02-12 10:06:47 -08:00
Kenny Root
883f89e6a9 Resume-on-Reboot: add logs to aid in debugging
There are some failures during CTS tests which fail to arm the
RebootEscrow HAL, but the reason is unclear due to lack of logging
during error cases. This adds the missing error logging for cases that
shouldn't happen.

It also adds logs for success cases that should only happen once per
boot: escrow key restoration per user and escrow key arming per boot.

Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.ResumeOnRebootHostTests
Change-Id: Ia2d015dda3eae3b1bbba2d898a485cd2b174ad1a
2020-02-12 09:55:25 -08:00
Automerger Merge Worker
e5bbdcfcf5 Merge "Include NetworkCapabilities and LinkProperties in DataStallReport." am: 3939d29c0b am: b3a0f10a8e am: 8a175acf37
Change-Id: Iae8c37ceeae1616b2b0edc43248e72f3de082f20
2020-02-12 17:50:39 +00:00
Patrick Baumann
9157e2643e Adds AppEnumerationTests to pm presubmit
Test: atest AppEnumerationTests
Bug: N/A
Change-Id: If1683be4667f75308a900c336b2cca45e7bea772
2020-02-12 17:50:13 +00:00
TreeHugger Robot
36256cb11f Merge "idmap2: support Lookup for arrays" 2020-02-12 17:49:56 +00:00
Alex Buynytskyy
036864b62c v4 signing schema parsing and verification.
v4 is a streaming add-on to the existing v2/v3 schemas.

Flow:
- APK is signed with v2/v3 and v4 signature blocks,
- on installation, v4 signature bytes are stored next to the APK in
hidden block,
- on each read from APK, kernel verifies the v4 signature using
fs-verity-like code,
- on parsing/verification, we extract certificates from kernel and
compare them with certificates extracted from v2/v3 signature block.

By doing this we are making sure that v4 signature is produced by developer and original APK bytes are not changed.

Test: atest PkgInstallSignatureVerificationTest
Bug: b/136132412 b/133435829
Change-Id: Ia2a56c82c9864bf65e1338700dfe51abf6800deb
2020-02-12 09:46:06 -08:00
TreeHugger Robot
98a201dcd9 Merge "Finalize @SystemApi annotation for StatsFrameworkInitializer (retry)" 2020-02-12 17:36:49 +00:00
Florian Mayer
5845bdf66e Do not disable tracing in zygote.
We now use the sequence number of the atrace tag rather than a Binder
transaction, so zygote can observe changes to the tags.

Test: m
Bug: 137366208
Bug: 147667830

This is a cherry-pick of e38797be84.

Change-Id: I50e32a19c538dd255097c035836504b4746b172b
Merged-In: I50e32a19c538dd255097c035836504b4746b172b
2020-02-12 17:35:15 +00:00
Automerger Merge Worker
8a175acf37 Merge "Include NetworkCapabilities and LinkProperties in DataStallReport." am: 3939d29c0b am: b3a0f10a8e
Change-Id: Ifc6f6a919986305002d2e2c60aa3cda8f0b8b5ac
2020-02-12 17:32:19 +00:00
Florian Mayer
fab4628666 Merge "Do not disable tracing in zygote." 2020-02-12 17:28:07 +00:00
kwaky
d445aaf1e2 Add null check for voiceInteractorComponentName.
Voice Assistant can be disabled on a user-level. Adding this null check
prevents crash for when Assistant is enabled for the system in general but
disabled for a specific user.

Bug: 149112015
Test: Manual -- Change config_disableLockscreenByDefault to true to
emulate the environment in which Volvo observed the bug. Verify that
switching to user0 through adb shell switch-user 0 causes the same crash.
Verify that the crash does not happen with the new null check.

Change-Id: I5b8ede1e5bd8c1bc047bc6d6220b425dea8f50ea
Merged-in: I5b8ede1e5bd8c1bc047bc6d6220b425dea8f50ea
2020-02-12 09:26:00 -08:00
Dave Mankoff
a3895b878d Include rowContentBindStage mock in NotificationEntryManagerTest.
This test is flaky because sometimes it succeeds in inflating
its ExpandableNotificationRow, and sometimes it doesn't. When it
does succeed, it is currently getting an NPE. This CL fixes the
NPE, as one of the methods that needed mocking was missing.

Bug: 149391269
Test: atest SystemUITests
Change-Id: Ic869c0badba3db619b42a781194dfbdb4ee1a59b
2020-02-12 12:20:53 -05:00
Nikita Ioffe
779d6bee21 Log UserspaceRebootReported atom from system_server
UserspaceRebootLogger class is introduced to encapsulate (tiny) state
machine for logging of userspace reboot.

So far state is stored in a persistent property, but that can be changed
in the future.

Unit tests will be added in a follow-up CL.

Test: adb shell svc power reboot userspace
Bug: 148767783
Change-Id: Ib9e2c6cef7094ccac7862be249d619212f0013fd
(cherry picked from commit d5594e2f901ba7eced97b35da8cf0f0a3f6242bd)
2020-02-12 17:19:14 +00:00
Cody Kesting
b3a0f10a8e Merge "Include NetworkCapabilities and LinkProperties in DataStallReport."
am: 3939d29c0b

Change-Id: If2157b0dd7d62560c77318b76e0d7d2a66c09644
2020-02-12 09:16:41 -08:00
Daniel Chapin
45fefe0f65 Revert "Require user pass in a non-null BluetoothDevice to all B..."
Revert "Pass in active device to all BluetoothA2dp APIs in packa..."

Revert "Pass in active device to all BluetoothA2dp APIs in packa..."

Revert submission 10253996-bt-a2dp-no-null

Reason for revert: b/149361880
Reverted Changes:
If43934374: Pass in active device to all BluetoothA2dp APIs in...
I22dd1ca36: Make sure calls to BluetoothA2dp APIs pass non-nul...
If6475af6f: Require user pass in a non-null BluetoothDevice to...
I9d0e2c89c: Pass in active device to all BluetoothA2dp APIs in...
I1faa6174d: Need to now pass in active device instead of null ...
I69a941a7e: Pass in active device to all BluetoothA2dp APIs in...

Change-Id: I297bda68da5023fd832201c485554d6bff05fa78
2020-02-12 17:16:10 +00:00
Anton Hansson
7f94169e56 Add @Nullable and @NonNull to module API
These two annotations are already in the public/system stubs,
but are re-written to be package private instead of public. This
makes them inaccessible to libs building against these stubs.

When setting sdk_version:<X>, the stubs of X will appear before any
other libraries on the classpath. This also makes it impossible for
modules to add Nullable annotations of their own when setting sdk_version.

Exposing these annotations as public in the module stubs makes it
possible for modules using these annotation to specify an sdk_version.

Bug: 146758669
Test: m
Test: downstream CLs using sdk_version:module_current
Change-Id: I71fb766d02f833ed9a1b3a7dbfbc1c8118882b30
Merged-In: I71fb766d02f833ed9a1b3a7dbfbc1c8118882b30
(cherry picked from commit c8fc90a0c2b04a5f6f5e6006155ca1e9a09db4e3)
2020-02-12 17:12:06 +00:00
Anton Hansson
96d61bff33 Merge "Build permission against the module SDK" 2020-02-12 16:56:46 +00:00
Anton Hansson
85231d53b4 Merge "Build updatable media against the module SDK" 2020-02-12 16:56:23 +00:00
Alex Johnston
12a4461733 Merge "Modify Screen Capture Disabled APIs" 2020-02-12 16:55:36 +00:00
Anton Hansson
c6e0e28391 Merge "Add @Nullable and @NonNull to module API" 2020-02-12 16:55:31 +00:00