得益于硬件技术的发展,智能手机感知信息的方式日益丰富。因而以智能手机自带的传感器件为出发点,以移动感知为基础,设计并开发了一款智能手机防盗软件。该软件针对智能手机在生活中的不同使用场景,利用手机自带的加速度传感器、环境光传感器、接近传感器以及手机内部的广播机制,通过分析从周围环境获取的实时数据来判断手机状态是否变化,从而实现不同的防盗模式。其中在通过加速度传感器输出值判断手机状态时,设计了三轴加速度从手机坐标系到参考坐标系的四元数转换算法,以利于客观统一地判断手机的运动状态。此外,通过手机内部短信广播的截获技术来判断设备是否收到短信以及短信内容是否为预设指令,实现对手机的远程控制。目前Android智能手机的市场占有率高达80%,因而以Android手机为例,实现了上述智能手机防盗软件。各项功能经过真机测试,均已达到预期效果。
With the development of hardware technologies, the methods of sensing information by smartphones have been greatly extended. This paper surveys smartphone built-in sensors and designs an anti-theft software based on mobile sensing of smartphone. In consideration of different usage scenarios, different patterns have been designed by using smartphone built-in acceleration sensor, light sensor, distance sensor and smartphone internal broadcasting mechanism. It can alert users by analyzing real-time data and judging the state of smartphone whether meet certain conditions. In the pattern where using the acceleration sensor, it designs coordinate quaternion transform algorithm from the body coordinates to the reference coordinates, in order to objectively determine the state of motion of the smartphone. At the same time, it applies background monitoring techniques to achieve remote control function. Nowadays the Android smartphones are more and more popular, so it develops the software based on Android. Tested on smartphone with Android operating system, the software can achieve anticipative functions.