init: Resolve kernel trace_marker permissions on post-fs

* The permissions were not set to 222 instead of 220,
    thus introducing regular logs from libcutils:
    "cutils-trace: Error opening trace file: Permission denied (13)"

 * Refers to frameworks/native/cmds/atrace/atrace.rc

Change-Id: I236ea25d2f2068f9f86a43492807f5f05e92da96
This commit is contained in:
Adrian DC 2018-08-15 15:29:55 +02:00 committed by Francescodario Cuzzocrea
parent e0ecace31f
commit 94ac4fda28

View file

@ -78,6 +78,10 @@ on fs
write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 1
write /sys/module/lowmemorykiller/parameters/vmpressure_file_min 53059
on post-fs
# Allow writing to the kernel trace log.
chmod 0222 /sys/kernel/debug/tracing/trace_marker
on post-fs-data
mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
chown bluetooth bluetooth /persist/.bt_nv.bin