Skip to content
Commit 1ab58c3b authored by Alex Johnston's avatar Alex Johnston
Browse files

Non-system camera PPA set by DPC

Background
ag/10760163 introduced a change which requires
camera intents to match system apps only.
As a result, the DPC will no longer have the
aility to control the camera PPA.

This CL gives the DPC the ability to set a
camera PPA, by adding a new field isSetByDPM
to the PersistentPreferredActivity. If this
field is set, the camera intent does not have to
match a system app.

Changes
* Added isSetByDPM to PersistentPreferredActivity
* Added helper method in PackageManagerService to
  check if an intent is an image capture intent
  and not set by the DPC
* updated the is isImplicitImageCaptureIntentAndNotSetByDpc
  parameter to updateFlagsForResolve() in
  PackageManagerService

Bug: 153921883
Test: atest com.android.server.pm.PackageManagerServiceTest
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPersistentIntentResolving
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testPersistentIntentResolving
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testPersistentIntentResolving
Change-Id: I667a7e613b76514ecc1d814393d173c2987ca0b6
parent 09aa3bc4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment