mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
Add tapjacking protection
* Set filterTouchesWhenObscured for all views * Warn the user if Apps using the SYSTEM_ALERT_WINDOW permission are installed * Warn the user if an App using the permission is installed while Briar is running Signed-off-by: goapunk <noobie@goapunks.net>
This commit is contained in:
@@ -380,4 +380,10 @@
|
||||
<!-- Sign Out -->
|
||||
<string name="progress_title_logout">Signing out of Briar…</string>
|
||||
|
||||
<!-- Screen Filters & Tapjacking -->
|
||||
<string name="screen_filter_title">Screen filter detected</string>
|
||||
<string name="screen_filter_body">The following apps have permission to draw over other apps:\n\n%1$s \n\nBriar will not respond to touches when another app is drawing over it.
|
||||
If you experience any problems, try turning off these apps when using Briar.\n</string>
|
||||
<string name="checkbox_dont_show_again">Don\'t warn me again for these apps</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<item name="android:textColorTertiaryInverse">@color/briar_text_tertiary_inverse</item>
|
||||
<item name="android:textColorLink">@color/briar_text_link</item>
|
||||
<item name="android:windowAnimationStyle">@style/ActivityAnimation</item>
|
||||
<item name="android:filterTouchesWhenObscured">true</item>
|
||||
|
||||
<!-- These fix a long-standing UI bug in the support preference library -->
|
||||
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
|
||||
@@ -47,6 +48,12 @@
|
||||
<item name="android:textColorTertiaryInverse">@color/briar_text_tertiary_inverse</item>
|
||||
<item name="android:textColorLink">@color/briar_text_link</item>
|
||||
<item name="android:windowAnimationStyle">@style/DialogAnimation</item>
|
||||
<item name="android:filterTouchesWhenObscured">true</item>
|
||||
</style>
|
||||
|
||||
<!-- Use this with care. Only used for the screen filter warning dialog -->
|
||||
<style name="BriarDialogThemeNoFilter" parent="BriarDialogTheme">
|
||||
<item name="android:filterTouchesWhenObscured">false</item>
|
||||
</style>
|
||||
|
||||
<style name="DialogAnimation" parent="@android:style/Animation.Dialog">
|
||||
|
||||
Reference in New Issue
Block a user