diff options
author | Tianjie Xu <xunchang@google.com> | 2019-05-15 22:59:39 +0200 |
---|---|---|
committer | Tianjie Xu <xunchang@google.com> | 2019-07-24 20:36:03 +0200 |
commit | 164c60a4f3de934bab7035114546e9500cd8f232 (patch) | |
tree | 0311dd6f33655ae9b5f1aec1847405bcd54673fb /otautil/include | |
parent | Merge "Add command line parser for simulator" (diff) | |
download | android_bootable_recovery-164c60a4f3de934bab7035114546e9500cd8f232.tar android_bootable_recovery-164c60a4f3de934bab7035114546e9500cd8f232.tar.gz android_bootable_recovery-164c60a4f3de934bab7035114546e9500cd8f232.tar.bz2 android_bootable_recovery-164c60a4f3de934bab7035114546e9500cd8f232.tar.lz android_bootable_recovery-164c60a4f3de934bab7035114546e9500cd8f232.tar.xz android_bootable_recovery-164c60a4f3de934bab7035114546e9500cd8f232.tar.zst android_bootable_recovery-164c60a4f3de934bab7035114546e9500cd8f232.zip |
Diffstat (limited to 'otautil/include')
-rw-r--r-- | otautil/include/otautil/logging.h | 2 | ||||
-rw-r--r-- | otautil/include/otautil/roots.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/otautil/include/otautil/logging.h b/otautil/include/otautil/logging.h index 608349785..4462eca6e 100644 --- a/otautil/include/otautil/logging.h +++ b/otautil/include/otautil/logging.h @@ -53,7 +53,7 @@ void rotate_logs(const char* last_log_file, const char* last_kmsg_file); void check_and_fclose(FILE* fp, const std::string& name); void copy_log_file_to_pmsg(const std::string& source, const std::string& destination); -void copy_logs(bool save_current_log, bool has_cache, const selabel_handle* sehandle); +void copy_logs(bool save_current_log); void reset_tmplog_offset(); void save_kernel_log(const char* destination); diff --git a/otautil/include/otautil/roots.h b/otautil/include/otautil/roots.h index 2ab3f4549..92ee756f0 100644 --- a/otautil/include/otautil/roots.h +++ b/otautil/include/otautil/roots.h @@ -53,3 +53,6 @@ int format_volume(const std::string& volume, const std::string& directory); // Ensure that all and only the volumes that packages expect to find // mounted (/tmp and /cache) are mounted. Returns 0 on success. int setup_install_mounts(); + +// Returns true if there is /cache in the volumes. +bool HasCache(); |