Skip to content

Scan Result Types

ResultDescriptionRecommended Action
TRUSTEDApp passed all security checksContinue normal operation
FLAGGEDPotential security concerns detectedMonitor and investigate
UNTRUSTEDApp failed critical security checksRestrict functionality or terminate
UNKNOWNScan result unclear or invalidRetry scan or investigate
INITIALIZATION_ERRORSDK failed to initialize properlyFix initialization issues

Scan Result Handling:

private void processScanResult(AlphynScanResult scanResult) {
Log.i("Byteria", String.format("Scan Result: %s %s",
scanResult.getEmoji(), scanResult.getDisplayName()));
// Branch on the exact result so the response matches severity.
switch (scanResult) {
case UNTRUSTED:
// Failed critical security checks - the most severe state
Log.e("Byteria", "Untrusted - restricting or terminating");
terminateAppForSecurity();
break;
case FLAGGED:
// Potential concerns - continue with enhanced monitoring
Log.w("Byteria", "Flagged - enabling enhanced security monitoring");
enableEnhancedMonitoring();
break;
case TRUSTED:
Log.i("Byteria", "Application verified as secure");
proceedWithNormalOperation();
break;
default:
break;
}
}

Note: isThreat() returns true for UNTRUSTED or FLAGGED; isCriticalThreat() returns true for FLAGGED only. When branching on severity, prefer switching on the exact AlphynScanResult value as shown above.