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

Commit f44a53f9 authored by Jan Sebechlebsky's avatar Jan Sebechlebsky
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
parent 9b5907be
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) {