Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7864e367 authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

init-debug.rc: add runtime mmc max speed property actors

persist.mmc.max_read_speed  - KB/s speed cap
persist.mmc.max_write_speed - KB/s speed cap
persist.mmc.cache_size      - MB of high-speed on-device write cache

device default directly to associated /sys/block/mmcblk0/ attributes,
not delivered on "user" builds.

Bug: 26976972
Change-Id: Ic82b9614489b6406ce830d127c85affc9095e256
parent 5b89b49f
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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)),)

rootdir/init-debug.rc

0 → 100644
+8 −0
Original line number Diff line number Diff line
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}