Commit Graph

23422 Commits

Author SHA1 Message Date
TreeHugger Robot
bf343d242b Merge "Add hidden constants to allow the role holder updater to specify the failure strategy" into tm-dev am: a3ca84f805 am: f5f646bf3f am: c46d6615dc am: dedc1bafc0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18093642

Change-Id: I7f5ed83ed2abea89f35f7407a223067e23807523
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-04 03:21:50 +00:00
TreeHugger Robot
a3ca84f805 Merge "Add hidden constants to allow the role holder updater to specify the failure strategy" into tm-dev 2022-05-03 20:50:09 +00:00
Vadim Caen
f3daae4b71 Merge "Update deprecation documentation for onBackPressed" into tm-dev am: 4f77430976 am: a1e593e611
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18090442

Change-Id: I107e8d5a1d3e7208c02fad856d5b69d142964557
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-03 14:44:51 +00:00
Vadim Caen
29347308d7 Update deprecation documentation for onBackPressed
Add some detail about migrating to OnBackInvokedDispatcher and the
reason behing the deprecation of onBackPressed methods.

Fixes: 227563202
Test: Documentation change only
Change-Id: Ifc2dd88cb9600efae84cd353549811e7b07ae4bc
2022-05-03 13:51:15 +02:00
arangelov
28fea115ad Add hidden constants to allow the role holder updater to specify the failure strategy
If the role holder updater fails to update the role holder, it can
specify how the platform should handle the failure. It can either
fail provisioning, or it can carry on using the platform-driven
provisioning.

Bug: 230749552
Test: compiled
Change-Id: Id24b24e5d7386d9806efa232f8c71287c9b7704b
2022-05-03 12:34:20 +01:00
TreeHugger Robot
58e77acb61 Merge "Disallow privileged apps to bypass location restriction" into tm-dev am: a9c0327cb3 am: 0e70f575e8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18090449

Change-Id: Iaaff7607081da64d531db3275701e25f16e5c2dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 17:08:05 +00:00
TreeHugger Robot
a9c0327cb3 Merge "Disallow privileged apps to bypass location restriction" into tm-dev 2022-05-02 16:21:15 +00:00
Sudheer Shanka
1102d0412e Merge "Verify INTERACT_ACROSS_USERS_FULL perm for cross-user calls." into tm-dev am: 5047c1abb4 am: 73b8912e2d am: 4bdf4ec977 am: 2ca047dbe7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17947145

Change-Id: I4bae05d548f695ed05d6600d08ca7099c92fb52c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 12:11:04 +00:00
Lee Shombert
400b347145 Merge "Allow selective detailed dumps of caches" into tm-dev am: 13eb52a2ce am: a54c615b93 am: e8a1c90684 am: f5d5dd4df5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17718092

Change-Id: I8126b62e21f0f2220e635721eab990eb8f500f63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-02 11:46:20 +00:00
Sudheer Shanka
5047c1abb4 Merge "Verify INTERACT_ACROSS_USERS_FULL perm for cross-user calls." into tm-dev 2022-04-30 01:07:51 +00:00
Evan Severson
530407c903 Disallow privileged apps to bypass location restriction
This bypass was originally allowed to let restricted users who can't use
location to pair bluetooth devices. This isn't needed anymore with the
bluetooth permissions.

Test: Set up restricted profile and pair bluetooth
      Verify com.android.phone gets rejected
Fixes: 230861324
Change-Id: Ib34c0b56ef52f5ee2deceb84b02cd0ff73d8181d
2022-04-29 21:51:06 +00:00
Louis Chang
1ffb7d5e5b Merge "Adding null check to prevent NPE" into tm-dev am: da9b7dcacc am: 547b8e2c95
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17938066

