Honestly I doubt it will be able to do the activities you seek.
For example the IR grid sensor on Project Tango which does the depth sensing:
From Google: "The IR projector is from Mantis Vision, and designed specific to our specs for field of view and resolution. It is custom designed to work in partnership with the 4MP RGB-IR camera on the other side."
iFixit looks like there were able to independently run the IR projector to show off the field of dots:
While the teardown for a Samsung Galaxy S8+
[right most photo] notes an IR emitter, I'm incline to say that it would be tuned for iris scanning or other declared feature and work more like a IR flashlight than a grid.
For comparison iFixit shows off the front facing hardware of a Samsung Galaxy S9+ compared with a iPhone X:
And you can note that the depth sensor assembly on the iPhone X is similar to the Project Tango tablet as a single assembly rather than a collection of separate cameras/projectors (probably for tolerance reasons during assembly).