General Device Information
General device information establishes the core identity of an Android handset: commercial manufacturer, brand, internal product board, codenames, build fingerprint, and supported CPU Application Binary Interfaces (ABIs).
Commercial Name vs. Internal Hardware Codename
Android devices possess multiple distinct names. For example, a phone marketed commercially as the "Samsung Galaxy S10" has an internal hardware model of SM-G973F, an internal device codename of beyond1, and a product board named universal9820. Relying solely on the commercial marketing name can lead to flashing incorrect firmware or misidentifying regional processor variants (e.g. Snapdragon vs Exynos).
How Voodoo Inspects General Information
1. Primary Call & API-Level Fallback Chain
Extracted from GeneralCollector.kt. The collector reads from android.os.Build constants, falling back to system properties (ro.product.*), and uses segregated helpers (ModernGeneralHelper) for API 21+ ABI arrays and API 24+ boot counts:
// Excerpt from com.tool3.hardwareinfo.categories.general.GeneralCollector.kt
val manufacturer = Build.MANUFACTURER.takeIf { !it.isNullOrBlank() && it != Build.UNKNOWN }
?: SystemPropertyReader.get("ro.product.manufacturer", "Unknown")
val model = Build.MODEL.takeIf { !it.isNullOrBlank() && it != Build.UNKNOWN }
?: SystemPropertyReader.get("ro.product.model", "Unknown")
// API 21+ Supported ABIs with legacy fallback
val abis = if (Build.VERSION.SDK_INT >= 21) {
ModernGeneralHelper.getSupportedAbis()
} else {
listOfNotNull(Build.CPU_ABI, Build.CPU_ABI2.takeIf { it != Build.UNKNOWN })
}
2. Permission & Privilege Gate
Core branding properties (Build.MANUFACTURER, Build.MODEL, Build.BOARD) require zero permissions. However:
- Hardware Serial Number (
Build.getSerial()): Restricted starting in Android 10 (API 29). Standard third-party apps receive aSecurityException; only privileged apps with system signature can read it. - Android ID (
Settings.Secure.ANDROID_ID): Available without permissions, but randomized per app-signing key on Android 8.0+ to prevent cross-app tracking. - Boot Count: Requires Android 7.0+ (API 24); read via
Settings.Global.getInt(cr, Settings.Global.BOOT_COUNT).
3. Interpretation & Normalization Logic
The collector distinguishes between 32-bit and 64-bit ABI support:
- On Android 5.0+ (API 21+),
Build.SUPPORTED_32_BIT_ABISandBuild.SUPPORTED_64_BIT_ABISare parsed to confirm if the device runs a true 64-bit OS or a 32-bit OS on 64-bit silicon. - Build tags (
release-keysvstest-keys) are verified to indicate production OEM firmware vs engineering/custom builds.
4. Availability-State Triggers
Build.getSerial()on API 29+ triggersAvailabilityState.RESTRICTED_BY_ANDROID.Build.SUPPORTED_ABISon API < 21 falls back to legacy ABIs; if absent, triggersAvailabilityState.UNSUPPORTED.- Boot count retrieval failure on Android < 7.0 triggers
AvailabilityState.UNSUPPORTED.
Subsystem Field Inventory
| Field ID | Display Name | Type | Primary Source / API | Min API |
|---|---|---|---|---|
| general.manufacturer | Manufacturer | STRING | Build.MANUFACTURER / ro.product.manufacturer | API 4 |
| general.brand | Brand | STRING | Build.BRAND / ro.product.brand | API 1 |
| general.model | Model | STRING | Build.MODEL / ro.product.model | API 1 |
| general.device_codename | Device Codename | STRING | Build.DEVICE / ro.product.device | API 1 |
| general.board | Product Board | STRING | Build.BOARD / ro.product.board | API 1 |
| general.supported_abis | Supported ABIs | LIST | Build.SUPPORTED_ABIS (API 21+) / CPU_ABI | API 1 |
| general.build_fingerprint | Build Fingerprint | STRING | Build.FINGERPRINT / ro.build.fingerprint | API 1 |
| general.bootloader | Bootloader Version | STRING | Build.BOOTLOADER / ro.bootloader | API 8 |