summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Svet Ganov <svetoslavganov@google.com> 2016-02-26 12:13:04 -0800
committer Svet Ganov <svetoslavganov@google.com> 2016-02-26 12:23:34 -0800
commit21696381afb69703bef709f151b6a1885582b5ca (patch)
tree2be614cc9482f27f3342c19b49fda6d6869318eb /libs/gui/ConsumerBase.cpp
parenta4c2c3ba1ed2d741edfa652bf8f2bab229389e8e (diff)
Refresh the native app ops manager's token if needed.
The app ops manager serivce keeps track of started app ops by a process by stashing them in a binder object that is passed to the remote process to hold on to. Hence, the data is in the system process and is referenced by the client process it tracks to prevent garbage collaction and limit risk of resource leaks. It is possible that the client process is longer lived than the system seriver, e.g. camera server starts an app op, the system server dies for some reason, the camera server's app ops manager ends up with a stale token. The solution is to check the validity of the token and refresh it if needed. bug:27344593 Change-Id: I0abb39e777b7b66b1b5cefede7e7b41c4404c4b1
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions