flo: Disable diag device in normal mode.
Remove the diag device when the device is in normal mode. Bug: 18203257 Change-Id: I878ac648c49ef0940d55d5b6695bac24742847c8
This commit is contained in:
parent
61a7d131ad
commit
9bc91f7460
|
@ -120,6 +120,15 @@ PRODUCT_COPY_FILES += \
|
|||
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
|
||||
frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml
|
||||
|
||||
# Modem debugger
|
||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/asus/flo/init.flo.diag.rc.userdebug:root/init.flo.diag.rc
|
||||
else
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/asus/flo/init.flo.diag.rc.user:root/init.flo.diag.rc
|
||||
endif
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.opengles.version=196608
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
# This file gets copied as /init.flo.diag.rc
|
||||
|
||||
on post-fs-data
|
||||
rm /dev/diag
|
|
@ -0,0 +1,6 @@
|
|||
# This file gets copied as /init.flo.diag.rc
|
||||
|
||||
on post-fs-data
|
||||
# Modem logging collection
|
||||
mkdir /data/diag_logs 0777 system system
|
||||
chmod 666 /dev/diag
|
|
@ -15,6 +15,7 @@
|
|||
#
|
||||
|
||||
import init.flo.usb.rc
|
||||
import init.flo.diag.rc
|
||||
|
||||
on early-init
|
||||
mount debugfs debugfs /sys/kernel/debug
|
||||
|
|
Loading…
Reference in New Issue