From 144893e5ec6cd8d6a0ff11d8adc5440e6f86635a Mon Sep 17 00:00:00 2001 From: Bowgo Tsai Date: Tue, 12 Sep 2017 17:56:37 +0800 Subject: [PATCH] Removing $(PRODUCT_OUT)/root/root Bug: 65570851 Test: boot sailfish Change-Id: I80c3c3de23c57343187fde207980731b5341bc1f Merged-In: I80c3c3de23c57343187fde207980731b5341bc1f (cherry picked from commit ededee3e400d4caa50c04c2e0ec5d92a56e39425) --- CleanSpec.mk | 1 + libcutils/fs_config.cpp | 1 - rootdir/Android.mk | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CleanSpec.mk b/CleanSpec.mk index 5b5eff406..304ce4ec0 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -60,3 +60,4 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib/hw/gatekeeper.$(TARGET_D $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib64/hw/gatekeeper.$(TARGET_DEVICE).so) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/vendor) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/init.rc) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/root) diff --git a/libcutils/fs_config.cpp b/libcutils/fs_config.cpp index 118504051..bab095ede 100644 --- a/libcutils/fs_config.cpp +++ b/libcutils/fs_config.cpp @@ -80,7 +80,6 @@ static const struct fs_path_config android_dirs[] = { { 00775, AID_ROOT, AID_ROOT, 0, "data/preloads" }, { 00771, AID_SYSTEM, AID_SYSTEM, 0, "data" }, { 00755, AID_ROOT, AID_SYSTEM, 0, "mnt" }, - { 00755, AID_ROOT, AID_ROOT, 0, "root" }, { 00750, AID_ROOT, AID_SHELL, 0, "sbin" }, { 00777, AID_ROOT, AID_ROOT, 0, "sdcard" }, { 00751, AID_ROOT, AID_SDCARD_R, 0, "storage" }, diff --git a/rootdir/Android.mk b/rootdir/Android.mk index 48a46c606..e199ed406 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -127,7 +127,7 @@ endif # # create some directories (some are mount points) and symlinks 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)); \ + sbin dev proc sys system data oem acct config storage mnt $(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; \