From 17054c051a846743ecbfacec5986fe8b35152c9d Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Thu, 3 May 2018 22:41:23 -0700 Subject: otautil: Rename dir/sys/thermal utils. Test: mmma -j bootable/recovery Change-Id: I32ab98549e91f993364306e4a88dc654221b3869 --- updater/install.cpp | 2 +- updater/updater.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'updater') diff --git a/updater/install.cpp b/updater/install.cpp index 5623c3379..b41d48c48 100644 --- a/updater/install.cpp +++ b/updater/install.cpp @@ -58,7 +58,7 @@ #include "edify/expr.h" #include "otafault/ota_io.h" -#include "otautil/DirUtil.h" +#include "otautil/dirutil.h" #include "otautil/error_code.h" #include "otautil/mounts.h" #include "otautil/print_sha1.h" diff --git a/updater/updater.cpp b/updater/updater.cpp index bf7c36caf..40e3f1fc1 100644 --- a/updater/updater.cpp +++ b/updater/updater.cpp @@ -32,9 +32,9 @@ #include "edify/expr.h" #include "otafault/config.h" -#include "otautil/DirUtil.h" -#include "otautil/SysUtil.h" +#include "otautil/dirutil.h" #include "otautil/error_code.h" +#include "otautil/sysutil.h" #include "updater/blockimg.h" #include "updater/install.h" -- cgit v1.2.3 From 2c52639d01cb2ff9f0a805e0dda72d39a5487d88 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Thu, 3 May 2018 23:01:13 -0700 Subject: Move reboot() from common.h into otautil/sysutil.h. This breaks the dependency on common.h (which belongs to recovery/librecovery) from librecovery_ui. reboot() is now owned by libotautil, which is expected to be a leaf node to be depended on. With the change, recovery and updater also share the same reboot() code now. Test: mmma -j bootable/recovery Change-Id: I1cc5d702cfe49302048db33d31c9c87ddc97ac71 --- updater/install.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'updater') diff --git a/updater/install.cpp b/updater/install.cpp index b41d48c48..bd22467ab 100644 --- a/updater/install.cpp +++ b/updater/install.cpp @@ -48,7 +48,6 @@ #include #include #include -#include #include #include #include @@ -62,6 +61,7 @@ #include "otautil/error_code.h" #include "otautil/mounts.h" #include "otautil/print_sha1.h" +#include "otautil/sysutil.h" #include "updater/updater.h" // Send over the buffer to recovery though the command pipe. @@ -874,11 +874,7 @@ Value* RebootNowFn(const char* name, State* state, const std::vector