When the user chooses to install the Fiddler2 certificate as a trusted root certificate, he then chooses to compromise his own security. Iβm not sure that you can handle this, as your HTTPS connection will go through the Android certificate verification system, which will consider the connection as valid, since the certified one is trusted.
The solution I would like to use is to insert your SSL certificate into your application and tell your application that it is the only trusted certificate. It is safe and free, because you can attach a self-signed certificate that you created yourself, because you control the verification mechanism. See this blog article for sample code.
source share