From 682c34bbc32f3a9f007dd949282651ed35d4f6e3 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Tue, 7 Apr 2015 17:16:35 -0700 Subject: Rotate logs only when there are actual operations Currently it rotates the log files every time it boots into the recovery mode. We lose useful logs after ten times. This CL changes the rotation condition so that it will rotate only if it performs some actual operations that modify the flash (installs, wipes, sideloads and etc). Bug: 19695622 Change-Id: Ie708ad955ef31aa500b6590c65faa72391705940 --- adb_install.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'adb_install.cpp') diff --git a/adb_install.cpp b/adb_install.cpp index 6d6dbb1..ed15938 100644 --- a/adb_install.cpp +++ b/adb_install.cpp @@ -74,6 +74,8 @@ maybe_restart_adbd() { int apply_from_adb(RecoveryUI* ui_, bool* wipe_cache, const char* install_file) { + modified_flash = true; + ui = ui_; stop_adbd(); -- cgit v1.1