Change-Id: I028c3f8e01f5d0f0b91ce294d3970adb91768a9a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-29 18:54:24 +00:00
Brian Lee
2ed23e9d5c Merge "Add unit tests for KeyguardManager." 2022-04-28 21:46:25 +00:00
Kathy Chen
6d4d8bf43e Merge "Fix shell command bugs for supporting CTS test. Add service unit test. Fix javadoc." 2022-04-28 18:23:20 +00:00
Lee Shombert
23e59a07d9 Allow selective detailed dumps of caches
Bug: 227383489

'dumpsys cacheinfo' can now dump more information about caches, by
supplying arguments to the command.  If no switches are specified
then the behavior is unchanged from the baseline.  If any switches are
specified then zero or more caches are selected; the command dumps
statistics and content for every selected cache.

The four switches each include a key string.

 The switch             Selects a cache if
 ---------------------  ------------------
 -name-has=<key>        the cache name contains the key
 -property-has=<key>    the property name contains the key
 -name-like=<regex>     the cache name matches the regex key
 -property-like=<regex> the property name matches the regex key

Tested by running the following commands and manually verifying the
output.

  dumpsys cacheinfo com.android.systemui
  dumpsys cacheinfo com.android.systemui -name-has=OrganizationOwned
  dumpsys cacheinfo com.android.systemui -name-like=OrganizationOwned
     - no results, as this regex does not match any cache
  dumpsys cacheinfo com.android.systemui -name-like=.*OrganizationOwned.*
  dumpsys cacheinfo com.android.systemui -property-has=package_info
  dumpsys cacheinfo com.android.systemui -property-like=cache_key.package.*

Test:
 * atest FrameworksCoreTests:IpcDataCacheTest
 * atest FrameworksCoreTests:PropertyInvalidatedCacheTests

Change-Id: I141d7e85ba3ea8b0f2615bbd49537c1170fb5449
2022-04-28 14:49:33 +00:00
Louis Chang
da9b7dcacc Merge "Adding null check to prevent NPE" into tm-dev 2022-04-28 13:33:43 +00:00
Rhed Jao
1ff3f11593 Merge "Adds user id support to the checkSignatures API" 2022-04-28 02:37:02 +00:00
Kathy Chen
44eafb8f58 Fix shell command bugs for supporting CTS test. Add service unit test. Fix javadoc.
Test: unit test and cts test
Ignore-AOSP-First: confidential feature
Change-Id: I0fd2950eea267d56fbd8e89ecc52fdd590992e75
2022-04-27 18:39:36 -07:00
Sudheer Shanka
85a9add6bd Verify INTERACT_ACROSS_USERS_FULL perm for cross-user calls.
Bug: 218338453
Bug: 217935264
Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: I3ef13204834e04228280a73e8a095720d5e854a3
2022-04-26 17:19:52 -07:00
Alexander Roederer
f6bc73fd1e Merge "Updates documentation on Action Button Icons" into tm-dev am: 3d790a1673 am: 4e322bebc4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17928040

Change-Id: I81f9e5145ec626697a5a4668c3d6904505b28574
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-26 17:32:04 +00:00
Lucas Dupin
966bbbd7d4 Merge "Make ISmartspaceManager non-blocking" into tm-dev am: 874513847f am: 1232b49943
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17943089

Change-Id: I77d5ddfacbc0b9b78ec480478e2b2e3db11d524c
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-26 17:31:18 +00:00
Alexander Roederer
3d790a1673 Merge "Updates documentation on Action Button Icons" into tm-dev 2022-04-26 16:58:07 +00:00
Lucas Dupin
874513847f Merge "Make ISmartspaceManager non-blocking" into tm-dev 2022-04-26 16:28:58 +00:00
Rhed Jao
9923f39c71 Adds user id support to the checkSignatures API
The checkSignatures API return false if target packages do not
install in the current user. This cl fixes the instrumentation
cannot be launched if the target package does not install in
the system user.

NoNonSdkCheck: An equivalent api is available in PackageManager.

