diff options
author | Nick Kralevich <nnk@google.com> | 2015-07-25 21:06:20 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2015-07-25 21:06:20 -0700 |
commit | c2ea70ae6ebcf98bd067e06b3e33894ef5c260c8 (patch) | |
tree | 6da52676e1ab5a3feac8bfd70c8c3eff6b1037ce /rootdir | |
parent | ed21796754c4879bedaa1a479ae288dda6dad478 (diff) | |
download | core-c2ea70ae6ebcf98bd067e06b3e33894ef5c260c8.tar.gz core-c2ea70ae6ebcf98bd067e06b3e33894ef5c260c8.tar.bz2 core-c2ea70ae6ebcf98bd067e06b3e33894ef5c260c8.zip |
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
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index b7a593fbe..f5febdea7 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -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 |