Current UAE law says that if a foreign juridical person (ie company) has permanent establishment in the UAE , it is subject to UAE corp tax.
UAE authorities probably will not know, at first at least, but the mechanism is that you have to tell Hong Kong Authorities about your business. And then there are a lot of multi and bilateral agreements and standards for sharing such info, so︀ UAE authorities might get it from Hong Kong.