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

Commit 88757bbb authored by Karthik Ravi Shankar's avatar Karthik Ravi Shankar Committed by Android (Google) Code Review
Browse files

Merge "Fix the binder calling identity in setVrMode" into pi-dev

parents 7723aed4 96090ef9
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -14288,6 +14288,9 @@ public class ActivityManagerService extends IActivityManager.Stub
            return err;
        }
        // Clear the binder calling uid since this path may call moveToTask().
        final long callingId = Binder.clearCallingIdentity();
        try {
            synchronized(this) {
                r.requestedVrComponent = (enabled) ? packageName : null;
@@ -14297,6 +14300,9 @@ public class ActivityManagerService extends IActivityManager.Stub
                }
                return 0;
            }
        } finally {
            Binder.restoreCallingIdentity(callingId);
        }
    }
    @Override