Merge "init-debug.rc: add runtime mmc max speed property actors" am: 20a6f0ff3b

am: c883cdec82

* commit 'c883cdec825e021007672d3ce9b199589ed2cba6':
  init-debug.rc: add runtime mmc max speed property actors
This commit is contained in:
Mark Salyzyn 2016-02-05 17:38:44 +00:00 committed by android-build-merger
commit a2eba56f98
2 changed files with 20 additions and 0 deletions

View file

@ -11,6 +11,18 @@ LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_PREBUILT)
#######################################
# init-debug.rc
include $(CLEAR_VARS)
LOCAL_MODULE := init-debug.rc
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_TAGS := debug
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/init
include $(BUILD_PREBUILT)
#######################################
# asan.options
ifneq ($(filter address,$(SANITIZE_TARGET)),)

8
rootdir/init-debug.rc Normal file
View file

@ -0,0 +1,8 @@
on property:persist.mmc.max_read_speed=*
write /sys/block/mmcblk0/max_read_speed ${persist.mmc.max_read_speed}
on property:persist.mmc.max_write_speed=*
write /sys/block/mmcblk0/max_write_speed ${persist.mmc.max_write_speed}
on property:persist.mmc.cache_size=*
write /sys/block/mmcblk0/cache_size ${persist.mmc.cache_size}