Commit Graph

22803 Commits

Author SHA1 Message Date
Rubin Xu
0d53729785 Merge "Remove SecurityLog.writeEvent(String)" 2022-02-12 00:02:33 +00:00
Antony Sargent
0b677034e7 Merge "KeyguardManager#isDeviceSecure()" 2022-02-11 23:47:34 +00:00
Rubin Xu
6a8ccfa6c1 Remove SecurityLog.writeEvent(String)
Not used by anyone at the moment and could cause confusion with
the vararg overload, so removing.

Bug: 194988881
Test: atest MixedDeviceOwnerTest#testSecurityLoggingWithSingleUser
Change-Id: I73e64396bbbac69314ac26242f6e00ad1c9453ba
2022-02-11 20:47:53 +00:00
Rubin Xu
b86ec0a5a4 Merge "Security log: additional events for WiFi and BLE connections" 2022-02-11 20:46:50 +00:00
TreeHugger Robot
86d89c09f0 Merge "Recycle obtained Parcel" 2022-02-11 19:10:18 +00:00
TreeHugger Robot
ca8c3c269f Merge "Security Logging: log password change events" 2022-02-11 18:28:44 +00:00
Bernardo Rufino
1521f59b3b Merge "Safer @hide Bundle.getParcelable() with explicit type" 2022-02-11 18:23:18 +00:00
Hui Wu
b6f82945c2 Merge "CloudSearch API: add the field of source to SearchRequest" 2022-02-11 17:53:17 +00:00
Rubin Xu
b3655d8ada Security log: additional events for WiFi and BLE connections
Bug: 194988881
CTS-Coverage-Bug: 218677588
Test: atest MixedDeviceOwnerTest#testSecurityLoggingWithSingleUser
Test: atest OrgOwnedProfileOwnerTest#testSecurityLogging

Change-Id: I98d1c8fcd4fae334f1f770751b047dc8ab07c7c5
2022-02-11 17:50:58 +00:00
Pat Manning
dd0811a649 Merge "Revert "Revert "Change invalid input exception to IllegalArgumentException.""" 2022-02-11 17:22:47 +00:00
TreeHugger Robot
6ca24eea7c Merge "Makes acknowledgeNewUserDisclaimer() a @TestApi" 2022-02-11 16:19:40 +00:00
Pavel Grafov
c18c3b0525 Merge "Make distinction between null and empty IM list." 2022-02-11 12:13:27 +00:00
Pat Manning
8d606ab2e5 Revert "Revert "Change invalid input exception to IllegalArgumentException.""
This reverts commit d119788b19.

Reason for revert: Fixing CTS test and resubmitting

Change-Id: I66c9e78a9801deee41088a8c842604a213b4f8bd
2022-02-11 11:28:07 +00:00
TreeHugger Robot
c450b4ab93 Merge "Recycle obtained Parcel" 2022-02-11 11:14:22 +00:00
Hui Wu
1fa501674c CloudSearch API: add the field of source to SearchRequest
The System Server populates this new field.

CTS-Coverage-Bug: 210528288
Bug: 210528288
Test: RBE Built redfin-eng and tested on a physical device
Change-Id: I34e1631190b1baa2de9b2c97650865ac1ae1f38e
2022-02-11 00:39:59 -08:00
Kun Niu
1fbbe99469 Merge "Revert "Change invalid input exception to IllegalArgumentException."" 2022-02-11 03:39:10 +00:00
Xu Cao
f04d752fec KeyguardManager#isDeviceSecure()
KeyguardManager#isDeviceSecure() shall return false when called on a virtual display

Bug: 210153811
Test: atest CtsVirtualDevicesTestCases:DefaultDisplayIsDeviceSecureTest CtsVirtualDevicesTestCases:StreamedAppBehaviorTest#isDeviceSecure_shouldReturnFalseOnVirtualDisplay

