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

Commit dc2b7925 authored by Tianjie's avatar Tianjie Committed by Tianjie Xu
Browse files

Reset binder during unbinding

On some rare case, we may encounter a DeadObjectException on wrap()
when a new test app is installed. This happens because we reuse the
binder from the previous bindToService() call. Always reset the
binder to make sure this doesn't happen.

Bug: 172780686
Test: run storeRebootEscrowKey twice

Change-Id: I36150ef39f870e38a5f1b4bd814465d70f8dbf85
parent 073c6fa9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -120,6 +120,7 @@ public class ResumeOnRebootServiceProvider {
            if (mServiceConnection != null) {
                mContext.unbindService(mServiceConnection);
            }
            mBinder = null;
        }

        /** Bind to the service */