From e8e44209b98cdf528ba4a6937332de67269d465e Mon Sep 17 00:00:00 2001 From: Adrian DC Date: Wed, 15 Aug 2018 15:29:55 +0200 Subject: [PATCH] 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 --- rootdir/etc/init.qcom.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 41849d4..b51441a 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -77,6 +77,10 @@ on fs # Adaptive LMK 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