From d09ab7a217eb13d09eddd031b46c6418b881ab6c Mon Sep 17 00:00:00 2001 From: Vishnu Nair Date: Mon, 27 Nov 2017 09:54:31 -0800 Subject: [PATCH] Create location to store surface and window trace files on init Bug: 64831661 Test: adb shell su root rm /data/misc/wmtrace && adb reboot && adb shell su ls /data/misc/wmtrace Change-Id: I60979c26a9226534df534abd3d59df309f6ea6ad --- rootdir/init.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index ca7b99113..0248ee6d1 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -432,6 +432,8 @@ on post-fs-data mkdir /data/misc/update_engine 0700 root root mkdir /data/misc/update_engine_log 02750 root log mkdir /data/misc/trace 0700 root root + # create location to store surface and window trace files + mkdir /data/misc/wmtrace 0700 system system # profile file layout mkdir /data/misc/profiles 0771 system system mkdir /data/misc/profiles/cur 0771 system system @@ -726,6 +728,8 @@ 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 + # Give reads to anyone for the window trace folder on debug builds. + chmod 0775 /data/misc/wmtrace start console service flash_recovery /system/bin/install-recovery.sh