-
public final class HardwareProfileA snapshot of the hardware, kept as plain data so the interesting half stays a pure function. Same reasoning as BuildProfile: the platform reads are untestable off-device, so they are a trivial assignment and the logic is not.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<String>sensorsprivate final List<String>camerasprivate final StringglesVersionprivate final IntegercpuCoresprivate final LongtotalRamMbprivate final LongtotalStorageGbprivate final StringkernelVersion
-
Method Summary
Modifier and Type Method Description final List<String>getSensors()"name|vendor" per sensor. final List<String>getCameras()"facing|orientation" per camera final StringgetGlesVersion()ConfigurationInfo.reqGlEsVersion, e.g. final IntegergetCpuCores()final LonggetTotalRamMb()total RAM, bucketed. final LonggetTotalStorageGb()total internal storage, bucketed to GB final StringgetKernelVersion()os.version.-
-
Method Detail
-
getSensors
final List<String> getSensors()
"name|vendor" per sensor. ⭐ The vendor strings are the emulator tell.
-
getCameras
final List<String> getCameras()
"facing|orientation" per camera
-
getGlesVersion
final String getGlesVersion()
ConfigurationInfo.reqGlEsVersion, e.g. "3.2"
-
getCpuCores
final Integer getCpuCores()
-
getTotalRamMb
final Long getTotalRamMb()
total RAM, bucketed. Exact bytes drift with kernel reservation.
-
getTotalStorageGb
final Long getTotalStorageGb()
total internal storage, bucketed to GB
-
getKernelVersion
final String getKernelVersion()
os.version. Deliberately EVIDENCE ONLY and NOT in the hash: it changes on every OTA, which would re-key a device that never changed.
-
-
-
-