The two tests are in the isActive and launch method of the Phone profile where it checks the two places where the Config singleton class is used. I have highlighted in red the bits that are important in my sources.