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

Commit c4f8397d authored by Soonil Nagarkar's avatar Soonil Nagarkar
Browse files

Clear binder identity before releasing wakelock

Bug: 206340085
Test: manual
Change-Id: If80a10fcb376f43c660b897727999e6febdaace3
parent 7f0df9d8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2846,10 +2846,13 @@ public class LocationProviderManager extends

        @Override
        public void sendResult(Bundle data) {
            final long identity = Binder.clearCallingIdentity();
            try {
                mWakeLock.release();
            } catch (RuntimeException e) {
                Log.e(TAG, "wakelock over-released by " + mIdentity, e);
            } finally {
                Binder.restoreCallingIdentity(identity);
            }
        }
    }