platform_system_core/rootdir/init-debug.rc
Hridya Valsaraju 129d8743b9 Prevent debugfs unmount on debug builds with a persist property
In order to simplify developer/test flow, the persistent property
persist.dbg.keep_debugfs_mounted can be set to prevent debugfs from
being unmounted on boot.

Bug: 184381659
Test: build and boot
Change-Id: I714616b361e6c8fb59633ec0763f9bd55af7df0e
2021-04-16 13:59:15 -07:00

16 lines
659 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}
on early-init && property:ro.product.debugfs_restrictions.enabled=true
mount debugfs debugfs /sys/kernel/debug
chmod 0755 /sys/kernel/debug
on property:sys.boot_completed=1 && property:ro.product.debugfs_restrictions.enabled=true && \
property:persist.dbg.keep_debugfs_mounted=""
umount /sys/kernel/debug