Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f0d748be authored by lpeter's avatar lpeter
Browse files

Add "conditional=true" annotation for setPackagesSuspended API.

We have the @RequiresPermission(Manifest.permission.SUSPEND_APPS)
annotation for PackageManager.setPackagesSuspended API, but we
allow the device owner and profile owner to use this API directly
without the permission "Manifest.permission.SUSPEND_APPS" in the
service implementation. So we need to add "conditional=true" to
@RequiresPermission annotation for this API.

Bug: 284455031
Test: build pass and boot success
Change-Id: I9f31f074736afd216935f4112584fef9ea98e2bf
parent 97d0644e
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