Good phone camera needs to have both quality hardware and advanced software.
Hardware- Sensor - good sensor has a high sensitivity. Sensor size is also important. The number of sensor pixels and the size of sensor pixels can make the difference.
- Lens - good one should have the right focal length and aperture. Better phone cameras have lenses with variable focal length and aperture, so they can can adjusted according to the needs.
- Optical stabilization - is based on physical moving of the lens or sensor, to reduce blur. It is considered to be better than digital image stabilization. To get the best result, both optical and digital stabilizations are used.
SoftwareCamera software is really important. It has quite a big impact on final photo or video quality. Good software can apply the right settings, focus, digital stabilization, scene filter, white balance, color temperature etc. Software in better phones can do the right modifications before taking the photo and when generating the photo.