diff options
author | Tao Bao <tbao@google.com> | 2019-05-10 10:40:59 -0700 |
---|---|---|
committer | Tao Bao <tbao@google.com> | 2019-05-10 10:42:56 -0700 |
commit | f90d9a102f8669560b19340536596018c63ce1b2 (patch) | |
tree | a95adea292d94af550e1a1c8c0ed1c036d63f340 /recovery_main.cpp | |
parent | 343a7dcdd237009b332fcbb97a6349337ec50058 (diff) |
roots: Remove get_system_root and logical_partitions_mapped.
Test: TreeHugger
Test: Boot into recovery on blueline. Choose "Mount system partition".
Change-Id: Iac475d18ce2415de09dc0bf009ad4cf0383ffede
Diffstat (limited to 'recovery_main.cpp')
-rw-r--r-- | recovery_main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/recovery_main.cpp b/recovery_main.cpp index b999505f..aba9c5d7 100644 --- a/recovery_main.cpp +++ b/recovery_main.cpp @@ -42,6 +42,7 @@ #include <android-base/unique_fd.h> #include <bootloader_message/bootloader_message.h> #include <cutils/sockets.h> +#include <fs_mgr/roots.h> #include <private/android_logger.h> /* private pmsg functions */ #include <selinux/android.h> #include <selinux/label.h> @@ -505,7 +506,7 @@ int main(int argc, char** argv) { } case Device::ENTER_FASTBOOT: - if (logical_partitions_mapped()) { + if (android::fs_mgr::LogicalPartitionsMapped()) { ui->Print("Partitions may be mounted - rebooting to enter fastboot."); Reboot("fastboot"); } else { |