Certificate pinning spoils that, no spoofing of certs with pinning.
Cert (or hash of) delivered with app. If server cert doesn't match expected value coded into app, someone is messing with something, terminate connection.
Cert (or hash of) delivered with app. If server cert doesn't match expected value coded into app, someone is messing with something, terminate connection.
Have a read about "SafetyNet Attestion API" for Android.