首页 | 官方网站   微博 | 高级检索  
     

Android应用中Exported Activity测试途径研究
引用本文:王国珍,杨红丽.Android应用中Exported Activity测试途径研究[J].计算机系统应用,2018,27(9):262-267.
作者姓名:王国珍  杨红丽
作者单位:北京工业大学 信息学部, 北京 100124,北京工业大学 信息学部, 北京 100124
摘    要:Android系统提供了多种应用间交互机制,其中开放活动(Exported Activity,EA)不需要复杂的跨进程交互就可以被其他应用在运行时调用.现在很多研究主要关注GUI组件的功能性测试,但是在Android应用本身往往不会启动内部的开放活动,所以开放活动有时候很难被覆盖到.本文提出了一种系统化测试开放活动的方法,使用该方法可以生成一组代理应用作为测试驱动程序启动应用中的开放活动.首先,使用静态分析技术解析APK文件,提取出开放活动列表和启动它们需要数据的键值和类型;其次,将相应的数据填充到预先设置好的模板中,生成测试驱动应用.本文基于提出的测试方法开发了一款原型工具——EASTER,使用一些真实的应用进行了实验.实验结果显示,所有测试应用共有65个开放活动,其中有20个开放活动在被外部应用启动过程中存在漏洞.

关 键 词:测试驱动程序  开放活动  Android应用  系统化测试  程序分析
收稿时间:2018/1/28 0:00:00
修稿时间:2018/2/27 0:00:00

Research on Test Methods of Exported Android Activity
WANG Guo-Zhen and YANG Hong-Li.Research on Test Methods of Exported Android Activity[J].Computer Systems& Applications,2018,27(9):262-267.
Authors:WANG Guo-Zhen and YANG Hong-Li
Affiliation:Faculty of Information Technology, Beijing University of Technology, Beijing 100124, China and Faculty of Information Technology, Beijing University of Technology, Beijing 100124, China
Abstract:The Android system provides various mechanisms for interactions between apps, of which the exported activity is an activity that can be launched by other apps during runtime without complex inter-process communication. Most of the existing works on testing Android apps mainly focus on the functionalities bound to the GUI components in the app, while the app often does not include the GUI callbacks to activate its exported activities. This study proposes a method to systematically test the exported activities in the way of generating a set of agent apps as test drivers to launch these activities. It first statically analyzes the APK file to figure out the exported activities and extract the keys and types of their required data items, and then fills this corresponding data to a pre-set template to build the test drivers. All these proposed techniques are implemented into a prototype tool called EASTER. The preliminary experiments on several real-world apps show that without comprehensive testing, some exported activities are vulnerable to various external apps launches.
Keywords:test drivers  exported activity  Android application  systematically test  program analysis
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号