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:
Ed Tam 2014-10-31 14:02:49 -07:00 committed by The Android Automerger
parent 61a7d131ad
commit 9bc91f7460
4 changed files with 20 additions and 0 deletions

View File

@ -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

4
init.flo.diag.rc.user Normal file
View File

@ -0,0 +1,4 @@
# This file gets copied as /init.flo.diag.rc
on post-fs-data
rm /dev/diag

View File

@ -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

View File

@ -15,6 +15,7 @@
#
import init.flo.usb.rc
import init.flo.diag.rc
on early-init
mount debugfs debugfs /sys/kernel/debug