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

Commit 0cba0a8b authored by Jan Sebechlebsky's avatar Jan Sebechlebsky Committed by Ján Sebechlebský
Browse files

Always launch BlockedAppStreamingActivity as SYSTEM user

With different user the activity will be blocked which results in
infinite recursive loop.

Bug: 328298904
Test: Manually reproduced bug with Exo and tested the bugfix
Test: atest ActivityBlockingTest
Change-Id: I36761e7104418d41d22f97f82cef336833709060
(cherry picked from commit f44a53f9)
parent 876ac6d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1213,7 +1213,7 @@ final class VirtualDeviceImpl extends IVirtualDevice.Stub
        mContext.startActivityAsUser(
                intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK),
                ActivityOptions.makeBasic().setLaunchDisplayId(displayId).toBundle(),
                mContext.getUser());
                UserHandle.SYSTEM);
    }

    private void onSecureWindowShown(int displayId, int uid) {