summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2018-06-14 16:04:00 -0600
committerJeff Sharkey <jsharkey@android.com>2018-06-20 14:17:51 -0600
commit494500d83a3cf0cd89ac00b4892deeba6f4f295c (patch)
treedc437ad140dbf693cabed9c86cc201b13c116a35 /tools/aapt2/java/JavaClassGenerator.cpp
parentfcfd26b689fd5f2793594b4bb20dd3876eb49ab4 (diff)
Introduce RedactingFileDescriptor.
Files on disk can sometimes contain content that should be redacted based on the permissions of the remote caller. (For example, EXIF data containing location information shouldn't be visible to apps that haven't been granted the location permission.) This class provides an easy way to "redact" ranges within an underlying file, without the overhead of making a duplicate copy of the file, or the limitations of returning a non-seekable FD. Bug: 110228267 Test: atest android.os.RedactingFileDescriptorTest Change-Id: I0b3b9f642573f6165e152e7568cdaf55f0af7134
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions