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

Skip to content
Commit a95214a4 authored by Ruslan Tkhakokhov's avatar Ruslan Tkhakokhov
Browse files

Dispose of TransportClient in BMS#beginRestoreSession

(This CL was already merged into sc-v2-dev but has to be manually
cherry-picked into master due to a conflict.)

Currently we create a new transport client in
UserBackupManagerService#beginRestoreSession but don't dispose of it
properly which leaves us bound to the transport service. The client can
eventually be garbage collected triggering the finalize() method which
will unbind the transport but there're no guarantees as to whne it will
happen.

Explicitly dispose of the transport client like it's done in other
places in the code.

Bug: 196377372
Test: 1. Manual:
           1.1. Run restore for any package via 'adb shell bmgr'
	   1.2. Check logcat for TransportClientManager to make sure the
	   transport client created in beginRestoreSession() has been
	   cleaned up.
Change-Id: I9304768330ab796fccf67b544766d87461d977d7
(cherry picked from commit 4428e22d)
parent c2dc611a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment