commit | 3bb37e7ff0a7b0a8086007633ad927fec59a6e94 | [log] [tgz] |
---|---|---|
author | Daichi Hirono <hirono@google.com> | Mon Feb 29 15:30:56 2016 +0900 |
committer | Daichi Hirono <hirono@google.com> | Wed Mar 09 12:32:22 2016 +0900 |
tree | e31baaa45fbe34e05efa1d4121381942104bdcba | |
parent | 713be06f7aa70288b4bf811d7cf9c0220c09e9c0 [diff] |
Cleans up the metadata in MtpDatabase at the first launch after booting. When rebooting a device, applicaitons lose temporary URI permissions so we don't need to keep document ID that are not granted persistent URI permissions. 1. Check Settings.Global.BOOT_COUNT to find out if it's first time to launch MtpDocumentsProvider since booting. 2. If so, invokes clean up method of MtpDatabase. BUG=26212981 Change-Id: Ic9a8ca7e7a9cac1ed91fdfb01e9dce14ce819243