Both Android and Ubuntu support Type C display. You need to choose the right type C port, only one port support data transmit. You can see this: https://docs.khadas.com/edge/EdgeInterfaces.html
And you need to make sure that the type C cable suppot DP.