mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
persist all logs to disk on userdebug and eng builds
Having long traces really helps to debug nasty power bugs. Bug: 114766334 Change-Id: I9a5cffc039649d59afdb00480746d56d7b849b3f Signed-off-by: Thierry Strudel <tstrudel@google.com> Signed-off-by: Robin Peng <robinpeng@google.com>
This commit is contained in:
10
device.mk
10
device.mk
@@ -637,10 +637,14 @@ PRODUCT_COPY_FILES += \
|
||||
PRODUCT_PACKAGES += \
|
||||
charger_res_images
|
||||
|
||||
# b/36703476
|
||||
# Set default log size on userdebug/eng build to 1M
|
||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||
PRODUCT_PROPERTY_OVERRIDES += ro.logd.size=1M
|
||||
# b/36703476: Set default log size to 1M
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.logd.size=1M
|
||||
# b/114766334: persist all logs by default rotating on 30 files of 1MiB
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
logd.logpersistd=logcatd \
|
||||
logd.logpersistd.size=30
|
||||
endif
|
||||
|
||||
# Dumpstate HAL
|
||||
|
||||
Reference in New Issue
Block a user