Revert "Revert "Remove a misleading "flush" function.""

This reverts commit 47da17740520f3d6ba952c65593f8660b89b8abf.

Reason for revert: Fixed the test broken by the original commit

Bug: 139192244
Bug: 140336855

Test: m -> flash -> boot
Test: atest CtsJvmtiAttachingHostTestCases

Change-Id: I4c67ad8709652c4710ef24564e0240f74f817f8c
5 files changed