commit | 54a2a0c4db2b9eb97ef7e867f84483f7bfbc6672 | [log] [tgz] |
---|---|---|
author | Hall Liu <hallliu@google.com> | Mon Jul 13 12:13:03 2020 -0700 |
committer | Hall Liu <hallliu@google.com> | Mon Jul 13 12:44:13 2020 -0700 |
tree | a6c983647e5af46145c9e59510c564a7225202c0 | |
parent | ac9baba7a015fa7618552c4466e5cc42e6df4a04 [diff] |
Skip carrier priv check for trusted UIDs Checking carrier privileges for UIDs with lots of shared apps can incur a significant performance hit. For UIDs that are fixed and trusted (system and phone), skip the permission check and always allow. Bug: 160971853 Test: manual verification -- observed lower rate of cache misses for getPackageInfo from com.android.phone. Change-Id: Id2079b44a14f67d6b7cccb915424426232d0965a