summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/24/changes
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2016-05-10 18:55:47 -0700
committerSvet Ganov <svetoslavganov@google.com>2016-05-13 15:14:14 -0700
commit04df738bcb6584dd82b731a67f4cf8d6925b061e (patch)
tree32a7d43de8d0b735dd35693a36e625265c2ebb23 /docs/html/sdk/api_diff/24/changes
parentba83e90e1825f3e40a16370babc83b8ac0645cf9 (diff)
Make settings cahches generation mechanism robust.
Settings is using a MemoryIntArray to communicate the settings table version enabling apps to have up-to-date local caches. However, ashmem allows an arbitrary process with a handle to the fd (even in read only mode) to unpin the memory which can then be garbage collected. Here we make this mechanism fault tolerant against bad apps unpinning the ashmem region. First, we no longer unpin the ashmem on the client side and if the ashmem region is purged and cannot be pinned we recreate it and hook up again with the local app caches. The change also adds a test that clients can only read while owner can read/write. bug:28764789 Change-Id: I1ef79b4b21e976124b268c9126a55d614157059b
Diffstat (limited to 'docs/html/sdk/api_diff/24/changes')
0 files changed, 0 insertions, 0 deletions