Jakarta has banned sales of the iPhone16 and Google Pixel under regulations that require phones to use local components.