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

Commit 5920e08d authored by Shen Lin's avatar Shen Lin
Browse files

Fix system reboot in systm_server caused by SensorPrivacyService

We should unregister all listeners from sensor privacy state change
 notifications when binder died.

Test: atest SensorPrivacyServiceMockingTest , Manual
Bug: 288750681
Change-Id: Ibfab9c96412e9ed09d0105eb20b1cb03105b6d44
parent 8fadd7d0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1405,6 +1405,7 @@ public final class SensorPrivacyService extends SystemService {
        @Override
        public void binderDied() {
            mSensorPrivacyServiceImpl.removeSensorPrivacyListener(mListener);
            mSensorPrivacyServiceImpl.removeToggleSensorPrivacyListener(mListener);
        }

        public void destroy() {