summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2018-09-18 16:22:54 -0700
committerPhilip P. Moltmann <moltmann@google.com>2018-09-18 19:52:36 -0700
commitc701e7e6f89182f2c6d09d1deded96ad4272add8 (patch)
tree70ce910b574c4169183458b78ddcfd71d06436df /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentb0be05c5cbc0d87764f3fca6c03778e2db02e08f (diff)
Grant permissions to updated system packages
isSystemPackage calls isSysComponentOrPersistentPlatformSignedPrivApp which checks the uid of the app. If we call getSystemPackageInfo on an updated system package we get the info for the original apk installed on the system permission, not the updated apk. This original is not a currently registered package, hence it does not have an uid and reports -1. Hence if you pass the result of getSystemPackageInfo into isSysComponentOrPersistentPlatformSignedPrivApp the first check always triggers which then makes isSystemPackage assume the package is not a system package. Fixes: 115854330 Test: Executed steps in the bug (updated gmscore, restarted, tried to add second user which triggers default grant policy for the second user) Change-Id: I74745f8985082490a1f770d7682a964518782dd1
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions