Skip to content

Commit a265fb3

Browse files
maxwentemasek
authored andcommitted
[1/3] base: make overlay permission check configurable
google added security check when changing app permissions to check for apps running with enabled draw over apps (SYSTEM_ALERT_WINDOW) permission. Since OmniSwitch is such an app it will always trigger this and requires users to remove permissions before changing app permissions. After that the permission must be added back. Since this is a PITA add a config that will disable the check This is reducing security against tapjacking so make it clear to the user what it means to disable it TODO: maybe add a even more prominent alert when enabling the value Change-Id: I7f1c047709a990e7b6f2aaafc9a25586f822ea92
1 parent c3613f2 commit a265fb3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/java/android/provider/Settings.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6298,6 +6298,15 @@ public static boolean putFloatForUser(ContentResolver cr, String name, float val
62986298
@Deprecated
62996299
public static final String LOCK_PATTERN_VISIBLE = "lock_pattern_visible_pattern";
63006300

6301+
/**
6302+
* Disable checking for running overlays during permission changes
6303+
* running OmniSwitch will trigger this and we want to give people
6304+
* possibility to make it easier on demand
6305+
*
6306+
* @hide
6307+
*/
6308+
public static final String PACKAGE_INSTALL_OVERLAY_CHECK_DISABLED = "package_install_overlay_check_disabled";
6309+
63016310
/**
63026311
* Whether lock pattern will vibrate as user enters (0 = false, 1 =
63036312
* true)

0 commit comments

Comments
 (0)