diff options
author | Nick Kralevich <nnk@google.com> | 2016-11-19 12:09:33 -0800 |
---|---|---|
committer | gitbuildkicker <android-build@google.com> | 2016-12-19 13:30:23 -0800 |
commit | 8d367d296c2658a21937dd7761c5037fc26d51cd (patch) | |
tree | b62cbb09ebef81ae6bb47d172461b8d408dda2c3 | |
parent | 5cf8bbd5b29dbf6e3c485f79c30d37c75df50b24 (diff) | |
download | core-nougat-mr1.3-release.tar.gz |
change /data/bugreports to /bugreportsandroid-7.1.1_r35android-7.1.1_r26android-7.1.1_r25android-7.1.1_r21android-7.1.1_r20nougat-mr1.3-release
It's 5 characters shorter, has no runtime costs, can be stored on a
read-only partition, and avoids problems like b/27262109 and b/27204904.
It allows makes some security hardening easier.
(cherry picked from commit c4084c669495fd1b41ce8b6568c71b1f46d26969)
Bug: 27262109
Bug: 27204904
Bug: 32799236
Test: verified new symlink created and old one not present
Change-Id: Ief362e13569ad9c868a7f0f9c4dbd6a328c96c6b
(cherry picked from commit 04bbd5c6dd0455af43e96efbc45399bf6fd70d40)
-rw-r--r-- | rootdir/Android.mk | 1 | ||||
-rw-r--r-- | rootdir/init.rc | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/rootdir/Android.mk b/rootdir/Android.mk index aa5a52092..7d0c87dc4 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -123,6 +123,7 @@ endif LOCAL_POST_INSTALL_CMD := mkdir -p $(addprefix $(TARGET_ROOT_OUT)/, \ sbin dev proc sys system data oem acct config storage mnt root $(BOARD_ROOT_EXTRA_FOLDERS)); \ ln -sf /system/etc $(TARGET_ROOT_OUT)/etc; \ + ln -sf /data/user_de/0/com.android.shell/files/bugreports $(TARGET_ROOT_OUT)/bugreports; \ ln -sf /sys/kernel/debug $(TARGET_ROOT_OUT)/d; \ ln -sf /storage/self/primary $(TARGET_ROOT_OUT)/sdcard ifdef BOARD_USES_VENDORIMAGE diff --git a/rootdir/init.rc b/rootdir/init.rc index a9b6af0de..a22d5c130 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -444,10 +444,6 @@ on post-fs-data mkdir /data/anr 0775 system system - # symlink to bugreport storage location - rm /data/bugreports - symlink /data/user_de/0/com.android.shell/files/bugreports /data/bugreports - # Separate location for storing security policy files on data mkdir /data/security 0711 system system |