Package 

Class BuildProfile


  • 
    public final class BuildProfile
    
                        

    A flat snapshot of the android.os.Build fields the emulator heuristic reads.

    This type exists so the heuristic is a pure function. Build is a class of static finals that cannot be set in a JVM unit test, so a detector reading it directly is only testable on a real device or under Robolectric. Snapshotting first means the interesting half (the scoring logic) runs in plain JUnit and the untestable half is one trivial assignment.