Amazon.com Inc. is developing a new smartphone built around its Alexa assistant, marking the e-commerce giant's return to mobile hardware.