[Android] Allow cifs mount points starting by '//'
Nicolas Pomepuy
git at videolan.org
Tue Jun 1 11:10:34 UTC 2021
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu May 27 14:15:11 2021 +0200| [5c501cfa3cd3f50dc193055a73d43b6ac69ab9b9] | committer: Nicolas Pomepuy
Allow cifs mount points starting by '//'
Fixes #2034
> https://code.videolan.org/videolan/vlc-android/commit/5c501cfa3cd3f50dc193055a73d43b6ac69ab9b9
---
.../resources/src/main/java/org/videolan/resources/AndroidDevices.kt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/application/resources/src/main/java/org/videolan/resources/AndroidDevices.kt b/application/resources/src/main/java/org/videolan/resources/AndroidDevices.kt
index 8543ec420..3fa925168 100644
--- a/application/resources/src/main/java/org/videolan/resources/AndroidDevices.kt
+++ b/application/resources/src/main/java/org/videolan/resources/AndroidDevices.kt
@@ -30,6 +30,7 @@ import android.os.Build
import android.os.Build.VERSION_CODES
import android.os.Environment
import android.telephony.TelephonyManager
+import android.util.Log
import android.view.InputDevice
import android.view.MotionEvent
import androidx.core.content.getSystemService
@@ -68,7 +69,7 @@ object AndroidDevices {
private val typeBL = listOf("tmpfs")
private val mountWL = arrayOf("/mnt", "/Removable", "/storage")
val mountBL = arrayOf(EXTERNAL_PUBLIC_DIRECTORY, "/mnt/secure", "/mnt/shell", "/mnt/asec", "/mnt/nand", "/mnt/runtime", "/mnt/obb", "/mnt/media_rw/extSdCard", "/mnt/media_rw/sdcard", "/storage/emulated", "/var/run/arc")
- private val deviceWL = arrayOf("/dev/block/vold", "/dev/fuse", "/mnt/media_rw", "passthrough")
+ private val deviceWL = arrayOf("/dev/block/vold", "/dev/fuse", "/mnt/media_rw", "passthrough", "//")
/**
* hasCombBar test if device has Combined Bar : only for tablet with Honeycomb or ICS
More information about the Android
mailing list