diff options
author | Martijn Coenen <maco@google.com> | 2020-06-04 15:38:53 +0200 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2020-06-08 13:35:32 +0000 |
commit | 7b977f3139d9290f484391cd6217323b037b18d6 (patch) | |
tree | 348d389ee50fc1887da234d1a803b6886815b6a2 /graphics/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 38e3d616bc62fe5e0627f5b3878c824c4c174a16 (diff) |
Taking userId into account for fixupAppDir().
We previously used the getPackage(packageName) API, which doesn't take
the userId into account; this could result in passing in the wrong uid
into fixupAppDir(), because fixupAppDir() validates the passed in uid
matches with the path.
Instead, use PackageManager.getPackageUidAsUser() to match the userId
that was passed in through the path.
Note that we don't care about paths which don't have a userId embedded,
since those are public volumes, for which we don't need this API anyway
(since public volumes don't have UID/GID etc.)
Bug: 157271022
Test: pm create-user aap ; log in to user, try selecting ringtones
Change-Id: Id8731cb18c16c4742d232048f9093fbd57323159
Diffstat (limited to 'graphics/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions