diff options
author | Mark Salyzyn <salyzyn@google.com> | 2016-02-05 15:21:35 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-02-05 15:21:35 +0000 |
commit | 20a6f0ff3bf21e2bc82ebfe06357f6225c991ee9 (patch) | |
tree | e7b85458b6549474a05134533c4e9d6fa4097bb6 | |
parent | 14c06e0769817d81f18fcdc41132747ffc158745 (diff) | |
parent | 7864e3675161ace4d6e54f32a822a90d2e1960f0 (diff) |
Merge "init-debug.rc: add runtime mmc max speed property actors"
-rw-r--r-- | rootdir/Android.mk | 12 | ||||
-rw-r--r-- | rootdir/init-debug.rc | 8 |
2 files changed, 20 insertions, 0 deletions
diff --git a/rootdir/Android.mk b/rootdir/Android.mk index 895a25d64..d90f988cc 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -12,6 +12,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)),) include $(CLEAR_VARS) diff --git a/rootdir/init-debug.rc b/rootdir/init-debug.rc new file mode 100644 index 000000000..435d4cb25 --- /dev/null +++ b/rootdir/init-debug.rc @@ -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} |