diff options
author | Ivan Chiang <chiangi@google.com> | 2020-11-10 10:44:05 +0800 |
---|---|---|
committer | Ivan Chiang <chiangi@google.com> | 2021-01-11 10:47:12 +0000 |
commit | 23ed52f9716134e5ea7fe9c90bedab29cf90876c (patch) | |
tree | 3f86dd186a73c6c763e9263af0f5cca37cfc811b /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | b26c104b457e8814f435a8ff3041cae54d6995b4 (diff) |
Fix renaming file and moving file issue in MTP
After the user renames/moves a file/directory, the database of
MediaProvider is not updated. It causes that the file can't be
opened via MediaProvider. Use scanFile to instead of MP.update
for the file/directory.
Handle the .nomedia case for create/copy/move/delete/rename.
Scan the parent directory to update the database.
Test: atest MtpTests
Test: atest --test-mapping packages/providers/MediaProvider
Test: manual. 1. Move/rename the file/directory.
2. Open the file in DocumentsUI
3. create/copy/move/delete/rename for .nomedia case
Bug: 169300366
Bug: 171538933
Bug: 172029805
Bug: 170798581
Change-Id: Ia37be7a027bfe502e3f7c96babe5a5bbed5f942c
Merged-In: Ia37be7a027bfe502e3f7c96babe5a5bbed5f942c
(cherry picked from commit 20079f10644e641bbb2c35c250e8a9e0b9f6c1b3)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions