summaryrefslogtreecommitdiffstats
path: root/otautil/include
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-04-13 22:33:21 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-04-13 22:33:21 +0200
commit8982db6ae1913e7e1866986605a080699be6980b (patch)
tree68bd13f062360a4a868543480e37c123866c785b /otautil/include
parentMerge "install: mkfs.f2fs: specify sector size for target image size" (diff)
parentMerge "Remove the old log files if cache space is insufficient for OTA" (diff)
downloadandroid_bootable_recovery-8982db6ae1913e7e1866986605a080699be6980b.tar
android_bootable_recovery-8982db6ae1913e7e1866986605a080699be6980b.tar.gz
android_bootable_recovery-8982db6ae1913e7e1866986605a080699be6980b.tar.bz2
android_bootable_recovery-8982db6ae1913e7e1866986605a080699be6980b.tar.lz
android_bootable_recovery-8982db6ae1913e7e1866986605a080699be6980b.tar.xz
android_bootable_recovery-8982db6ae1913e7e1866986605a080699be6980b.tar.zst
android_bootable_recovery-8982db6ae1913e7e1866986605a080699be6980b.zip
Diffstat (limited to 'otautil/include')
-rw-r--r--otautil/include/otautil/cache_location.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/otautil/include/otautil/cache_location.h b/otautil/include/otautil/cache_location.h
index f2f663816..005395e5f 100644
--- a/otautil/include/otautil/cache_location.h
+++ b/otautil/include/otautil/cache_location.h
@@ -49,6 +49,13 @@ class CacheLocation {
stash_directory_base_ = base;
}
+ std::string cache_log_directory() const {
+ return cache_log_directory_;
+ }
+ void set_cache_log_directory(const std::string& log_dir) {
+ cache_log_directory_ = log_dir;
+ }
+
private:
CacheLocation();
DISALLOW_COPY_AND_ASSIGN(CacheLocation);
@@ -64,6 +71,9 @@ class CacheLocation {
// The base directory to write stashes during update.
std::string stash_directory_base_;
+
+ // The location of last_log & last_kmsg.
+ std::string cache_log_directory_;
};
#endif // _OTAUTIL_OTAUTIL_CACHE_LOCATION_H_