Move more operations to DeviceState.

They will be reused in the tests to be added later.

This change also makes the tests cleaner and more robust.

Bug: 272245228
Test: atest odsign_e2e_tests_full:OdrefreshHostTest
Change-Id: I6327b00cb3b175fa30c10707cf55d85a0c7fce28
2 files changed