Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61a66051 authored by Rubin Xu's avatar Rubin Xu
Browse files

Protect UnlaunchableAppActivity against overlay attack

Bug: 181785557
Test: manual
Change-Id: If496bbb195b3f33cece6a93e683e9186d6175687
parent 747806dd
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -91,7 +91,12 @@ public class UnlaunchableAppActivity extends Activity
        } else {
            builder.setPositiveButton(R.string.ok, null);
        }
        builder.show();
        final AlertDialog dialog = builder.create();
        dialog.create();
        // Prevents screen overlay attack.
        getWindow().setHideOverlayWindows(true);
        dialog.getButton(DialogInterface.BUTTON_POSITIVE).setFilterTouchesWhenObscured(true);
        dialog.show();
    }

    private String getDialogTitle() {