期刊文献+

面向场景的安卓应用代码定位方法 被引量:2

Scenario-oriented Location Method of Android Applications
下载PDF
导出
摘要 在开发新的需求功能或维护已有代码的过程中,安卓应用开发者会尝试获取与特定主题功能相对应的代码片段并了解其逻辑结构。当涉及代码层次上的分析工作时,复杂的源代码结构以及开发者不良的代码风格将会导致开发者需要花费大量的时间去定位代码片段并理清实现逻辑。因此,找出一种能够快速定位到代码片段的方法对于开发者具有重要的实际意义。提出了一种面向场景的安卓应用代码定位方法,其目标是根据特定主题功能的执行场景,综合运用动态与静态相结合的分析技术来确定与该主题功能相关的代码片段。此方法的执行步骤包括主题功能执行轨迹的收集与分析、安卓应用源代码的静态分析、基于静态与动态方法信息的匹配与综合以及方法信息的可视化展现。基于该方法实现了一款插件工具,该工具支持用户便捷查找与主题功能相关的代码信息,并支持高亮标记用户所指定的方法片段。 During the process of implementing new requirements or maintaining existing project codes,Android application developers often try to acquire code fragments related to specific themes and understand their logical structures.As it involves analytical work on the code level,it costs developers much time to locate code fragments and sorts out the implementation logic due to the complexity of codes' structures and bad code style of developers.Therefore,it is important to find a method that can be used to locate the fragments quickly.In this paper,we proposed a scenario-oriented location method of Android applications.This method combines static analysis and dynamic analysis techniques according to an execution scenario of a specific theme,and then locates code fragments associated with the specific themes.The method comprises the steps of collecting and analyzing theme execution traces,static analyzing of Android source codes,information matching and synthesizing on top of static and dynamic methods,and visualizing the method information.We furthermore implemented a plug-in tool to facilitate the search process of codes' information with respect to specific theme and support the highlight of code fragments specified by developers.
作者 吕照进 沈立炜 赵文耘 LV Zhao-jin SHEN Li-wei ZHAO Wen-yun(School of Computer Science, Fudan University, Shanghai 201203, China Shanghai Key Laboratory of Data Science, Fudan University,Shanghai 201203, China)
出处 《计算机科学》 CSCD 北大核心 2017年第2期216-221,256,共7页 Computer Science
基金 国家自然科学基金:安卓应用开发中模式驱动的代码推荐与完成技术研究(61402113)资助
关键词 安卓应用 主题功能 动态分析 静态分析 特征定位 方法宿主关联图 方法调用图 Android application Theme function Dynamic analysis Static analysis Feature location Method host association graph Method call graph
  • 相关文献

同被引文献19

引证文献2

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部