Skip to content

Commit

Permalink
Adding system properties for modem logging
Browse files Browse the repository at this point in the history
Bug: 37115787
Test: Manually trigger bugreport
Change-Id: I611083c0c23fab4887beaf0aed0139aa0b5d5e41
  • Loading branch information
Jie Song committed May 10, 2017
1 parent 64db4b6 commit 4905809
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,11 @@ PRODUCT_COPY_FILES += \
AB_OTA_PARTITIONS += \
vbmeta

# Enable modem logging
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.modem.diag.mdlog=true \
ro.radio.log_loc="/data/vendor/modem_dump" \
ro.radio.log_prefix="modem_log_"
endif

2 changes: 2 additions & 0 deletions init.logging.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
on post-fs-data
mkdir /data/vendor/modem_dump 0777 system system

0 comments on commit 4905809

Please sign in to comment.