[Android] Bump the remote access version to 0.1.3

Nicolas Pomepuy git at videolan.org
Wed Jan 22 12:26:03 UTC 2025


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Jan 22 11:46:52 2025 +0100| [9c2d2c687da53e8a2e85246fedfcfac7c83f50fd] | committer: Nicolas Pomepuy

Bump the remote access version to 0.1.3

> https://code.videolan.org/videolan/vlc-android/commit/9c2d2c687da53e8a2e85246fedfcfac7c83f50fd
---

 .../src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt   | 4 ++++
 build.gradle                                                          | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt b/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
index 832def5b8b..61f64bae5f 100644
--- a/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
+++ b/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
@@ -758,6 +758,10 @@ fun Route.setupRouting(appContext: Context, scope: CoroutineScope) {
                 call.respond(HttpStatusCode.Forbidden)
                 return at get
             }
+            if (!Permissions.canReadStorage(appContext)) {
+                call.respond(HttpStatusCode.Forbidden)
+                return at get
+            }
             //Get content synchronously
             val dataset = LiveDataset<MediaLibraryItem>()
             val provider = withContext(Dispatchers.Main) {
diff --git a/build.gradle b/build.gradle
index d14851c07c..7088746577 100644
--- a/build.gradle
+++ b/build.gradle
@@ -42,7 +42,7 @@ ext {
     versionCode = 3060100
     versionName = project.hasProperty('forceVlc4') && project.getProperty('forceVlc4') ? '4.0.0-preview - ' + versionCode : '3.6.1'
     vlcMajorVersion = project.hasProperty('forceVlc4') && project.getProperty('forceVlc4') ? 4 : 3
-    remoteAccessVersion = '0.1.2'
+    remoteAccessVersion = '0.1.3'
     libvlcVersion = vlcMajorVersion == 3 ? '3.6.0-eap14' :'4.0.0-eap17'
     medialibraryVersion = vlcMajorVersion == 3 ? '0.13.13-rc14' : '0.13.13-vlc4-rc14'
     minSdkVersion = 17



More information about the Android mailing list