Change-Id: I5149b08fde8d3a09e484ea965035bd5e7d2bff7b
2022-02-10 18:15:34 -08:00
Wenhao Wang
9bc171544a Merge changes from topic "revert_with_fix"
* changes:
  Temporarily disable user consent check
  Revert "Revert "Revert "Revert "User consent for Logcat data access""""
2022-02-11 01:31:59 +00:00
Beth Thibodeau
4f2645ae1b Merge "Add SystemAPI to override default media output switcher" 2022-02-11 00:22:07 +00:00
Felipe Leme
247a059662 Makes acknowledgeNewUserDisclaimer() a @TestApi
It's already a @SystemApi, but it's used by CTS so it needs to be
allowlisted as @TestApi, otherwise the test fails with a
NoSuchMethodException.

Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_newUserDisclaimer
Test: m update-api

Bug: 217753260

Change-Id: Ied5d86a5c067d57a4ae9bbc4d753481879d2e89e
2022-02-10 15:52:03 -08:00
Caitlin Cassidy
dc5dff8698 Merge "[Media TTT] Add app icon and name to the receiver SystemApi." 2022-02-10 21:35:27 +00:00
Kun Niu
d119788b19 Revert "Change invalid input exception to IllegalArgumentException."
This reverts commit b03e357980.

Reason for revert: breaking master cf_x86_64_phone-userdebug build

Change-Id: Id4b017b95783daaa7f399271f8dfb748f14cbb42
2022-02-10 18:44:05 +00:00
Alan Viverette
7d1188244c Merge "Migrate frameworks/base javadocs references to androidx" 2022-02-10 18:02:28 +00:00
Pavel Grafov
6125331ef2 Make distinction between null and empty IM list.
* null means no policy is enfrced, any IM is allowed.
* empty means no IMs is allowed except system IMs.

+ also use the correct user in InputMethodPreferences when checking for
  enforcing admin

Bug: 211063191
Test: manual, CtsVerifier/BYOD managed provisioning/Policy transparency
Change-Id: Ie8bf6de2d53c80b0f2f91e7e96479764834d55ef
2022-02-10 17:35:02 +00:00
Sally Yuen
6bb459d3de Merge "Expose prefetching strategies to services" 2022-02-10 17:09:37 +00:00
Beth Thibodeau
ded4a734d1 Add SystemAPI to override default media output switcher
To support RCN use case, allow system apps with the
MEDIA_CONTENT_CONTROL permission to declare that their MediaStyle notification
is for remote playback, and pass in their own device name, icon, and intent to
use in place of the default output switcher that appears on the media controls

Bug: 204910409
Test: atest
Test: manual with test app
Change-Id: Icbfa288c48da9c2ab2fdfdd6b0bfe2b545afaac0
2022-02-10 11:00:00 -05:00
Shan Huang
27d450afa5 Merge "Avoid leaking Activity from OnBackInvokedCallback." 2022-02-10 14:58:38 +00:00
Nikolas Havrikov
bfbc97b16b Recycle obtained Parcel
Bug: 218835043
Test: make
Change-Id: I8a4564e2d4ad20cbbf41a12a5bec62528d19eb89
2022-02-10 15:02:39 +01:00
Nikolas Havrikov
3ba2d18ceb Recycle obtained Parcel
Bug: 218835043
Test: make
Change-Id: I23477ee562b36ed2be3470dec90849cd91a10bdf
2022-02-10 15:01:47 +01:00
Charles Chen
c69e76f3e9 Merge "Enable to add ComponentCallbacks to Activity" 2022-02-10 13:14:15 +00:00
Pat Manning
7412dc8ce7 Merge "Change invalid input exception to IllegalArgumentException." 2022-02-10 12:56:44 +00:00
Wei Sheng Shih
761e58ee17 Merge "Make getSplashScreenStyle public." 2022-02-10 07:18:22 +00:00
Charles Chen
ba29cdb63e Enable to add ComponentCallbacks to Activity
This CL is mainly from the requirements to receive WindowMetrics
updates in Jetpack Library. It also benefits the developers if
they want to listen to Activity's configuration changes outside
Activity

Test: atest RegisterComponentCallbacksTest
Bug: 199442549
Change-Id: Iff5c0a4d9c61d30b84ff9aee465f1b6b06f1a48d
2022-02-10 14:55:33 +08:00
Wenhao Wang
07e705052a Revert "Revert "Revert "Revert "User consent for Logcat data access""""
This reverts commit 761d4a0ccf.

Reason for revert: A fix can solve the issue for which this revert was created

Bug: 196856709
Bug: 218391941
Bug: 218267535
Test: Safetynet test
Test: health/mpts/heavyweight
Ignore-AOSP-First: pending fix for logcat privacy issue

