An App to test device harware

Develop an app thru which a mobile can be diagnostic for the issues in the hardware of the mobile. The app will test all the hardware data. Like touch is working or not properly. and any other and notify the user the approximate cost need to fix the mobile phone. Test for dead pixel. Speaker working or not?