From f90d9a102f8669560b19340536596018c63ce1b2 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Fri, 10 May 2019 10:40:59 -0700 Subject: roots: Remove get_system_root and logical_partitions_mapped. Test: TreeHugger Test: Boot into recovery on blueline. Choose "Mount system partition". Change-Id: Iac475d18ce2415de09dc0bf009ad4cf0383ffede --- fsck_unshare_blocks.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fsck_unshare_blocks.cpp') diff --git a/fsck_unshare_blocks.cpp b/fsck_unshare_blocks.cpp index 0f8ffface..9dc0fd8ec 100644 --- a/fsck_unshare_blocks.cpp +++ b/fsck_unshare_blocks.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #include "otautil/roots.h" @@ -119,7 +120,7 @@ bool do_fsck_unshare_blocks() { std::vector partitions = { "/odm", "/oem", "/product", "/vendor" }; // Temporarily mount system so we can copy e2fsck_static. - std::string system_root = get_system_root(); + auto system_root = android::fs_mgr::GetSystemRoot(); bool mounted = ensure_path_mounted_at(system_root, "/mnt/system") != -1; partitions.push_back(system_root); -- cgit v1.2.3