Skip to content

Commit

Permalink
fix "Webview is Vulnerable to Cross app"
Browse files Browse the repository at this point in the history
  • Loading branch information
rignaneseleo committed Jun 16, 2021
1 parent 602b948 commit 4c31873
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions SlimFacebook/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
<activity
android:name=".MainActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:exported="false"
android:label="@string/actionbar_name"
android:launchMode="singleTask">
android:launchMode="singleTask"> <!-- this to fix "Webview is Vulnerable to Cross app" -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down Expand Up @@ -154,14 +155,18 @@
android:scheme="https" />
</intent-filter>
<intent-filter>

<!-- to open facebook link for sharing link -->
<action android:name="android.intent.action.SEND" />

<category android:name="android.intent.category.DEFAULT" />

<data android:mimeType="text/plain" />
</intent-filter>

<!-- to fix "Webview is Vulnerable to Cross app" -->
<meta-data
android:name="android.webkit.WebView.EnableSafeBrowsing"
android:value="true" />
</activity>

<!-- picture activity -->
Expand Down

0 comments on commit 4c31873

Please sign in to comment.