RomCompatibility
object RomCompatibility
Heuristic custom-ROM detection and cross-ROM safe property reads. Works on stock OEM, LineageOS, GrapheneOS, /e/OS, crDroid, PixelExperience, MIUI, etc.
Reads hidden android.os.SystemProperties via reflection (no public API) and combines ro.* properties with Build fields to classify the ROM and flag likely spoofing.
Privacy: build/ROM properties are OS-fingerprinting signals; sensitive values such as the vendor fingerprint are hashed. No runtime permission is required.
Functions
Link copied to clipboard
Classifies the running ROM and collects integrity/spoofing signals.
Link copied to clipboard
Safely reads a system property via reflection, returning default when unavailable.
Link copied to clipboard
Reads ro.build.reference.fingerprint, used by PixelProps-style spoofing layers.