Commit Graph

19807 Commits

Author SHA1 Message Date
TreeHugger Robot
82200af0ab Merge "Add missing permission annotation" 2021-01-15 19:03:03 +00:00
Evan Rosky
c7bd598702 Merge "Add support for remote transition playback in shell transitions" 2021-01-15 18:23:09 +00:00
Hui Yu
5b9e74452e Merge "tempWhitelistForPendingIntent() can specify temp allowlist type." 2021-01-15 03:40:08 +00:00
TreeHugger Robot
40e252620a Merge "Added profile-owner and device-owner on cmd user list." 2021-01-15 00:44:48 +00:00
Evan Rosky
30f3544f65 Add support for remote transition playback in shell transitions
This adds IRemoteTransition interface for other processes (like
launcher) to register for playing transition animations.

Then there are 2 supported ways to "register":

1. Is to attach an IRemoteTransition to ActivityOptions. To
   support this pathway, requestStartTransition now takes a
   TransitionRequest object which can contain whatever info
   is needed at the time. One piece of that is the passed-in
   IRemoteTransition.

2. Is to register directly with shell (via systemuiproxy for
   now) with a TransitionFilter. This filter allows shell
   transitions to dispatch a transition to a remote without
   need to make queries over binder.

This also hooks up launcher animations by converting the new
transition info to the old RemoteAnimationTargetCompat stuff.

Bug: 169035082
Test: launch app from launcher and observe the icon animation.
      atest ShellTransitionTests
Change-Id: I8014a6f46cffda3a48a1a4ae101e2643078f4a14
2021-01-14 14:50:51 -08:00
Neil Fuller
bb14575fde Merge "Introduce a shell command to obtain MLS" 2021-01-14 19:37:50 +00:00
Neil Fuller
8b9717c418 Introduce a shell command to obtain MLS
Introduce a shell command to obtain MLS, and remove the equivalent from
TimeZoneDetector.

Bug: 172934905
Test: atest CtsLocationTimeZoneManagerHostTest
Change-Id: I75f2a12ba435f6c297dcada061fad90915f12c26
2021-01-14 16:47:56 +00:00
TreeHugger Robot
316dbd3b08 Merge "Prevent use of Enrollment-specific Id on parent" 2021-01-14 14:44:14 +00:00
Eran Messeri
afcd70ee95 Prevent use of Enrollment-specific Id on parent
Throw if the caller is trying to call methods related to
Enrollment-specific ID on the parent DevicePolicyManager instance.

This fixes ManagedProfileTest#testParentProfileApiDisabled

Bug: 177439350
Bug: 168627890
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.ManagedProfileTest#testParentProfileApiDisabled
Change-Id: I06610249021639f9319835d28c681bc0cb3d3887
2021-01-14 11:45:48 +00:00
TreeHugger Robot
d03ee56a05 Merge "ESID access for Delegated Cert Installer" 2021-01-14 11:42:37 +00:00
TreeHugger Robot
85cab1fa8b Merge "Use API for binding service with custom user and executor." 2021-01-14 10:36:55 +00:00
Eran Messeri
0360f4ec18 Merge "COPE: Allow use of password quality API" 2021-01-14 08:18:40 +00:00
Hui Yu
b3853a23fa tempWhitelistForPendingIntent() can specify temp allowlist type.
The supported temp allowlist types are
TEMPORARY_WHITELIST_TYPE_FOREGROUND_SERVICE_ALLOWED and
TEMPORARY_WHITELIST_TYPE_FOREGROUND_SERVICE_NOT_ALLOWED.

Bug: 175244558, 171305836
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java

Change-Id: I6b1e7782d54c6934453a0e2b529af96a19a45c4f
2021-01-13 22:53:12 -08:00
Lucas Dupin
366542b94e Add missing permission annotation
Methods that read the wallpaper need READ_EXTERNAL_STORAGE permission.
For some reason we forgot to annotate this method when getFastDrawable()
and getWallpaperFile() were annotated.

Test: make
Fixes: 136457450
Change-Id: I8dec025f35446f4a27b1c43dc249a8078478eeef
2021-01-13 18:03:12 -08:00
Hai Zhang
a95881f6ca Use API for binding service with custom user and executor.
There is actually already a public API overload for
Context.bindService() which allows binding the service with the user
of Context.getUser() and a custom Executor.

We can construct an Executor from our Handler, but this executor is
required to remain the same instance for different calls to
bindService() for the same ServiceConnection by the API, so we should
keep the Executor instance, as well as the Handler instance, instead
of calling getJobHandler() every time. In fact getJobHandler() is
already required to return the same instance, or bindServiceAsUser()
would have thrown the same exception for different Handlers.

Also removed a check in ContextImpl.bindService() to allow mainline
modules to use the bindService() API with Context multi-user.

