Scan Result Types
| Result | Description | Recommended Action |
|---|---|---|
TRUSTED | App passed all security checks | Continue normal operation |
FLAGGED | Potential security concerns detected | Monitor and investigate |
UNTRUSTED | App failed critical security checks | Restrict functionality or terminate |
UNKNOWN | Scan result unclear or invalid | Retry scan or investigate |
INITIALIZATION_ERROR | SDK failed to initialize properly | Fix 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 forUNTRUSTEDorFLAGGED;isCriticalThreat()returns true forFLAGGEDonly. When branching on severity, prefer switching on the exactAlphynScanResultvalue as shown above.