Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 587ef9b5 authored by Chris Kuiper's avatar Chris Kuiper
Browse files

sensorservice: Track Proximity state change when app goes idle.

This tracks the Proximity state change when an app subscribed to the
Proximity sensor goes idle and its connection is paused.

Bug: b/202328704
Tests: See b/202328704#comment9 for tests done.
Change-Id: Ib7a08010d903406b67940de56a49e9efb200ad68
parent df11ff29
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -333,6 +333,7 @@ void SensorService::onUidStateChanged(uid_t uid, UidState state) {
            conn->onSensorAccessChanged(hasAccess);
        }
    }
    checkAndReportProxStateChangeLocked();
}

bool SensorService::hasSensorAccess(uid_t uid, const String16& opPackageName) {