Bug: 158736025
Test: presubmit
Change-Id: I95717a4a74267dff4fbe1898a82cdfa7f195cc06
2021-01-13 15:00:37 -08:00
Eran Messeri
0be80ff965 COPE: Allow use of password quality API
Allow the Device Policy Client of a company-owned, personally-enabled
device to device-wide set password requirements using the
deprecated password quality API.

DPC of a work profile on a personal device still cannot use the
deprecated API device-wide.

Bug: 165573442
Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testDevicePolicyManagerParentSupport
Change-Id: Icac0cc9028e760d8470e03f3e91386f667646c7f
2021-01-13 21:30:21 +00:00
Eran Messeri
a1485a6980 ESID access for Delegated Cert Installer
Let the delegated cert installer read the Enrollment-specific ID, as
certificate management is tied to specific devices/enrollments.

Bug: 168627890
Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDelegatedCertInstaller
Change-Id: I6fd301d42342b8b6c94b27846dd859c507057d9e
2021-01-13 18:12:33 +00:00
Ashwini Oruganti
40449d8182 Merge "Bulk apply PendingIntent.FLAG_MUTABLE_UNAUDITED." 2021-01-13 16:08:07 +00:00
Joanne Chung
92cf2ee67a Merge "Get ApplicationInfo using usr id" 2021-01-13 14:19:06 +00:00
Mathew Inwood
f3793ebcc9 Merge "Derestrict some non-SDK APIs." am: 29bf6e8443 am: 9e27f89092 am: 982e50f2c6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1541669

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iab20c244c8ff5b04f3236cfccb453a4fbe5a8705
2021-01-13 10:34:26 +00:00
Mathew Inwood
982e50f2c6 Merge "Derestrict some non-SDK APIs." am: 29bf6e8443 am: 9e27f89092
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1541669

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4eeffeb0d9ab509e2f436435bf2079558e2d1c7d
2021-01-13 10:12:53 +00:00
Mathew Inwood
29bf6e8443 Merge "Derestrict some non-SDK APIs." 2021-01-13 09:38:35 +00:00
Louis Chang
3275f07a82 Merge "Rename Stack to Task related terms (5/n)" 2021-01-13 07:56:43 +00:00
Hui Yu
8102d73d57 Merge "Allow BG-FGS-launch for profile owner UID." 2021-01-13 06:36:51 +00:00
Adam He
aaeac91a58 Merge "Register translation service." 2021-01-12 23:35:18 +00:00
Ashwini Oruganti
f8191e8996 Bulk apply PendingIntent.FLAG_MUTABLE_UNAUDITED.
We've been working hard to require PendingIntents explicitly declare
if they allow their contents to be mutated or not, and to finish
landing that work this change applies the new FLAG_MUTABLE_UNAUDITED
flag to all remaining code locations until they can be manually
inspected.

Bug: 160794467
Test: manual
Change-Id: I8d7ec64ac89755c14b5959bb6ef0bce203c92bf0
2021-01-12 15:07:43 -08:00
Adam Bookatz
185089663b Merge "Add User* OWNERS file (part 2)" am: da79da08f0 am: b9b73d26db am: 9ac98ffa59
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1543926

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3fc005c69350f13002ceea055c7b97b8486eb484
2021-01-12 21:04:55 +00:00
Adam Bookatz
9ac98ffa59 Merge "Add User* OWNERS file (part 2)" am: da79da08f0 am: b9b73d26db
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1543926

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I87bc14c52e4aa4ed42f73496e104f0f3182c613b
2021-01-12 20:55:13 +00:00
TreeHugger Robot
14b4729450 Merge "Defined workflow to notify new users when the device is managed." 2021-01-12 20:50:42 +00:00
Hui Yu
9578316c3c Allow BG-FGS-launch for profile owner UID.
Bug: 171305836
Test: Create a profile owner app, start FGS from background.
Change-Id: I6a237c238dea9851a7126a5cbf7275db02f536ec
2021-01-12 12:46:05 -08:00
Joanne Chung
aa1949639a Register translation service.
Bug: 173243538
Test: manual. Make sure device can boot to home and we can get
the TranslationManager successfully.

Change-Id: Ib0e733d6b8f3792431d71f9791b5b2e43a029a7b
2021-01-12 12:19:49 -08:00
TreeHugger Robot
7c6e169d82 Merge "DPM: Prevent mixing password quality and complexity" 2021-01-12 18:35:49 +00:00
Hui Yu
b898264ff2 Merge "BG-FGS-start is allowed for companion apps." 2021-01-12 17:50:39 +00:00
Eran Messeri
7da93284cc DPM: Prevent mixing password quality and complexity
Prevent a mix of password requirements in the form of quality and
complexity, except in one approved scenario (password quality on the
profile DPM instance, complexity on the parent DPM instance).

