platform_system_core/rootdir/init-debug.rc
Mark Salyzyn 7864e36751 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
2016-02-04 13:10:19 -08:00

8 lines
338 B
Text

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}