Camera & Optical Sensors Subsystem
Camera inspection evaluates the physical optics, multi-lens sensor arrays, pixel binning technologies, and firmware capability levels of the device imaging hardware.
Why Static Camera Specs != Sustained Video Recording
A device camera sensor may physically possess a 4K resolution pixel grid and advertise 60 fps output sizes. However, this does not prove that a third-party camera app can record sustained 4K60 video. Sustained video recording depends heavily on memory bus bandwidth, thermal dissipation, camera HAL buffer limits, and whether the media encoder can sustain the bitstream without dropping frames.
Modern 48 MP, 64 MP, 108 MP, and 200 MP sensors utilize 4-in-1 (Quad-Bayer) or 16-in-1 pixel binning. By default, the camera HAL outputs 12 MP or 12.5 MP images to optimize low-light sensitivity. Voodoo compares the maximum sensor pixel array size against default JPEG stream sizes to detect binning configurations.
Unlike poorly designed apps that activate camera hardware (triggering privacy indicator lights and draining power), Voodoo inspects static metadata exclusively via CameraManager.getCameraCharacteristics() without ever opening an active video feed.
How Voodoo Inspects Camera Hardware
1. Primary Call & API-Level Fallback Chain
Extracted from CameraCollector.kt. Uses Camera2 CameraManager (API 21+) to query CameraCharacteristics, with segregated legacy android.hardware.Camera support on Android 2.0–4.4:
// Excerpt from com.tool3.hardwareinfo.categories.camera.CameraCollector.kt
val cameraManager = context.getSystemService(Context.CAMERA_SERVICE) as CameraManager
for (cameraId in cameraManager.cameraIdList) {
val chars = cameraManager.getCameraCharacteristics(cameraId)
val facing = chars.get(CameraCharacteristics.LENS_FACING)
val hardwareLevel = chars.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL)
val sensorSizeMm = chars.get(CameraCharacteristics.SENSOR_INFO_PHYSICAL_SIZE)
val pixelArraySize = chars.get(CameraCharacteristics.SENSOR_INFO_PIXEL_ARRAY_SIZE)
// Inspect multi-camera physical sub-sensors (API 28+)
val physicalCameraIds = if (Build.VERSION.SDK_INT >= 28) {
chars.physicalCameraIds
} else {
emptySet()
}
}
2. Permission & Privilege Gate
On modern Android (API 21+), querying CameraCharacteristics requires zero runtime permissions. The OS allows inspecting sensor dimensions, focal lengths, apertures, and hardware levels without granting CAMERA permission.
3. Interpretation & Normalization Logic
- Hardware Level Classification: Normalizes numeric constants into standardized levels:
LEGACY(Camera 1 compatibility),LIMITED(basic Camera2),FULL(per-frame manual control), andLEVEL_3(RAW re-processing and YUV output streams). - Field of View (FOV) Geometry: Calculates horizontal and vertical FOV using trigonometry from focal length and physical sensor millimeter dimensions:
2 * atan(sensorDimension / (2 * focalLength)). - 35mm Equivalent Focal Length: Compares diagonal sensor size against full-frame 35mm film (43.27 mm diagonal crop factor).
4. Availability-State Triggers
- Multi-camera physical sub-sensor queries on Android < 9.0 trigger
AvailabilityState.UNSUPPORTED. - Optical image stabilization (OIS) reports
AvailabilityState.UNAVAILABLEon lenses without voice coil motors.
Subsystem Field Inventory
| Field ID | Display Name | Type | Primary Source / API | Min API |
|---|---|---|---|---|
| camera.camera_count | Camera Count & Breakdown | STRING | CameraManager.getCameraIdList() | API 21 |
| camera.hardware_level | Hardware Support Level | STRING | CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL | API 21 |
| camera.sensor_physical_size | Sensor Physical Size (mm) | STRING | CameraCharacteristics.SENSOR_INFO_PHYSICAL_SIZE | API 21 |
| camera.pixel_array_size | Raw Pixel Array Resolution | STRING | CameraCharacteristics.SENSOR_INFO_PIXEL_ARRAY_SIZE | API 21 |
| camera.focal_lengths | Optical Focal Lengths (mm) | LIST | CameraCharacteristics.LENS_INFO_AVAILABLE_FOCAL_LENGTHS | API 21 |
| camera.apertures | Available Apertures (f-number) | LIST | CameraCharacteristics.LENS_INFO_AVAILABLE_APERTURES | API 21 |