America has intelligence-sharing agreements with allied nations wherein our satellites are taking photos on the allies' behalf of things that we might not otherwise be interested in. I'm sure China and Russia have similar arrangements with their allies.
Iran does with Russia. It's been in the news a lot lately. I have no doubt they do with China as well.
China is absolutely sharing intel with Iran. They cannot believe their luck. The US is getting itself into a Ukraine, draining all their advanced weapon stocks, delivering tons of real war data for China to work with.
It's like Christmas. Real practice tracking US assets and wargaming against them is such a break for them.