47f876b74be0a2d6d417f5ff385f85d835a97fe9 |
|
17-Apr-2018 |
Jiyong Park <jiyong@google.com> |
Hide some headers from libbinder to vendors The headers that are related to system services are now hidden to vendors. Note that this does not break anything because vendors have already been disallowed to talk to system services via sepolicy. Their use of binder is strictly limited within themselves (via /dev/vndbinder). The hidden headers are now guarded with __ANDROID_VNDK__ and including them from vendors (or vendor variants of other VNDK libraries) will trigger a build-time error. Bug: 78113963 Test: m -j Test: devices boots to the UI Change-Id: I19be5ca024fc4081b7861d908d75758c1d956a83
/frameworks/native/libs/binder/include/binder/IAppOpsService.h
|
616554c051842f3700c65197f69b7653883e5794 |
|
26-Feb-2018 |
Svet Ganov <svetoslavganov@google.com> |
Use start/finish app ops in window manager - frameworks native Add infrastructure to app ops to specify how to treat mode_default (for now only for startOp) allowing the caller to decide of this mode should be treated as success - this is useful if the caller already performed the default permission checks which determined that the caller would perform the operation if the mode is default. This way there is a record in the app ops history that this op was performed. This is now used by the window manager service which starts/finishes ops when an alert window is shown/hidden. The window manager allows adding the window if the mode is default but the caller has the fallback permission. In this case the alert window would be shown and we want that noted in the op history. Now the window manager properly starts/finishes alert window op when an alert window is shown/hidden. This is required to allow SystemUI to badge notifications from apps showing alert windows or add a dedicated notification if the app has no notifications. Test: cts-tradefed run cts-dev -m CtsWindowManagerDeviceTestCases Added android.server.wm.AppOpAlertWindowAppOpsTest cts-tradefed run cts-dev -m CtsPermissionTestCases -t android.permission.cts.AppOpsTest bug:64085448 Change-Id: I59658522bb521bb1e08009de046f52fef6f88687
/frameworks/native/libs/binder/include/binder/IAppOpsService.h
|
5583be7f9c18a1da0a8ea050b35e87128a8bc872 |
|
25-Mar-2017 |
Vijay Venkatraman <vijaykv@google.com> |
Move include/binder to libs/binder/include Also moved include/private/binder to libs/binder/include/private/binder. This allows libbinder to be compiled without depending on global headers. Bug: 33241851 Test: Build, flash, and run sailfish. Test: Try building with BOARD_VNDK_VERSION := current Change-Id: I0a82b733353add589de26eb2db7af5a246e5c97f
/frameworks/native/libs/binder/include/binder/IAppOpsService.h
|