Gmail android app invalid certificate for imap

Have you verified the Gmail app actually uses SNI? Because SNI isn’t widespread in e-mail servers and clients.