From 9b3e5d59feaa1c6863ba74a764293295e52c9e34 Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Tue, 10 Nov 2015 19:16:43 +0000 Subject: [PATCH] Create a folder to store method traces activated with -Xmethod-trace Bug: 25612377 Change-Id: I370b858594ccc88c12099b23a0d1aac22acd4969 --- rootdir/init.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 17e87da70..7fa4b9561 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -327,6 +327,7 @@ on post-fs-data mkdir /data/misc/media 0700 media media mkdir /data/misc/boottrace 0771 system shell mkdir /data/misc/update_engine 0700 root root + mkdir /data/misc/trace 0700 root root # For security reasons, /data/local/tmp should always be empty. # Do not place files or directories in /data/local/tmp @@ -560,6 +561,9 @@ service console /system/bin/sh seclabel u:r:shell:s0 on property:ro.debuggable=1 + # Give writes to anyone for the trace folder on debug builds. + # The folder is used to store method traces. + chmod 0773 /data/misc/trace start console service flash_recovery /system/bin/install-recovery.sh