Skip to main content
QUICK REVIEW

[Paper Review] Trimming Mobile Applications for Bandwidth-Challenged Networks in Developing Regions

Qinge Xie, Qingyuan Gong|arXiv (Cornell University)|Dec 3, 2019
ICT in Developing CommunitiesComputer Science24 references5 citations
TL;DR

This paper proposes automated techniques to trim bloat in Android apps by identifying and removing unused code and resources, significantly reducing app size. Using functionally equivalent mini-programs as benchmarks, the authors validate their method on 2,617 of 2,920 tested apps, achieving 60–80% reductions in Java code size and over 5MB savings in 70% of apps, with some seeing reductions exceeding 20MB.

ABSTRACT

Despite continuous efforts to build and update network infrastructure, mobile devices in developing regions continue to be constrained by limited bandwidth. Unfortunately, this coincides with a period of unprecedented growth in the size of mobile applications. Thus it is becoming prohibitively expensive for users in developing regions to download and update mobile apps critical to their economic and educational development. Unchecked, these trends can further contribute to a large and growing global digital divide. Our goal is to better understand the source of this rapid growth in mobile app code size, whether it is reflective of new functionality, and identify steps that can be taken to make existing mobile apps more friendly bandwidth constrained mobile networks. We hypothesize that much of this growth in mobile apps is due to poor resource/code management, and do not reflect proportional increases in functionality. Our hypothesis is partially validated by mini-programs, apps with extremely small footprints gaining popularity in Chinese mobile networks. Here, we use functionally equivalent pairs of mini-programs and Android apps to identify potential sources of "bloat," inefficient uses of code or resources that contribute to large package sizes. We analyze a large sample of popular Android apps and quantify instances of code and resource bloat. We develop techniques for automated code and resource trimming, and successfully validate them on a large set of Android apps. We hope our results will lead to continued efforts to streamline mobile apps, making them easier to access and maintain for users in developing regions.

Motivation & Objective

  • Address the growing digital divide caused by increasing mobile app sizes in bandwidth-constrained developing regions.
  • Investigate whether the rapid growth in app size reflects proportional functional improvements or is due to code and resource bloat.
  • Develop automated techniques to identify and remove unused code and resources in Android apps to reduce package size.
  • Validate the effectiveness of trimming techniques on a large sample of real-world Android applications.
  • Promote the design of lightweight app platforms and tools that prioritize low-bandwidth usability from the start.

Proposed method

  • Use functionally equivalent mini-programs (e.g., WeChat mini-programs) as size benchmarks to identify bloat in full Android apps.
  • Apply reverse engineering tools (dex2jar, Apktool, enjarify) to decompile Android APKs into readable code and resource structures.
  • Automatically detect and remove unused Java code and redundant resources (e.g., unused images, layouts, strings) via static analysis.
  • Repackage trimmed apps and validate functionality through automated testing to ensure correctness post-trimming.
  • Leverage existing tools like ProGuard and Android Lint to guide developers in preventing bloat during development.
  • Measure size reductions in code and resources across a large dataset of 3,200 popular Android apps.

Experimental results

Research questions

  • RQ1To what extent is the growth in Android app size driven by functional improvements versus code and resource bloat?
  • RQ2How much of the code and resource bloat in Android apps can be automatically identified and removed without breaking functionality?
  • RQ3What are the key sources of bloat in modern Android applications, and how do they compare to lightweight alternatives like mini-programs?
  • RQ4Can automated trimming techniques preserve app functionality while achieving significant size reductions?
  • RQ5What are the practical limitations of automated app trimming due to obfuscation, invalid bytecode, or encryption?

Key findings

  • Of 2,920 Android apps that passed preprocessing, 2,617 (89.62%) passed validation and operated correctly after automated trimming.
  • More than 70% of the trimmed apps experienced a reduction of over 5MB in redundant code, with some seeing reductions exceeding 20MB.
  • Code size reductions ranged from 60% to 80% across most apps, indicating substantial potential for size optimization.
  • Over half of Android apps had more than 50% of their asset resources and over 80% of their res resources classified as redundant.
  • The study confirms that much of the app bloat is due to poor resource and code management rather than functional expansion.
  • WeChat mini-programs, with a 2MB size cap, demonstrate that highly optimized, lightweight app platforms are feasible and effective in bandwidth-constrained environments.

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.