计算机应用 ›› 2016, Vol. 36 ›› Issue (11): 3178-3182.DOI: 10.11772/j.issn.1001-9081.2016.11.3178

• 计算机软件技术 • 上一篇    下一篇

基于APK的Android应用程序GUI遍历自动化方法

张胜桥, 尹青, 常瑞, 朱晓东   

  1. 数学工程与先进计算国家重点实验室(信息工程大学), 郑州 450000
  • 收稿日期:2016-04-18 修回日期:2016-06-27 出版日期:2016-11-10 发布日期:2016-11-12
  • 通讯作者: 张胜桥
  • 作者简介:张胜桥(1990-),男,山东菏泽人,硕士研究生,主要研究方向:逆向工程、信息安全;尹青(1968-),女,江苏徐州人,教授,博士,主要研究方向:信息安全;常瑞(1981-),女,河南郑州人,副教授,博士研究生,主要研究方向:嵌入式系统安全;朱晓东(1991-),男,山东潍坊人,硕士研究生,主要研究方向:逆向工程。

APK-based automatic method for GUI traversal of Android applications

ZHANG Shengqiao, YIN Qing, CHANG Rui, ZHU Xiaodong   

  1. State Key Laboratory of Mathematical Engineering and Advanced Computing(Information Engineering University), Zhengzhou Henan 450000, China
  • Received:2016-04-18 Revised:2016-06-27 Online:2016-11-10 Published:2016-11-12

摘要: 为了提高应用程序自动执行技术的图形用户界面(GUI)覆盖率和自动化程度以满足Android应用程序动态安全分析和GUI测试的需求,提出了一种基于应用程序安装包(APK)的Android应用程序GUI遍历自动化方法。该方法通过动态地捕捉目标应用程序GUI并模拟用户行为与之交互,驱动应用程序自动执行。基于开源框架Appium实现了一个能够自动化遍历轻量Android应用程序GUI的跨平台原型工具。实验结果表明,该自动化方法能够获得较高的GUI覆盖率。

关键词: 图形用户界面, 图形用户界面遍历, 行为模拟, 高覆盖率, 移动应用程序, Android

Abstract: In order to improve the coverage and automation level of Graphical User Interface (GUI) by automatic execution technology for Android applications, an Android Package (APK)-based automatic traversal method which meets the requirements of dynamic security analysis and GUI testing was proposed. The GUI of the target application was captured dynamically, and the interaction of user actions was simulated with applications running automatically. Based on the open source project of Appium, a platform-crossed prototype tool of automatic traversal method which can automatically traverse GUIs of lightweight Android applications was implemented. The experimental results show that the proposed method with a high coverage is feasible and effective.

Key words: Graphical User Interface (GUI), GUI traversal, action simulation, high coverage, mobile application, Android

中图分类号: