commit | ec5130d3f80fc618778ff03d33236c8c0eafdb19 | [log] [tgz] |
---|---|---|
author | Wen Zhang <zhangwen8@xiaomi.corp-partner.google.com> | Mon Jul 24 21:23:02 2023 +0800 |
committer | Songchun Fan <schfan@google.com> | Mon Aug 21 07:22:27 2023 -0700 |
tree | 8b836897c29a83083d710f076526f3dd5ae6cfe3 | |
parent | 9f6b946735e41ff4b818e7cc380c26bded45bcad [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: manual 1.statsd_testdrive 524 2.adb install any apk 3.observe apks_size_bytes Change-Id: I0e223fc61184a51a4f5a71df54ba50137376df8e Change-Id: I18852ced54ceeb63785033de3f1ab22a35ba1fc1