Bug: 229979568
Bug: 216113658
Test: atest CrossUserPackageVisibilityTests
Test: atest PackageManagerTest
Test: atest PackageManagerTests
Test: atest OverlayManagerServiceImplTests
Test: atest OverlayManagerServiceImplRebootTests
Test: atest ShortcutManagerMultiuserTest#testSecondaryUser
Change-Id: Idd6afe400453af3259547a069efaf9c86ff1da38
2022-04-26 19:39:24 +08:00
Charles Chen
8bda7d7db3 Merge "Promote isFloating to TestApi" into tm-dev am: 6ed3a87798 am: 7d7068b9fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17887364

Change-Id: I367cd92e949564121a945278a82f7dec70c08fdd
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-26 07:27:06 +00:00
Charles Chen
6ed3a87798 Merge "Promote isFloating to TestApi" into tm-dev 2022-04-26 06:20:14 +00:00
Sooraj Sasindran
c18f6f7b79 Merge "Store preferential network service config in xml" into tm-dev am: 6d8f27328f am: 8a7f836c19
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17643287

Change-Id: I0d7fb43f3c5cbb50d0c957d8bb3e35a0fb0a9a1a
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-26 01:22:34 +00:00
Sooraj Sasindran
6d8f27328f Merge "Store preferential network service config in xml" into tm-dev 2022-04-26 00:41:48 +00:00
Antoan Angelov
9311b9fe14 Merge "Update javadocs for EXTRA_ROLE_HOLDER_UPDATE_RESULT_CODE" into tm-dev am: 6327cfe89b am: 3c89ee753a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17941384

Change-Id: Ia2940f749255197de818a15ed0c805ea6d5ce29a
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 20:19:54 +00:00
Antoan Angelov
6327cfe89b Merge "Update javadocs for EXTRA_ROLE_HOLDER_UPDATE_RESULT_CODE" into tm-dev 2022-04-25 19:32:44 +00:00
Lucas Dupin
4c41efd8d9 Make ISmartspaceManager non-blocking
Methods from this manager are being called from the SystemUI main
thread, and hitting system_server locks.
All methods return void, and are already using a callback mechanism,
we can make this oneway.

Fixes: 220718061
Test: Deployed on Phone,CTS tests
Change-Id: Ief549fce0d2463547cade4028696cf9431ce3a84
2022-04-25 10:39:22 -07:00
arangelov
6f1c9c3295 Update javadocs for EXTRA_ROLE_HOLDER_UPDATE_RESULT_CODE
Also ACTION_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER

Bug: 230098812
Test: none
Change-Id: Ib06b40bec7d32c32f044822b48ff7e8ebcb220a4
2022-04-25 16:44:51 +01:00
Louis Chang
7fe81a61c5 Adding null check to prevent NPE
#createConfirmDeviceCredentialIntent returns null if the device
is insecure.

Bug: 229950204
Test: atest StartActivityAsUserTests
Change-Id: I7de3e72d0677044e282952126612fc3e072d83fd
2022-04-25 13:14:12 +08:00
Alexander Roederer
b2c69fb78e Updates documentation on Action Button Icons
Updates documentation on Action Button icons to note that icons
are not displayed as of Android 7.0.

Bug: 184243364
Test: Only documentation change
Change-Id: If301c9d5ca46b847be16a741d0aa3bb96b37499c
2022-04-24 02:31:45 +00:00
Issei Suzuki
e04873ac02 Merge "Add timestamp to ActivityOptions.OnAnimation*Listener" into tm-dev am: 408b90ffad am: f5271f10de
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17860344

Change-Id: I912bc42a72262e88730a4364ad556a3a6fa6ca2b
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-23 05:09:30 +00:00
Issei Suzuki
408b90ffad Merge "Add timestamp to ActivityOptions.OnAnimation*Listener" into tm-dev 2022-04-23 04:29:09 +00:00
Makoto Onuki
0ffd609852 Merge "Remove STOPSHIP" into tm-dev am: e1851000e7 am: 516b63546f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17890142

Change-Id: I84ae398fa4d1759a22e84e6bde0356aafa72e5e5
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-23 00:33:48 +00:00
Makoto Onuki
e1851000e7 Merge "Remove STOPSHIP" into tm-dev 2022-04-22 23:33:10 +00:00
Issei Suzuki
8fbc23c5c9 Add timestamp to ActivityOptions.OnAnimation*Listener
Bug: 229948029
Test: atest ActivityTransitionTests
Change-Id: I1e6d21c8b603f4e81bde6c649868baad625c2b38
2022-04-22 21:47:24 +02:00
Ricky Wai
cf25cde011 Merge "Add OEM config for enhanced confirmation mode and add restricted read ops" into tm-dev am: 0fbae018dc am: c3c5b9cd23
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17620163

Change-Id: Id894a6b90cf4630a449ee63b1e9c57f5858c6039
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 15:44:37 +00:00
Ricky Wai
0fbae018dc Merge "Add OEM config for enhanced confirmation mode and add restricted read ops" into tm-dev 2022-04-22 14:53:01 +00:00
Sooraj Sasindran
ee3a15d419 Store preferential network service config in xml
Bug: 227338666
Test: verified using manual test that config is persistent
Change-Id: I0cc2e7395ef9530a8ebdd27fcf7a791a7f126367
2022-04-22 04:09:36 -07:00
Alex Johnston
a1b136134c Merge "Make screen capture per-device DO and COPE" into tm-dev am: c170d9adf0 am: 21338dd57e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17070865

Change-Id: Ifde1b4fe4a7288db1677a15e08237dd42db231c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 10:10:55 +00:00
Alex Johnston
c170d9adf0 Merge "Make screen capture per-device DO and COPE" into tm-dev 2022-04-22 09:29:12 +00:00
Josh Tsuji
b35356a3cc Merge "Invalidate home task snapshot onWakeAndUnlock." into tm-dev am: 30183c1cf8 am: 7949750348
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17802841

Change-Id: I34e69eb91599819e9538a6b3ba5f53579862a470
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 18:58:58 +00:00
Josh Tsuji
30183c1cf8 Merge "Invalidate home task snapshot onWakeAndUnlock." into tm-dev 2022-04-21 18:23:28 +00:00
Makoto Onuki
020c607e75 Remove STOPSHIP
Fix: 221248960
Test: Boot, treehugger
Change-Id: Ib313e21f4df1b117514887b58f8c229ad87de58f
2022-04-21 10:23:10 -07:00
Nick Gagliardi
900031a8e6 Merge "Updated an incorrect link." into tm-dev am: 71e2f74d9a am: cacc4f15d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17865668

Change-Id: I8e848b5d37516d0422e49c807fc9062bd98a19ec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 13:20:23 +00:00
Alex Johnston
af6b08b09a Make screen capture per-device DO and COPE
Test cases:
- DO
  - Verify disabled for entire device
  - Verify still disabled after restart
  - Verify no longer disabled when DO is removed
- COPE
  - parent
     - Verify disabled for entire device
     - Verify still disabled after restart
     - Verify no longer disabled when COPE PO is removed
  - not-parent
     - Verify disabled for user
     - Verify disabled after restart
     - Verify disabled when PO is removed

Bug: 217558483
Test: DevicePolicyManagerTest
      OrgOwnedProfileOwnerTest#testScreenCaptureDisabled
      ScreenCaptureDisabledTest
Change-Id: I977eb18619da46e1cfc5d0a8d351ea80d3ea7205
2022-04-21 13:29:42 +01:00
Charles Chen
6010845a4a Promote isFloating to TestApi
fixes: 229824513
Test: presubmit
Change-Id: I0023ee49bb4bcc4a49563a26107484915dc7713b
2022-04-21 17:17:17 +08:00