init.rc: mkdir /data/anr 0775 system system

Ensure that /data/anr always exists. This allows us to eliminate
some code in system_server and dumpstate. In addition, this change
solves a common problem where people would create the directory
manually but fail to set the SELinux label, which would cause
subsequent failures when they used the directory for ANRs.

Bug: 22385254
Change-Id: I29eb3deb21a0504aed07570fee3c2f87e41f53a0
This commit is contained in:
Nick Kralevich 2015-07-25 21:06:20 -07:00
parent ed21796754
commit c2ea70ae6e
1 changed files with 1 additions and 0 deletions

View File

@ -292,6 +292,7 @@ on post-fs-data
mkdir /data/mediadrm 0770 mediadrm mediadrm
mkdir /data/adb 0700 root root
mkdir /data/anr 0775 system system
# symlink to bugreport storage location
symlink /data/data/com.android.shell/files/bugreports /data/bugreports