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

Skip to content
Commit 2801c741 authored by Sarp Misoglu's avatar Sarp Misoglu
Browse files

Ask transport for a monitor during restore

The current API is designed so that the requester of the restore
operation passes in a BackupManagerMonitor. This functionality is
currently unused, so effectively we'll start asking for a monitor every
time.

Note that the requester and transport are not necessarily the same
entity in the current API definition. This means in the future the
requester can start passing in a monitor which would mean we stop asking
the transport for one. This is not ideal so while it's infeasible now,
in the future we can investigate formally coupling the transport and the
requester in the API.

Bug: 254815434, 254641961
Test: This class is not testable without a major refactor.
  atest CtsBackupHostTestCases
  Also manually by ensuring getBackupManagerMonitor() gets called when
  running 'adb shell bmgr restore` for KV and full backup packages.

Change-Id: I8892ed7e3aa04ca771c9628b44751a9fdef4aad2
parent 10460467
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