Skip to content

Commit

Permalink
Update AndroidManifest.xml: set exported flag (#1516)
Browse files Browse the repository at this point in the history
Set flag `android:exported` to all the activities having `<intent-filter>`.
  • Loading branch information
PatilShreyas committed Apr 28, 2022
1 parent 5f20b8d commit 4f9f466
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions android/AndroidManifest.xml
Expand Up @@ -48,7 +48,8 @@
android:clearTaskOnLaunch="true"
android:stateNotNeeded="true"
android:theme="@style/CaptureTheme"
android:windowSoftInputMode="stateAlwaysHidden">
android:windowSoftInputMode="stateAlwaysHidden"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
Expand Down Expand Up @@ -90,7 +91,8 @@
android:label="@string/preferences_name"
android:stateNotNeeded="true"/>
<activity android:name=".encode.EncodeActivity"
android:stateNotNeeded="true">
android:stateNotNeeded="true"
android:exported="false">
<intent-filter>
<action android:name="com.google.zxing.client.android.ENCODE"/>
<category android:name="android.intent.category.DEFAULT"/>
Expand All @@ -111,15 +113,17 @@
<activity android:name=".book.SearchBookContentsActivity"
android:label="@string/sbc_name"
android:stateNotNeeded="true"
android:screenOrientation="sensorLandscape">
android:screenOrientation="sensorLandscape"
android:exported="false">
<intent-filter>
<action android:name="com.google.zxing.client.android.SEARCH_BOOK_CONTENTS"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity android:name=".share.ShareActivity"
android:stateNotNeeded="true"
android:screenOrientation="user">
android:screenOrientation="user"
android:exported="false">
<intent-filter>
<action android:name="com.google.zxing.client.android.SHARE"/>
<category android:name="android.intent.category.DEFAULT"/>
Expand Down

0 comments on commit 4f9f466

Please sign in to comment.