OSDN Git Service

Remove /sdcard hack for shell users.
authorJeff Sharkey <jsharkey@android.com>
Wed, 5 Sep 2012 22:49:39 +0000 (15:49 -0700)
committerJeff Sharkey <jsharkey@android.com>
Thu, 6 Sep 2012 00:56:03 +0000 (17:56 -0700)
commit21c93dc795dfbea3932e0273b1aa873051dde72c
treea0654a1293a0a00f63e5a7e02319424e6d59ce64
parentaa5ba91402f60e6beba38d45903a71366ad3c9c1
Remove /sdcard hack for shell users.

Using a /storage/sdcard0 symlink and a tmpfs staging area was used
to enable "/sdcard" paths for both zygote processes and the shell
user, but it breaks on devices with both emulated and physical
external storage.

Specifically, vold can't mount a physical sdcard onto the primary
storage symlink, and zygote can't re-bind-mount when secondary
storage is remounted after dropping privileges.

Bug: 70948587064600
Change-Id: Id91e3b3e521a3b3e1bb5358920adc66a0a43917f
vm/native/dalvik_system_Zygote.cpp