Change-Id: I54222244b2aa6a9f307ed61629608abe12db1e3d
2022-02-09 21:52:15 -08:00
Shan Huang
b533660125 Avoid leaking Activity from OnBackInvokedCallback.
- Remove mTopCallback field
- Cleanup compat and default callbacks
- Remove the callback held by WindowState when the window is removed.

Bug: 218328707
Test: atest packages/apps/Launcher3/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java
Test: atest frameworks/base/core/tests/coretests/src/android/window/WindowOnBackInvokedDispatcherTest.java
Change-Id: I38fd760a617500c874aef10bc8de165880837008
2022-02-10 04:46:24 +00:00
Tim Murray
a9a0b5b7c9 Merge "Improve broadcast tracing" 2022-02-10 01:09:47 +00:00
Antonio Kantek
63ae30e1cd Merge "(TouchMode Permission 2.6/n) Revert Instrumentation#setInTouchMode" 2022-02-10 00:38:26 +00:00
Shannon Chen
65f122bd45 Merge "Fix build warning about permissions for startActivityFromGameSessionForResult." 2022-02-10 00:38:18 +00:00
Peiyong Lin
31a292957c Merge "Update Test API." 2022-02-09 23:21:55 +00:00
Rubin Xu
9c3342f98d Security Logging: log password change events
* Log when the user's lockscreen password has been changed, together
with the new password's complexity level.

* Also expose SecurityLog.writeEvent() as SystemAPI, as some
mainline modules (WiFi etc) will start  emitting security events.

Bug: 194988881
Test: atest MixedDeviceOwnerTest#testSecurityLoggingWithSingleUser
Test: atest OrgOwnedProfileOwnerTest#testSecurityLogging

Change-Id: I2da4fdd15f85fab9244a978be7b1dafb4a82d190
2022-02-09 23:06:04 +00:00
Alan Viverette
406e0f6553 Migrate frameworks/base javadocs references to androidx
Does not remove Support Library artifacts from docs classpath (ApiDocs.bp)
because they are still used in development/samples, which is not as easy
to migrate as javadoc.

Bug: 158779503
Test: make docs
Exempt-From-Owner-Approval: Mass find/replace for androidx migration
Change-Id: Icf7f53ec36a0e970413352e2ebf40ce9d60ed17e
2022-02-09 22:25:14 +00:00
Yuri Lin
16e1bd9a25 Merge "Update matchesCallFilter guidance to recommend tel: codes" 2022-02-09 20:55:14 +00:00
Felipe Leme
48f8424371 Merge "Fixes some DPM APIs to use the context user." 2022-02-09 20:42:58 +00:00
Felipe Leme
601d3e82ab Fixes some DPM APIs to use the context user.
This APIs are primarily used by CarService, which always runs as
system user, so they cannot rely on the calling user id.

Test: atest CtsDevicePolicyManagerTestCases com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_newUserDisclaimer # on automotive and phone

Test: manual verification

Change-Id: I56bb8cd12be766ef9da6c71a524912f7f8680aad
2022-02-09 20:41:19 +00:00
Antoan Angelov
d87092533c Merge "API to get the device manager role holder package name" 2022-02-09 20:15:11 +00:00
Antoan Angelov
274ad40ff2 Merge "Add remaining DPM constants" 2022-02-09 20:14:38 +00:00
Kathy Chen
4ff2a4e611 Merge "Add query API for apps to check the event status. The detection service sends back the response with a status. Add client API for apps to start the consent activity." 2022-02-09 19:05:21 +00:00
Nikita Dubrovsky
d8ef185f33 Merge "Update ActivityId to implement Parcelable" 2022-02-09 19:02:56 +00:00
Antonio Kantek
6615233957 (TouchMode Permission 2.6/n) Revert Instrumentation#setInTouchMode
Allow Instrumentation#setInTouchMode to always switch touch mode when
running in instrumented environment.

Bug: 198487159
Fixes: 218118731
Test: atest FrameworksCoreTests
Test: atest CtsWindowManagerDeviceTestCases
Test: atest android.app.cts.ListActivityTest
Test: atest AlertDialog_BuilderCursorTest
Change-Id: I22e4bf0245dcf75a354f2cdc19d7f6107d0abaee
2022-02-09 10:55:43 -08:00
Wenhao Wang
9756d738a0 Merge "Revert "Revert "Revert "User consent for Logcat data access"""" 2022-02-09 18:53:33 +00:00