History log of /frameworks/native/libs/binder/AppOpsManager.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5ceb6644aa1031f92e445b715c08d50954a4bf4b 26-Feb-2016 Svet Ganov <svetoslavganov@google.com> Merge "Refresh the native app ops manager\'s token if needed." into nyc-dev
am: 78faa5d037

* commit '78faa5d0374a1a9674498f358e1cbd70a6f57961':
Refresh the native app ops manager's token if needed.
21696381afb69703bef709f151b6a1885582b5ca 26-Feb-2016 Svet Ganov <svetoslavganov@google.com> 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
/frameworks/native/libs/binder/AppOpsManager.cpp
5975c00c4a3b9cca08e6e960826d4bdec93c2dbf 13-Feb-2016 Christopher Wiley <wiley@google.com> Replace AppOpsManager locking with std::lock_guard

Change-Id: Ice4c101659837cea594194cfb335f9f3f6837f38
/frameworks/native/libs/binder/AppOpsManager.cpp
8ed4270fea554ced8898be205727279db1c5c677 05-Feb-2016 Christopher Wiley <wiley@google.com> Don't rely on AppOpsManager in systems without applications

Brillo has no applications, and doesn't run AppOpsManager. Instead,
services are granted statically configured SELinux permissions at
build time. Rely on that configuration rather than Android's
dynamically configurable permission model.

Bug: 26936651
Test: Test code on Brillo system is able to connect to the camera.

Change-Id: I84b72a762c2f534c2e1cc6f99ef2003388fb1265
/frameworks/native/libs/binder/AppOpsManager.cpp
6dd4552614e0dcddeefde322185fe118f175fa47 05-Feb-2016 Christopher Wiley <wiley@google.com> Fix race in AppOpsManager client library

If the service stays down for more than 10 seconds, client threads
will time out attempting to obtain a reference, and never release
the mutex. This causes deadlock on the next attempt to speak
with the AppOpsManager.

Test: System without AppOpsManager service no longer hangs in camera
code.

Change-Id: I5a8ac2f0f35345f72c3d2a45b9d1fc5a78d28a51
/frameworks/native/libs/binder/AppOpsManager.cpp
b412f6e203b38f8047f760261a5e3dc6d0722f08 30-Apr-2015 Svetoslav <svetoslavganov@google.com> Add body sensors app op - framework native

Change-Id: I727a2bb1e28ae9158f2df9c74dd0aee977dfd47f
/frameworks/native/libs/binder/AppOpsManager.cpp
2ea926bda2fa30f3ba8d0ed2d2395a8ada952e6e 14-Nov-2014 Marco Nelissen <marcone@google.com> Replace IInterface::asBinder() with a static

so we can do NULL checks again, and update calls to IInterface::asBinder()
to use the new static version.

Change-Id: Ia7b10eb38ca55b72278bfd33d3bf647f338b4e6a
/frameworks/native/libs/binder/AppOpsManager.cpp
20d03805941c75a4489ec2e7ce5a3c021bde09f0 23-Jul-2013 Zhijun He <zhijunhe@google.com> Fix AppOsManager missing mutex unlock.

Need unlock the mutex after finish the getToken operation.

Change-Id: Icd83b383913d06e4d60976857aa314c3008ebea1
/frameworks/native/libs/binder/AppOpsManager.cpp
913b63d235a982174b66acad95ca2f87ac8a1982 18-Jul-2013 Dianne Hackborn <hackbod@google.com> Follow framework change to track started ops by proc.

Change-Id: Ibbce3bf6556f45751c74bab045b46377e56bff9b
/frameworks/native/libs/binder/AppOpsManager.cpp
e88a85e0d0a25c943e974114557770ba10b81847 19-Feb-2013 Eino-Ville Talvala <etalvala@google.com> Fixes to native app ops services

Bug: 8181262
Change-Id: I3d3f20453f6c6f2756c988363c5b5453ef309cb6
/frameworks/native/libs/binder/AppOpsManager.cpp
5da5ca520cca085528588f6067acb1c437001ef2 13-Feb-2013 Dianne Hackborn <hackbod@google.com> App ops: new native access API.

This is to help implementation of bug #8181262 and maybe
bug #8181261

Note the current code has not yet been tested; it is only
known to compile at this point.

Change-Id: I489674c96d0d3fc0ddacc92611931a19a9ee5230
/frameworks/native/libs/binder/AppOpsManager.cpp