[Android] update storage detection for Sony Z1
Sébastien Toque
git at videolan.org
Fri Mar 28 14:20:03 CET 2014
vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Fri Mar 28 11:21:16 2014 +0100| [65e9881b8b1a4ee6e4ad97f60240e4da44ae7631] | committer: Adrien Maglo
update storage detection for Sony Z1
Signed-off-by: Adrien Maglo <magsoft at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=65e9881b8b1a4ee6e4ad97f60240e4da44ae7631
---
vlc-android/src/org/videolan/vlc/Util.java | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/Util.java b/vlc-android/src/org/videolan/vlc/Util.java
index 471870d..9751c7c 100644
--- a/vlc-android/src/org/videolan/vlc/Util.java
+++ b/vlc-android/src/org/videolan/vlc/Util.java
@@ -434,11 +434,21 @@ public class Util {
ArrayList<String> list = new ArrayList<String>();
list.add(Environment.getExternalStorageDirectory().getPath());
- List<String> typeWL = Arrays.asList("vfat", "exfat", "sdcardfs");
+ List<String> typeWL = Arrays.asList("vfat", "exfat", "sdcardfs", "fuse");
List<String> typeBL = Arrays.asList("tmpfs");
String[] mountWL = { "/mnt", "/Removable" };
- String[] mountBL = { "/mnt/secure", "/mnt/shell", "/mnt/asec", "/mnt/obb", "/mnt/media_rw/extSdCard" };
- String[] deviceWL = { "/dev/block/vold", "/mnt/media_rw/extSdCard" };
+ String[] mountBL = {
+ "/mnt/secure",
+ "/mnt/shell",
+ "/mnt/asec",
+ "/mnt/obb",
+ "/mnt/media_rw/extSdCard",
+ "/mnt/media_rw/sdcard",
+ "/storage/emulated" };
+ String[] deviceWL = {
+ "/dev/block/vold",
+ "/dev/fuse",
+ "/mnt/media_rw/extSdCard" };
try {
bufReader = new BufferedReader(new FileReader("/proc/mounts"));
More information about the Android
mailing list