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

Commit 48a8c94e authored by Karthik Ravi Shankar's avatar Karthik Ravi Shankar Committed by android-build-merger
Browse files

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

am: 88757bbb

Change-Id: I8a2e5818c9fe2f5f37a2c9354f2e08078e40995d
parents 4aa94a7c 88757bbb
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