diff options
author | Jackal Guo <jackalguo@google.com> | 2021-05-04 10:43:01 +0800 |
---|---|---|
committer | Jackal Guo <jackalguo@google.com> | 2021-06-02 23:04:29 +0800 |
commit | 3d79d7e4e40c779b83a9c8b610e8232226c05c2c (patch) | |
tree | 979334daa3fde3c4e6b04f4f6da3b133b2c08680 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 0a40c03eb1a0583c7cac687d679d281683fae293 (diff) |
Enforce owner rights check to get/setMimeGroup
In the normal cases, the package name and the calling uid should be
from the same application. Adding this checking to get/setMimeGroup,
and moving the implementation to the internal variants. Also, guard
PackageSetting with the synchronized.
Bug: 184745603
Bug: 184745431
Test: atest CtsDynamicMimeHostTestCases
Test: manually using the PoC in the buganizer to ensure the symptom
no longer exists.
Change-Id: Ic6956a55077ba4f3aed4df405b6db7219de8b267
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions