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

Commit ec7ac1f0 authored by yutingfang's avatar yutingfang
Browse files

Add cache for AppOpsManager#checkPackage

IAppOpsService#checkPackage(uid, packageName) is a highly frequently called binder API. It
mainly checks whether provided packageName belongs to the uid and if
calling uid can access the package. The result doesn't change often so
we can cache it on the client side to reduce binder calls.

Bug: 423030916
Test: presubmit
Flag: android.permission.flags.check_package_caching_enabled
Change-Id: If1de93269b7f9f8cfd031c4c1cea986923ce8ef1
parent bc4ddbb1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment