Fun fact: I created my own Android phone in 2014 with MediaTek. Costs of the project were minimal: $40k to customize a device with the latest specs and add extra ports/sensors/actuators for medical device. Final purchase price was ~80 dollars each for a batch of 10,000 units.

We gave up when after six months the phone was already outdated and we couldn't find the parts to reorder anymore.