summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authoryawanng <yawanng@google.com>2021-02-08 22:38:28 +0000
committerPatrick Baumann <patb@google.com>2021-02-18 18:19:44 +0000
commit9b694ef4d45ca54bcc4b7de6940f5608047a1a16 (patch)
treeafe77c1e17453208192cf7c20a85961c84440bcd /tools/aapt2/java/JavaClassGenerator.cpp
parent3516e98daa362286cd7e1daec7ef1e207e34c5b4 (diff)
Adds caller check to getAllPackages()
This change enforces that only system, root or shell may call getAllPackages(), a hidden API that shares all package names regardless of user, instant app or package visibility rules. The only exception is the uid of iorapd. iorapd needs the package info to prefetch the right data. Bug: 179618216 Bug: 174661955 Test: run iorapd and check it works well. Change-Id: I77460ae19a4d41151577646441f11e2eddbb741a (cherry picked from commit 8124efd57b50056d22e1b63c32c366ebdf049598)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions