summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rootdir/Android.mk1
-rw-r--r--rootdir/init.rc4
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 56379dbd3..71f9d5acd 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -427,10 +427,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