diff options
| author | 2021-07-14 13:58:55 +0900 | |
|---|---|---|
| committer | 2021-07-14 13:58:55 +0900 | |
| commit | 1257f1505cb2ac75b6959e16d195c7c4bac8ee06 (patch) | |
| tree | bfed0b30d2f102cb7b7630302c66d981eab57a53 /libs/androidfw/AssetsProvider.cpp | |
| parent | ef140360c31ce5ae6eb4217f057e9a3a110aa2eb (diff) | |
ZipUtils: use FileChannel#size
RandomAccessFile#length returns 0 for block devices while
FileChannel#size returns the correct size. ZipUtils should work with
block-device zip files when Android is running as a guest OS and
APK/APEX files are passed via block devices.
Bug: 193592496
Bug: 192366904
Test: FrameworksServicesTests
Change-Id: I6472e2a9051b92a5a778b4990b8e681492985d1a
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions