Yes it will need to know which cylinders to inject, but it only has to choose between 2 pairs that are 360 degrees out of phase by crank angle. Outer will always follow inner in each pair.
Its logic only needs to be:
Was there a cam signal since I last squirted?
Yes - squirt in to pair A twice according to the crank position
No - squirt in to pair B....
It's similar to the missing tooth (or teeth) for the crank sensor. It can't possibly tell exactly where the missing tooth wasn't, it just knows the gap passed the sensor, so exactly which tooth will pass next.
... In practice I bet the cam sensor initiates a full 4 cylinder sequence of crank timed injection & ignition events, so it always starts in the same place off the starter motor.