summaryrefslogtreecommitdiff
path: root/tools/bit/print.cpp
diff options
context:
space:
mode:
author Jooyung Han <jooyung@google.com> 2021-07-30 13:49:14 +0900
committer Jooyung Han <jooyung@google.com> 2021-08-03 01:26:54 +0900
commitc65e303681374fb73edf171c89fc670c9b6cd9cd (patch)
tree3325ae41636698117dae0b9d93d3d14a710d6aa8 /tools/bit/print.cpp
parent67f0eebdfaeef24125e0d7ae9005ab63a4369be2 (diff)
APK signature verification: use FileChannel#size
RandomAccessFile#length returns 0 for block devices while FileChannel#size returns the correct size. APK signature verification utils should work with block-device zip files when Android is running as a guest OS and APK/APEX files are passed via block devices. This is a follow-up of 1257f1505cb2ac75b6959e16d195c7c4bac8ee06. Bug: 193592496 Bug: 192366904 Test: FrameworksServicesTests Merged-In: I3015fc30574c36c18c0d0c9ae7453d33a1349927 Change-Id: I3015fc30574c36c18c0d0c9ae7453d33a1349927 (cherry picked from commit 310edbe3c7202581bf10b6a621a287b297d73261)
Diffstat (limited to 'tools/bit/print.cpp')
0 files changed, 0 insertions, 0 deletions