diff options
author | Daichi Hirono <hirono@google.com> | 2016-02-29 15:30:56 +0900 |
---|---|---|
committer | Daichi Hirono <hirono@google.com> | 2016-03-09 12:32:22 +0900 |
commit | 3bb37e7ff0a7b0a8086007633ad927fec59a6e94 (patch) | |
tree | e31baaa45fbe34e05efa1d4121381942104bdcba /tools/aapt2/java/JavaClassGenerator_test.cpp | |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions