Common Code
MPoC AM response MPoC SDK registration, attestation, heartbeat etc. but maybe get some error case, so the later list the common error code information. Also, payment Server maybe face some error through REST APIs query Attestation Monitoring result, the later list the error code, code start with 61:
(0, "success")
(61001, "Server Internal Error")
(61002, "Server Internal Error (%s)")
(61003, "Parameter Error (%s)")
(61004, "Token Sdk ID not Detected")
(61005, "Token Sdk ID not match")
(61010, "Sdk ID not Detected")
(61011, "License ID not Detected")
(61012, "Customer ID not Detected")
(61013, "Challenge ID not Detected")
(61014, "Registration sign not match")
(61015, "Attestation - Data Encryption Decryption Failed")
(61016, "Attestation - Data Encryption Result Failed")
(61017, "Attestation - Data check Failed")
(61018, "Add or update user not Detected")
(61019, "Application package name not Detected")
(61020, "Auth Incorrect")
(61401, "Token Unauthorized")
Attestation Code
MPoC SDK send attestation data to MPoC AM, AM decrypt data information item one by one, if the attestation data contain some unsafe info, MPoC AM will generation the error code information, then response to MPoC SDK for protect COTS security. Code start with 60:
(HEALTH, 0, "success")
(SECURITY_FLAW, 60001, "Attestation - ADB is Enabled")
(UNDER_ATTACKING, 60002, "Attestation - Android ID Not Match with Registration Record")
(SECURITY_FLAW, 60003, "Attestation - Mandatory Permissions are not Granted for Application")
(SECURITY_FLAW, 60004, "Attestation - Application Version Code is Lower Than Threshold")
(UNDER_ATTACKING, 60005, "Attestation - MagiskHide is Detected")
(SECURITY_FLAW, 60006, "Attestation - Device Model is in Blacklist")
(UNDER_ATTACKING, 60010, "Attestation - Application is a Debug Build")
(UNDER_ATTACKING, 60011, "Attestation - Application is Under Hooking")
(UNDER_ATTACKING, 60012, "Attestation - Application Connects with Debugger")
(SECURITY_FLAW, 60013, "Attestation - Device has Malicious NFC app")
(UNDER_ATTACKING, 60014, "Attestation - Device root")
(UNDER_ATTACKING, 60015, "Attestation - SystemDebuggable Flag is Detected")
(SECURITY_FLAW, 60016, "Attestation - Attestation TimeStamp is Expired")
(UNDER_ATTACKING, 60017, "Attestation - Tracing is Detected")
(SECURITY_FLAW, 60018, "Attestation - SDK is blocked")
(SECURITY_FLAW, 60019, "Attestation - SDK is revoked")
(UNDER_ATTACKING, 60020, "Attestation - Device emulator")
(SECURITY_FLAW, 60021, "Attestation - OS version rollback")
(SECURITY_FLAW, 60022, "Attestation - APP version rollback")
(SECURITY_FLAW, 60023, "Attestation - SDK version rollback")
(SECURITY_FLAW, 60101, "Attestation - Key Attestation InvalidKeyException")
(SECURITY_FLAW, 60102, "Attestation - Key Attestation Parse Certificate Error")
(SECURITY_FLAW, 60103, "Attestation - Key Attestation cert Revoked")
(UNDER_ATTACKING, 60104, "Attestation - Key Attestation Root Cert is not validated")
(SECURITY_FLAW, 60105, "Attestation - Key Attestation Cert Invalid")
(UNDER_ATTACKING, 60106, "Attestation - Key Attestation Cert Chain Not Verified")
(UNDER_ATTACKING, 60107, "Attestation - Key Attestation BootLoader Unlocked")
(UNDER_ATTACKING, 60108, "Attestation - Key Attestation BootLoader Unverified")
(SECURITY_FLAW, 60109, "Attestation - Key Attestation Security Level is Software")
(SECURITY_FLAW, 60110, "Attestation - Android Security Patch Level is Lower Than Threshold")
(UNDER_ATTACKING, 60111, "Attestation - Key Attestation Invalid Application Package Name")
(UNDER_ATTACKING, 60112, "Attestation - Key Attestation Invalid Signature Digest")
(SECURITY_FLAW, 60113, "Attestation - Application Version Code is Lower Than Threshold")
(SECURITY_FLAW, 60114, "Attestation - Key Attestation Challenge Not Match")
(SECURITY_FLAW, 60208, "IntegrityToken - Challenge Does Not Match")
(UNDER_ATTACKING, 60209, "IntegrityToken - apkPackageName Does Not Match")
(UNDER_ATTACKING, 60210, "IntegrityToken - Signature Does Not Match")
(SECURITY_FLAW, 60211, "IntegrityToken - Not meets basic")
(SECURITY_FLAW, 60212, "IntegrityToken - Not meets device")
(SECURITY_FLAW, 60213, "IntegrityToken - Failed to Parse and Verify the Attestation Statement")
(SECURITY_FLAW, 60301, "Attestation - Device Does not Have LightSensor")
(SECURITY_FLAW, 60302, "Attestation - Side-Loaded is Detected")
(SECURITY_FLAW, 60303, "Attestation - Android Security Patch Level is Lower Than Threshold")
(SECURITY_FLAW, 60304, "Attestation - Google Play Services is Not Available")
(SECURITY_FLAW, 60305, "Attestation - Android API Level is Lower Than Threshold")
(SECURITY_FLAW, 60306, "Attestation - Device Does Not Support Hardware KeyStore")
(SECURITY_FLAW, 60307, "Attestation - Google Play Services Version is Lower Than Threshold")
(SECURITY_FLAW, 60308, "BaselineInfo - Device Does Not Support NFC")
(SECURITY_FLAW, 60309, "BaselineInfo - Device NFC Interface is Switched Off")
(UNDER_ATTACKING,60400, "Attestation - Data check Failed (%s)")
(UNDER_ATTACKING,60401, "Attestation - Attestation check Failed")