Bug: 165573442
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.ManagedProfilePasswordTest
Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testResetPasswordWithToken com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testGetPasswordExpiration
Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTestApi30
Change-Id: I67c15377f12c6fb0c0c5756d279fd44623158781
2021-01-12 15:38:28 +00:00
Louis Chang
8011a6a0b1 Rename Stack to Task related terms (5/n)
Update and removed some unused or duplicated events log tags.

Also update few stack terms showing in bugreport/dumpsys.

No logical changes.

Bug: 157876447
Test: presubmit
Change-Id: I1add8c5a66a9b1b367700000f9833aa5c23fc50a
2021-01-12 21:44:52 +08:00
Eran Messeri
9868762e50 Merge "Implement Enrollment-Specific ID" 2021-01-12 09:10:24 +00:00
Hui Yu
8facd571bb BG-FGS-start is allowed for companion apps.
Defined by CompanionDeviceManager.

Bug: 171305836
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: Ia13dab3921a2c6c2e94c024bf70b8493d5eea850
2021-01-12 06:22:57 +00:00
Jing Ji
2364dddeff Merge "Add OWNERS coverage in package android.app" am: 3d4e998ee6 am: c233e94b13 am: f8efca376a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540573

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id3b8ab753bf650ac17ba9a0148b7c974e4829743
2021-01-12 03:41:07 +00:00
Jing Ji
f8efca376a Merge "Add OWNERS coverage in package android.app" am: 3d4e998ee6 am: c233e94b13
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540573

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id13ae978f192be9c7ffa697ce8a091dc72f204bb
2021-01-12 01:15:33 +00:00
Adam Bookatz
6cd4cd01fb Add User* OWNERS file (part 2)
Part 1 was aosp/1546301.
Two parts are required due to b/175318571.

Test: N/A
Change-Id: I1a89f7d26da70dce36d1e891a8e8ebc4042dc56c
2021-01-12 01:03:39 +00:00
Jing Ji
3d4e998ee6 Merge "Add OWNERS coverage in package android.app" 2021-01-11 23:57:04 +00:00
TreeHugger Robot
3019485370 Merge "Add SUPPORTED_MODES_DEVICE_OWNER to force DO provisioning" 2021-01-11 22:56:22 +00:00
Jeff DeCew
b1e9252d65 Merge changes from topic "decorate_custom_notifs"
* changes:
  Improve RemoteViews to simplify notification view hierarchy.
  Fully custom view notifications now receive minimal decoration when targeting S.
2021-01-11 21:48:22 +00:00
Nikita Dubrovsky
19d37240a5 Merge "Add MIME types to ViewStructure and autofill/cc ViewNode classes" 2021-01-11 21:17:53 +00:00
Julia Reynolds
9e4b9c84da Merge "Add a status API for conversations" 2021-01-11 21:10:17 +00:00
Nikita Dubrovsky
e8f7c4ba7c Add MIME types to ViewStructure and autofill/cc ViewNode classes
Bug: 168253885
Test: atest FrameworksCoreTests:TextViewOnReceiveContentTest
Test: Manual
CTS-Coverage-Bug: 170893906
Change-Id: Iac8f73a7a022f20f59ecef9be89e3189ca106e4c
2021-01-11 20:57:48 +00:00
Eran Messeri
a844c5988f Implement Enrollment-Specific ID
Implement Enrollment-Specific ID, which is calculated using fixed device
identifiers, as well as the provisioning package and the Organization
Identifier set by the Device Policy Controller.

Test: atest FrameworksServicesTests:EnterpriseSpecificIdCalculatorTest
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testEnrollmentSpecificIdCorrectCalculation com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testEnrollmentSpecificIdCorrectCalculation com.android.cts.devicepolicy.MixedDeviceOwnerTest#testEnrollmentSpecificIdEmptyAndMultipleSet com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testEnrollmentSpecificIdEmptyAndMultipleSet
Bug: 168627890
Change-Id: I8b24efa6b8c82d6181f2b20bc8880ddeb6caa4c5
2021-01-11 20:46:44 +00:00
Kevin Hufnagle
dae30affe7 Merge "docs: Remove error in requestPermissions doc" into rvc-dev am: 05efe90a8d am: 49421dc19c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13122154

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I616c21458dde3c5c1ba87fc116604cade5a9a133
2021-01-11 20:20:39 +00:00
Kevin Hufnagle
49421dc19c Merge "docs: Remove error in requestPermissions doc" into rvc-dev am: 05efe90a8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13122154

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3325b526d894701d199f2669131adb46dc1fca42
2021-01-11 19:54:37 +00:00
Kevin Hufnagle
da3ee63d75 Merge "docs: Remove error in requestPermissions doc" into rvc-dev am: 05efe90a8d am: 5290b8d590
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13122154

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I42ea9340c432704656ed33cdd27b5093e90fced4
2021-01-11 19:54:14 +00:00