path: root/rootdir/init.rc
diff options
authorNick Kralevich <>2016-04-12 20:36:01 -0700
committerNick Kralevich <>2016-04-12 20:36:01 -0700
commitd2f0a2c0653e332b906875077b9048e64b929d94 (patch)
tree1c9e8d56c9d107ebccbfc158bbba4adf5bdf36d1 /rootdir/init.rc
parente3a3288dddcde8c180dfe2935335ca3c475e37a2 (diff)
init.rc: Restore the /mnt/sdcard symlink
"You are in a maze of twisty little symlinks, all alike." Restore the /mnt/sdcard symlink, for compatibility with older Android apps. This symlink was suppose to have been removed in the Gingerbread time frame, but lives on. Note: The /mnt/sdcard symlink was originally created in device specific *.rc files in the device/vendor/hardware/* directory. This change moves the creation of the symlink into the common init.rc file. Bug: 25801877 Bug: 28108983 Change-Id: I2f9bf71bddffadb587d7376dfdfc8a546c84ec28
Diffstat (limited to 'rootdir/init.rc')
1 files changed, 1 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index a95eaa26f..3e2f0a589 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -87,6 +87,7 @@ on init
# Symlink to keep legacy apps working in multi-user world
symlink /storage/self/primary /sdcard
+ symlink /storage/self/primary /mnt/sdcard
symlink /mnt/user/0/primary /mnt/runtime/default/self/primary
# root memory control cgroup, used by lmkd