Unverified Commit 9db2d956 authored by Retypolkg's avatar Retypolkg Committed by pjgowtham
Browse files

nicky: sensors: Replace proprietary sensor type with android.sensor.tp_proximity

parent 290b5199
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -480,6 +480,10 @@ void HalProxy::initializeSensorList() {
                    ALOGV("Loaded sensor: %s", sensor.name.c_str());
                    sensor.sensorHandle = setSubHalIndex(sensor.sensorHandle, subHalIndex);
                    setDirectChannelFlags(&sensor, mSubHalList[subHalIndex]);
                    if (sensor.typeAsString == "android.sensor.tp_proximity") {
                        sensor.type = SensorType::PROXIMITY;
                        sensor.typeAsString = "";
                    }
                    mSensors[sensor.sensorHandle] = sensor;
                }
            }
+1 −1
Original line number Diff line number Diff line
service vendor.sensors-hal-2-0-multihal /vendor/bin/hw/android.hardware.sensors@2.0-service.multihal
    class hal
    user system
    group system wakelock context_hub
    group system wakelock context_hub input
    writepid /dev/cpuset/system-background/tasks
    capabilities BLOCK_SUSPEND
    rlimit rtprio 10 10