首页> 外文期刊>Computer Languages, Systems & Structures >A lightweight approach to component-level exception mechanism for robust android apps
【24h】

A lightweight approach to component-level exception mechanism for robust android apps

机译:健壮的Android应用程序的轻量级组件级异常机制方法

获取原文
获取原文并翻译 | 示例
       

摘要

Recent researches have reported that Android programs are vulnerable to unexpected exceptions. One reason is that the current design of Android platform solely depends on Java exception mechanism, which is unaware of the component-based structure of Android programs. This paper proposes a component-level exception mechanism for programmers to build robust Android programs with. With the mechanism, they can define an intra-component handler for each component to recover from exceptions, and they can propagate uncaught exceptions to caller component along the reverse of component activation flow. Theoretically, we have formalized an Android semantics with exceptions to prove the robustness property of the mechanism. In practice, we have implemented the mechanism with a domain-specific library that extends existing Android components. This lightweight approach does not demand the change of the Android platform. In our experiment with Android benchmark programs, the library is found to catch a number of runtime exceptions that would otherwise get the programs terminated abnormally. We also measure the overhead of using the library to show that it is very small. Our proposal is a new mechanism for defending Android programs from unexpected exceptions. (C) 2015 Elsevier Ltd. All rights reserved.
机译:最近的研究报告称,Android程序容易受到意外异常的影响。原因之一是,当前的Android平台设计仅取决于Java异常机制,而该机制并未意识到Android程序的基于组件的结构。本文提出了一种组件级异常机制,供程序员用来构建健壮的Android程序。通过这种机制,他们可以为每个组件定义一个组件内处理程序以从异常中恢复,并且可以按照组件激活流程的相反顺序将未捕获的异常传播到调用者组件。从理论上讲,我们已经对Android语义进行了形式化处理,以证明该机制的鲁棒性。实际上,我们已经通过扩展现有Android组件的特定于域的库实现了该机制。这种轻量级的方法不需要更改Android平台。在我们使用Android基准程序进行的实验中,发现该库捕获了许多运行时异常,否则这些异常会使程序异常终止。我们还测量了使用该库表明它很小的开销。我们的建议是一种保护Android程序免受意外异常的新机制。 (C)2015 Elsevier Ltd.保留所有权利。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号