Skip to content

Commit

Permalink
Add QXDMLogger app
Browse files Browse the repository at this point in the history
APK added only for userdebug and eng builds.

Bug: 27794851

Change-Id: I0e00d1238b0afc36dfa443f11e9caf6c3e295c74
Signed-off-by: Ed Tam <etam@google.com>
  • Loading branch information
Ed Tam committed Mar 29, 2016
1 parent 732404f commit a5030fe
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions device-common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,18 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml

# Modem debugger
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES += \
QXDMLogger

PRODUCT_COPY_FILES += \
device/google/marlin/init.common.diag.rc.userdebug:root/init.common.diag.rc
else
PRODUCT_COPY_FILES += \
device/google/marlin/init.common.diag.rc.user:root/init.common.diag.rc
endif

$(call inherit-product-if-exists, hardware/qcom/msm8996/msm8996.mk)
$(call inherit-product-if-exists, vendor/qcom/gpu/msm8996/msm8996-gpu-vendor.mk)

Expand Down
4 changes: 4 additions & 0 deletions init.common.diag.rc.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This file gets copied as /init.common.diag.rc

on property:ro.boot.mode=normal
rm /dev/diag
8 changes: 8 additions & 0 deletions init.common.diag.rc.userdebug
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file gets copied as /init.common.diag.rc

on post-fs-data
# Modem logging collection
mkdir /data/diag_logs 0777 system system

on boot
chmod 666 /dev/diag
1 change: 1 addition & 0 deletions init.common.rc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

import init.${ro.hardware}.nanohub.rc
import init.qcom.rc
import init.angler.diag.rc

on early-init
mkdir /firmware 0771 system system
Expand Down

0 comments on commit a5030fe

Please sign in to comment.