answer I got from @etiennesegonzac : trial and error

This is not very satisfying, but since it's 1.3+ and a lot of time already went into this, I'll accept this, but we need a follow-up with platform guys to know how we can do this in a saner way.