* 开启系统日志服务
diff --git a/device/softwinner/a40-p1/a40_p1.mk b/device/softwinner/a40-p1/a40_p1.mk
index 4e4ca3b..256a339 100755
--- a/device/softwinner/a40-p1/a40_p1.mk
+++ b/device/softwinner/a40-p1/a40_p1.mk
@@ -216,3 +216,8 @@ ifeq ($(BOARD_USE_ADAS_MODULE),allwinner)
PRODUCT_PACKAGES += \
libAdas
endif
+
+# 打开系统日志,默认存在/data/misc/logd/下
+PRODUCT_PROPERTY_OVERRIDES += \
+ persist.logd.logpersistd=logcatd \
+ persist.logd.logpersistd.size=10
diff --git a/system/core/logcat/logcatd.rc b/system/core/logcat/logcatd.rc
index 4d5c80c..ea4915b 100644
--- a/system/core/logcat/logcatd.rc
+++ b/system/core/logcat/logcatd.rc
@@ -57,7 +57,7 @@ on property:logd.logpersistd.enable=false
stop logcatd
# logcatd service
-service logcatd /system/bin/logcat -b ${logd.logpersistd.buffer:-all} -v threadtime -v usec -v printable -D -f /data/misc/logd/logcat -r 1024 -n ${logd.logpersistd.size:-256}
+service logcatd /system/bin/logcat -b ${logd.logpersistd.buffer:-all} -v threadtime -v usec -v printable -D -f /data/misc/logd/logcat -r 2048 -n ${logd.logpersistd.size:-256}
class late_start
disabled
# logd for write to /data/misc/logd, log group for read from log daemon