gps: Reduce gps log in bugreport am: f9ac8dc5a6 am: 65c5d56dbc

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15898344

Change-Id: If7c313e19e62d818d22db57d3cfce4dc22016b2a
This commit is contained in:
Shinru Han 2021-09-27 07:48:02 +00:00 committed by Automerger Merge Worker
commit eed7afc0c3

View file

@ -195,7 +195,7 @@ void dumpGpsLogs(int fd, std::string destDir) {
const std::string gpsLogDir = GPS_LOG_DIRECTORY; const std::string gpsLogDir = GPS_LOG_DIRECTORY;
const std::string gpsTmpLogDir = gpsLogDir + "/.tmp"; const std::string gpsTmpLogDir = gpsLogDir + "/.tmp";
const std::string gpsDestDir = destDir + "/gps"; const std::string gpsDestDir = destDir + "/gps";
int maxFileNum = android::base::GetIntProperty(GPS_LOG_NUMBER_PROPERTY, 30); int maxFileNum = android::base::GetIntProperty(GPS_LOG_NUMBER_PROPERTY, 20);
RunCommandToFd(fd, "MKDIR GPS LOG", {"/vendor/bin/mkdir", "-p", gpsDestDir.c_str()}, RunCommandToFd(fd, "MKDIR GPS LOG", {"/vendor/bin/mkdir", "-p", gpsDestDir.c_str()},
CommandOptions::WithTimeout(2).Build()); CommandOptions::WithTimeout(2).Build());