commit | a5eefc7f1903512cabe9ae42c493685e4adbb4e4 | [log] [tgz] |
---|---|---|
author | jingfengsi <ot_jingfeng.si@mediatek.com> | Mon Dec 27 14:40:05 2021 +0800 |
committer | Houxiang Dai <houxiang.dai@mediatek.com> | Thu Jan 13 19:44:55 2022 +0800 |
tree | 8865b73c1f931ab7eb4e716175cd56bff0f86cb1 | |
parent | 202f9f80a1f16c2f0baa7ae2475d04b1e6ec4417 [diff] |
Handle MediaProvider#query exception There are cases where StorageManager has unmounted sdcard but MediaProvider tries to access its properties, resulting in an IllegalArgumentException. To fix this, catch the IllegalArgumentException and throw a FileNotFoundException instead. Test: mount/remove USB disk stress test pass Bug: 212231222 Change-Id: I9c7d2e795f964520635117951a141ad579c3b4df