commit | ce478d220ec5d983976c8b54f8b6ad897f14d765 | [log] [tgz] |
---|---|---|
author | Hall Liu <hallliu@google.com> | Mon Jul 13 12:13:03 2020 -0700 |
committer | Hall Liu <hallliu@google.com> | Wed Jul 22 18:04:04 2020 -0700 |
tree | 708782d993b12e0e4c1186541ca6b09dbc866e50 | |
parent | fb895c39f22d66c4bee236a5d4246b72d9b8bbc1 [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