This CL relaxed the UI context checks to only apply on UI related
APIs in WallpaperManager.
Test: build & run
Bug: 176958992
Change-Id: I390e865e31fde48bad6bbddb4203e4c997a1400a
This extra allows the provisioning initiator to determine
whether provisioning should be split into two (provisioning
part and DPC setup part) or be a single flow.
If set to true, it is the responsibility of the provisioning
initiator to resume provisioning. This is basically the
setup wizard.
Fixes: 177330679
Test: this extra will be testsed in ManagedProvisioning code
Change-Id: If8b301ef676bb8b15d974ddc898420978de08f84
This boolean extra will be used to determine whether to skip
the ownership info screen in the provisioning flow.
Setting it to true makes the provisioning initiator responsible
for showing the ownership info.
Bug: 175622930
Test: Tests will be provided in the ManagedProvisioning code
Change-Id: I505d34fbb78cc065376035ee59993f8f5cad68dc
ec6ebc3a1e
Also made the APIs test API instead of system API, to be turned into
system API later during the actual move into module.
Bug: 158736025
Test: atest RcsProvisioningMonitorTest
Change-Id: I74ce1b8352b6e3afc595d8d0f08db28b8c2f29c3
Use ApplicationInfoAsUser() to get the application information by
user id to make sure we have correct permission, othewise we will
get the SecurityException due to lack of INTERACT_ACROSS_USERS.
Bug: 176313819
Test: atest CtsVoiceRecognitionTestCases
Test: manual.
1.create profile user
2.Install sample recognizer app
3.Function works fine and no security exception occurred after
apply the change
Change-Id: I6958dbf661373606fb9dba55e386aaea4399a146
Merged-In: Iaf485537b8082d2109d2134ff987dc7244e31218
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
Introduce a shell command to obtain MLS, and remove the equivalent from
TimeZoneDetector.
Bug: 172934905
Test: atest CtsLocationTimeZoneManagerHostTest
Change-Id: I75f2a12ba435f6c297dcada061fad90915f12c26
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
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
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
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
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
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
Bug: 173243538
Test: manual. Make sure device can boot to home and we can get
the TranslationManager successfully.
Change-Id: Ib0e733d6b8f3792431d71f9791b5b2e43a029a7b