Move apply_from_sdcard to fuse_sdcard_install

Move the sdcard installation function and all helper functions to a
separate file, and drop the dependency on common.h.

In the future, we want to move these functions into the install class.

Bug: 127071893
Test: unit tests pass
Change-Id: I0b7f7cbf0b68918e638e13878ca28bfca367088a
This commit is contained in:
xunchang
2019-03-18 15:03:33 -07:00
parent 5e6832a24d
commit 3cc23d5eac
4 changed files with 193 additions and 184 deletions
-1
View File
@@ -35,7 +35,6 @@
#include "ui.h"
int apply_from_adb(bool* wipe_cache) {
modified_flash = true;
// Save the usb state to restore after the sideload operation.
std::string usb_state = android::base::GetProperty("sys.usb.state", "none");
// Clean up state and stop adbd.