[Android] Manifest: do not export activities and receiver that do not need to

Jean-Baptiste Kempf git at videolan.org
Sat Jun 30 09:26:41 CEST 2012


android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jun 29 22:49:19 2012 +0200| [551297f46f55c215a0b7fe2dd4caf4211ee0d76f] | committer: Jean-Baptiste Kempf

Manifest: do not export activities and receiver that do not need to

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=551297f46f55c215a0b7fe2dd4caf4211ee0d76f
---

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

diff --git a/vlc-android/AndroidManifest.xml b/vlc-android/AndroidManifest.xml
index ad8a60e..cf0f399 100644
--- a/vlc-android/AndroidManifest.xml
+++ b/vlc-android/AndroidManifest.xml
@@ -35,7 +35,8 @@
         <activity
             android:name=".gui.SearchActivity"
             android:configChanges="orientation|screenSize"
-            android:theme="@android:style/Theme.NoTitleBar" >
+            android:theme="@android:style/Theme.NoTitleBar"
+            android:exported="false" >
             <intent-filter>
                 <action android:name="android.intent.action.SEARCH" />
             </intent-filter>
@@ -99,14 +100,17 @@
 
         <service android:name=".AudioService" />
 
-        <receiver android:name="PhoneStateReceiver" >
+        <receiver
+            android:name="PhoneStateReceiver"
+            android:exported="false">
             <intent-filter>
                 <action android:name="android.intent.action.PHONE_STATE" />
             </intent-filter>
         </receiver>
         <receiver
             android:name=".widget.VLCAppWidgetProvider"
-            android:label="VLC mini player" >
+            android:label="VLC mini player"
+            android:exported="false">
             <intent-filter>
                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
             </intent-filter>



More information about the Android mailing list