commit | dde18a68c57d4dda9a458fb86030546cb5e015a8 | [log] [tgz] |
---|---|---|
author | Zim <zezeozue@google.com> | Thu Sep 10 10:29:47 2020 +0100 |
committer | Zimuzo Ezeozue <zezeozue@google.com> | Thu Sep 10 10:55:27 2020 +0000 |
tree | 500b2297d22328ef8919f3dec6a2834f66c2658b | |
parent | fab3d57a47aacdf8f48f7b03c7efa667e5acccb0 [diff] |
Handle StorageManager#getStorageVolume exception There are cases where StorageManager has unmounted sdcard but MediaProvider tries to access its properties, resulting in an IllegalStateException To fix this, catch the IllegalStateException and throw a FileNotFoundException instead. IOException is already handled by other parts of MediaProvider. Test: Manual Bug: 160207651 Change-Id: I2ddb3eba1e9399178090ebf84901af1ae60fa5e3