Skip to main content
QUICK REVIEW

[Paper Review] StoryDroid: Automated Generation of Storyboard for Android Apps

Sen Chen, Lingling Fan|arXiv (Cornell University)|Feb 1, 2019
Advanced Malware Detection TechniquesComputer Science38 references7 citations
TL;DR

StoryDroid is a system that automatically generates visual storyboards for Android apps by extracting activity transition graphs, rendering UI pages from static and dynamic layout code, and inferring semantic names for obfuscated activities. It enables efficient competitive analysis for product managers, designers, and developers by linking UI screens to their corresponding implementation code, significantly improving app exploration and inspiration gathering.

ABSTRACT

Mobile apps are now ubiquitous. Before developing a new app, the development team usually endeavors painstaking efforts to review many existing apps with similar purposes. The review process is crucial in the sense that it reduces market risks and provides inspiration for app development. However, manual exploration of hundreds of existing apps by different roles (e.g., product manager, UI/UX designer, developer) in a development team can be ineffective. For example, it is difficult to completely explore all the functionalities of the app in a short period of time. Inspired by the conception of storyboard in movie production, we propose a system, StoryDroid, to automatically generate the storyboard for Android apps, and assist different roles to review apps efficiently. Specifically, StoryDroid extracts the activity transition graph and leverages static analysis techniques to render UI pages to visualize the storyboard with the rendered pages. The mapping relations between UI pages and the corresponding implementation code (e.g., layout code, activity code, and method hierarchy) are also provided to users. Our comprehensive experiments unveil that StoryDroid is effective and indeed useful to assist app development. The outputs of StoryDroid enable several potential applications, such as the recommendation of UI design and layout code.

Motivation & Objective

  • To address the inefficiency of manual exploration of hundreds of similar Android apps during competitive analysis.
  • To overcome challenges in reverse-engineering complex apps, including incomplete activity transition graphs and obfuscated activity names.
  • To provide a unified visualization of app behavior, UI layout, and implementation code for different stakeholders.
  • To enable faster and more systematic understanding of existing apps for feature inspiration and implementation guidance.
  • To support the development of recommendation systems for UI design and code reuse through a large-scale storyboard database.

Proposed method

  • Extracts activity transition graphs (ATG) from APKs using static analysis, including transitions in fragments and inner classes to improve completeness.
  • Renders UI pages by combining static layout files with dynamically generated components, enabling visual representation of each screen.
  • Infers meaningful semantic names for obfuscated activity names by comparing layout hierarchies against a database of 4,426 open-source apps.
  • Maps each rendered UI page to its corresponding implementation code, including layout files, activity code, and method call hierarchies.
  • Uses a hybrid static-dynamic analysis approach to ensure coverage of both static and runtime-rendered UI elements.
  • Constructs a comprehensive app understanding framework that links app behavior (ATG), visual UI, and source code for cross-role analysis.

Experimental results

Research questions

  • RQ1Can a system automatically generate a complete and semantically meaningful storyboard for Android apps from reverse-engineered APKs?
  • RQ2How effectively can static analysis extract activity transitions and UI components, especially in the presence of dynamic UI rendering?
  • RQ3To what extent can semantic names be inferred for obfuscated activities using layout hierarchy comparison with a large open-source database?
  • RQ4How useful is the generated storyboard in supporting competitive analysis for product managers, UI/UX designers, and developers?
  • RQ5What are the practical applications of a large-scale storyboard database in recommending UI designs and implementation code?

Key findings

  • StoryDroid successfully extracts and visualizes activity transition graphs with high completeness, even for complex apps involving fragments and inner classes.
  • The system achieves effective UI rendering by combining static layout files with dynamically extracted components, ensuring accurate visual representation of each screen.
  • Semantic name inference using layout hierarchy comparison significantly improves the understandability of obfuscated activity names, enhancing usability for non-technical stakeholders.
  • User studies confirm that StoryDroid enables faster and more effective exploration of competitor apps compared to manual review, especially for feature discovery and navigation understanding.
  • The system's outputs support practical applications such as recommending UI layouts and code patterns, demonstrating potential for integration into app development pipelines.
  • The approach outperforms dynamic-only analysis in coverage and is more scalable than existing tools that require app execution or are limited to open-source apps.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.