* commit '2f7531fb7a5d0c764c222f5acae0b487578629ab': Add body sensors app op for custom sensors
This commit is contained in:
commit
07da55f933
@ -223,6 +223,10 @@ Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion)
|
||||
}
|
||||
if (halVersion > SENSORS_DEVICE_API_VERSION_1_0 && hwSensor->requiredPermission) {
|
||||
mRequiredPermission = hwSensor->requiredPermission;
|
||||
if (!strcmp(mRequiredPermission, SENSOR_PERMISSION_BODY_SENSORS)) {
|
||||
AppOpsManager appOps;
|
||||
mRequiredAppOp = appOps.permissionToOpCode(String16(SENSOR_PERMISSION_BODY_SENSORS));
|
||||
}
|
||||
}
|
||||
|
||||
if (halVersion >= SENSORS_DEVICE_API_VERSION_1_3) {
|
||||
|
Loading…
Reference in New Issue
Block a user