summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorAbhijeet Kaur <abkaur@google.com>2020-03-12 18:14:24 +0000
committerAbhijeet Kaur <abkaur@google.com>2020-03-20 15:54:44 +0000
commit29dc0896172262e29fa4b959f8252a155de3fe22 (patch)
treec5d1f9adf1c9c4aaf2eef9bf1ceafea87efcead2 /tools/aapt2/diff/Diff.cpp
parentbf770c6920f8c5650dc86561ab28158b23f6622c (diff)
Delay volume state changed broadcasts until the Storage Service processes it
In R, all file path access is proxied through the Media Provider database. This change ensures that the filesystem is indexed in the database before broadcasting volume state mounted. This is essential as we do not want apps to access the volume before the data is ready. Similarly, the Storage Service processes other volume state changes before broadcasting to other apps. Since we want to block volume state changed broadcasts until the volume is processed/scanned by the Storage Service, which may take time, so we handle volume state changed in a separate thread (so as to not block its callers like vold). Bug: 145194312 Test: builds Test: atest AdoptableHostTest Test: atest com.android.tests.fused.host.FuseDaemonHostTest Change-Id: I1677fdd5672cea531e98cda76d967af13e5fac9e
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions