summaryrefslogtreecommitdiff
path: root/products/atv_logpersist.mk
diff options
context:
space:
mode:
Diffstat (limited to 'products/atv_logpersist.mk')
-rw-r--r--products/atv_logpersist.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/products/atv_logpersist.mk b/products/atv_logpersist.mk
new file mode 100644
index 0000000..7c0f814
--- /dev/null
+++ b/products/atv_logpersist.mk
@@ -0,0 +1,9 @@
+# Optional configuration that can be used to enable persistent logcat on -eng and -userdebug builds
+# See go/agw/platform/system/logging/+/refs/heads/master/logd/README.property for available options
+
+ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
+PRODUCT_PRODUCT_PROPERTIES +=
+ logd.logpersistd=logcatd \
+ logd.logpersistd.size=30 \
+ logd.logpersistd.rotate_kbytes=2048
+endif