diff options
author | Vishnu Nair | 2017-11-27 11:54:31 -0600 |
---|---|---|
committer | Vishnu Nair | 2017-11-27 11:54:31 -0600 |
commit | d09ab7a217eb13d09eddd031b46c6418b881ab6c (patch) | |
tree | 81cf480be5924741cf2b7bc047d61198275411a0 | |
parent | b7969272a3e7967b15b24fa56091b9cecea093de (diff) | |
download | platform-system-core-d09ab7a217eb13d09eddd031b46c6418b881ab6c.tar.gz platform-system-core-d09ab7a217eb13d09eddd031b46c6418b881ab6c.tar.xz platform-system-core-d09ab7a217eb13d09eddd031b46c6418b881ab6c.zip |
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
-rw-r--r-- | rootdir/init.rc | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
432 | mkdir /data/misc/update_engine 0700 root root | 432 | mkdir /data/misc/update_engine 0700 root root |
433 | mkdir /data/misc/update_engine_log 02750 root log | 433 | mkdir /data/misc/update_engine_log 02750 root log |
434 | mkdir /data/misc/trace 0700 root root | 434 | mkdir /data/misc/trace 0700 root root |
435 | # create location to store surface and window trace files | ||
436 | mkdir /data/misc/wmtrace 0700 system system | ||
435 | # profile file layout | 437 | # profile file layout |
436 | mkdir /data/misc/profiles 0771 system system | 438 | mkdir /data/misc/profiles 0771 system system |
437 | mkdir /data/misc/profiles/cur 0771 system system | 439 | mkdir /data/misc/profiles/cur 0771 system system |
@@ -726,6 +728,8 @@ on property:ro.debuggable=1 | |||
726 | # Give writes to anyone for the trace folder on debug builds. | 728 | # Give writes to anyone for the trace folder on debug builds. |
727 | # The folder is used to store method traces. | 729 | # The folder is used to store method traces. |
728 | chmod 0773 /data/misc/trace | 730 | chmod 0773 /data/misc/trace |
731 | # Give reads to anyone for the window trace folder on debug builds. | ||
732 | chmod 0775 /data/misc/wmtrace | ||
729 | start console | 733 | start console |
730 | 734 | ||
731 | service flash_recovery /system/bin/install-recovery.sh | 735 | service flash_recovery /system/bin/install-recovery.sh |