diff options
author | 2023-10-07 08:16:35 +0000 | |
---|---|---|
committer | 2023-10-09 16:33:49 +0000 | |
commit | 843f386c68b66baa660cd7b28887cacadef74c43 (patch) | |
tree | 7eb36565094bf3913ba0e3aa46d1f5d6f36b77c3 /api/api.go | |
parent | 7039b4f75837c949102caf9f54b9ca6dd1888458 (diff) |
[Bugfix]use walkFileTree to calucate apk size
When using foreach on the stream of Files.walk, the FileTreeIterator may generate an UncheckedIOException, which can cause a system crash.
Bug:292486804
Test:
1.statsd_testdrive 524
2.adb install any apk
3.observe apks_size_bytes
Merged-In: I18852ced54ceeb63785033de3f1ab22a35ba1fc1
Change-Id: I0e223fc61184a51a4f5a71df54ba50137376df8e
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions