[Android] Do not accept all HTTP intents

Jean-Baptiste Kempf git at videolan.org
Wed Sep 19 13:47:33 CEST 2012


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Sep 19 13:47:04 2012 +0200| [5ebd3a4a8e0a149e61da08e7b01c5a866cb0dc11] | committer: Jean-Baptiste Kempf

Do not accept all HTTP intents

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=5ebd3a4a8e0a149e61da08e7b01c5a866cb0dc11
---

 vlc-android/AndroidManifest.xml |   29 ++++++++++-------------------
 1 file changed, 10 insertions(+), 19 deletions(-)

diff --git a/vlc-android/AndroidManifest.xml b/vlc-android/AndroidManifest.xml
index 15f4b76..e9c03e4 100644
--- a/vlc-android/AndroidManifest.xml
+++ b/vlc-android/AndroidManifest.xml
@@ -81,32 +81,23 @@
 
                 <data android:mimeType="video/*" />
                 <data android:mimeType="audio/*" />
-                <data android:scheme="http" />
-                <data android:scheme="https" />
-                <data android:scheme="file" />
-                <data android:scheme="rtsp" />
-                <data android:scheme="rtmp" />
-                <data android:scheme="rtp" />
-                <data android:scheme="mms" />
-                <data android:scheme="mmsh" />
-                <data android:scheme="icyx" />
-                <data android:scheme="udp" />
-            </intent-filter>
-            <intent-filter>
-                <action android:name="android.intent.action.VIEW" />
-                <category android:name="android.intent.category.DEFAULT" />
-                <category android:name="android.intent.category.BROWSABLE" />
+                <data android:scheme="http" android:mimeType="video/*" />
+                <data android:scheme="http" android:mimeType="audio/*" />
+                <data android:scheme="https" android:mimeType="video/*" />
+                <data android:scheme="https" android:mimeType="audio/*" />
+                <data android:scheme="file" android:mimeType="video/*" />
+                <data android:scheme="file" android:mimeType="audio/*" />
+                <data android:scheme="udp" android:mimeType="video/*" />
+                <data android:scheme="udp" android:mimeType="audio/*" />
+                <data android:scheme="ftp" android:mimeType="video/*" />
+                <data android:scheme="ftp" android:mimeType="audio/*" />
 
-                <data android:scheme="http" />
-                <data android:scheme="https" />
-                <data android:scheme="file" />
                 <data android:scheme="rtsp" />
                 <data android:scheme="rtmp" />
                 <data android:scheme="rtp" />
                 <data android:scheme="mms" />
                 <data android:scheme="mmsh" />
                 <data android:scheme="icyx" />
-                <data android:scheme="udp" />
             </intent-filter>
         </activity>
         <activity



More information about the Android mailing list