summaryrefslogtreecommitdiff
path: root/libs/permission/AppOpsManager.cpp
AgeCommit message (Collapse)Author
2023-11-09Revert "[DeviceAware] Use AttributionSourceState in native AppOp..." Karishma Vakil
Revert submission 24499968-appops-deviceid Reason for revert: Causing perf regression b/308786093 Reverted changes: /q/submissionid:24499968-appops-deviceid Change-Id: I7e0da4a493b85e1296b41db09e114dd0c8b9e244
2023-11-01[DeviceAware] Use AttributionSourceState in native AppOpsService checkOp, ↵ Karishma Vakil
noteOp, startOp, finishOp methods This allows us to reduce the number of parameters being passed around and also enables easy addition of new parameters such as device id. Note that this change is unflagged and is meant to be a pure refactor. This is preparatory CL and no new methods are being added to AppOpsManager yet, but will be needed to allow clients to pass in device id. Bug: 299160174 Test: atest CtsAppOpsTestCases CtsAppOps2TestCases Change-Id: Ic2fdb088b3a3913a510c8c73f24570147267efd0
2023-04-04Add AppOps overload to be able to watch foreground changes. Evan Severson
We have never offered the native API to register mode watchers that are invoked for foregroundness changes when the raw mode is MODE_FOREGROUND. Test: Add logging to verify invocation Bug: 247768581 Change-Id: I89af46de557fbfc31d69613367a4e26a5222430a
2021-04-19libbinder->libpermission: appops Steven Moreland
Since libbinder is used in many places, lightening it up (vtables in these classes contribute to private dirty memory). Bug: 183654927 Test: boot Change-Id: I79aa34c023074862c6c568be1f8e3503cd4a24eb