文摘
Smart phones have occupied an irreplaceable place in our daily life. As software in mobile systems is a far cry from software in traditional computer operating systems, we can’t directly use existing technologies to verify the correctness and reliability of mobile applications. JPF (Java Pathfinder) is a tool to make model detection of Java programs, but it doesn’t support the detection of Android programs. This paper proposes a method which can make JPF support Android in bug detection, especially in the detection of no sleep bugs of energy leak. Using this tool, we analyzed ten open-source Android applications and successfully detected common bugs and no sleep bugs of energy leak, which means we have made progress in enhancing detection speed and in lowering down misjudgement rate.