Tagged articles
12 articles
Page 1 of 1
Sohu Tech Products
Sohu Tech Products
Feb 19, 2025 · Information Security

Replacing Xposed with a Gradle Plugin for Automated Android Privacy Checks

This article compares the traditional Xposed‑based dynamic privacy checker with a new Gradle‑plugin instrumentation approach, explains the design and implementation of the Transform API‑driven solution, shows performance metrics, provides usage instructions, and outlines automated testing and future improvements for Android apps.

ASMAndroidDynamic analysis
0 likes · 12 min read
Replacing Xposed with a Gradle Plugin for Automated Android Privacy Checks
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 2, 2024 · Mobile Development

Android APK Size Optimization: Removing Duplicate Resources and Image Compression with a Gradle Plugin

This article explains how the Android resources.arsc file is generated, identifies the problem of duplicate and uncompressed image resources in multi‑module projects, and presents a Gradle‑based solution that inserts a custom task after processReleaseResources to deduplicate resources, compress images using pngquant, guetzli and cwebp, and repack the .ap_ files, resulting in significant APK size reduction.

APKAndroidGradle Plugin
0 likes · 10 min read
Android APK Size Optimization: Removing Duplicate Resources and Image Compression with a Gradle Plugin
Watermelon Video Tech Team
Watermelon Video Tech Team
Jun 2, 2023 · Mobile Development

Custom Baseline Profiles Optimization for Android Apps: Design, Implementation, and Evaluation

This article describes the background of Android code execution, the evolution from full AOT to JIT+AOT and Cloud Profiles, the limitations of Google Baseline Profiles, and presents a custom Gradle‑based solution that generates baseline.prof files for all AGP versions, integrates with the installation pipeline, collaborates with OEMs, and demonstrates measurable cold‑start improvements.

AndroidAoTBaseline Profiles
0 likes · 29 min read
Custom Baseline Profiles Optimization for Android Apps: Design, Implementation, and Evaluation
Huolala Tech
Huolala Tech
May 30, 2023 · Mobile Development

How to Dynamically Manage Android Resources and Shrink APK Size

This article explains the design and implementation of a dynamic resource management system for Android apps, covering the motivation for reducing APK size, the architecture of the dynamicresbase, dynamicrescore, and dynamicresplugin modules, resource loading and application processes, Gradle plugin tasks, code transformation, and practical tips for handling .so libraries.

APK OptimizationAndroidDynamic Loading
0 likes · 31 min read
How to Dynamically Manage Android Resources and Shrink APK Size
HomeTech
HomeTech
Sep 26, 2022 · Mobile Development

Implementing Full Data Collection on Android Using Gradle Plugin, Transform API, and ASM

This article explains how to build a full‑tracking solution for Android by creating a Gradle plugin that registers a Transform, leveraging the Transform API and ASM bytecode instrumentation to automatically inject analytics code into click events and lifecycle callbacks, while covering the underlying concepts, implementation steps, and deployment process.

ASMAndroidGradle Plugin
0 likes · 35 min read
Implementing Full Data Collection on Android Using Gradle Plugin, Transform API, and ASM
JD Retail Technology
JD Retail Technology
Jul 6, 2022 · Mobile Development

R File Slimming and ID Inlining for Android Pluginized Applications

This article examines the problem of growing APK sizes caused by R.java files in JD.com's Android pluginized client, analyzes the feasibility of R file slimming, and presents a Gradle Transform and ASM‑based solution that inlines resource IDs, removes R files, and achieves 3‑5% size reduction without noticeable build‑time impact.

APK sizeAndroidGradle Plugin
0 likes · 12 min read
R File Slimming and ID Inlining for Android Pluginized Applications
Baidu Geek Talk
Baidu Geek Talk
Feb 28, 2022 · Mobile Development

APK Package Size Optimization and Resource Obfuscation for Android Plugins

To keep Android plugins lightweight as they grow, developers should analyze and obfuscate resource files—using a custom AndroidResGuard extension that adds a fixed package ID and a mapping table protocol—to shrink the resources.arsc constant pool, integrate the changes via Gradle, verify with gray releases, and achieve roughly an 8% size reduction while ensuring whitelist compliance.

APK size optimizationAndroidGradle Plugin
0 likes · 11 min read
APK Package Size Optimization and Resource Obfuscation for Android Plugins
vivo Internet Technology
vivo Internet Technology
Dec 1, 2021 · Mobile Development

Bytecode and Reference Detection for Android Apps: Principles, Implementation, and Gradle Plugin

The article explains how bytecode‑level reference detection—implemented via a custom Gradle plugin that uses JavaAssist or ASM to scan compiled .class files for missing or inaccessible methods, fields, and classes—can automatically catch runtime‑crash‑inducing errors in large modular Android projects, offering configurable strict or warning modes to enhance build safety.

AndroidGradle PluginJavaassist
0 likes · 18 min read
Bytecode and Reference Detection for Android Apps: Principles, Implementation, and Gradle Plugin
Beike Product & Technology
Beike Product & Technology
Sep 30, 2021 · Mobile Development

Incremental Code Coverage Plugin for Android Using JaCoCo: Design and Implementation

This article describes the design and implementation of a Gradle plugin that extends JaCoCo to collect incremental code‑coverage data for Android applications, covering project background, significance, JaCoCo injection mechanisms, compile‑time instrumentation, runtime data handling, report generation, and practical results.

Gradle PluginJaCoCobytecode instrumentation
0 likes · 19 min read
Incremental Code Coverage Plugin for Android Using JaCoCo: Design and Implementation
Youzan Coder
Youzan Coder
Feb 5, 2021 · Mobile Development

Savitar 2.0: Incremental Android Compilation Solution – Design, Features, and Performance

Savitar 2.0 is an incremental Android compilation system that combines a GUI plugin, a dynamically updatable Runner, a Gradle project‑support plugin, and external tools to compile only changed code, achieving 15‑second builds with over 92% success, saving more than 535 hours, while adding one‑click, MultiDex, and Kotlin internal support and addressing dependency issues, with plans for CLI, offline mode, and open‑source release.

AndroidGradle PluginPerformance Optimization
0 likes · 13 min read
Savitar 2.0: Incremental Android Compilation Solution – Design, Features, and Performance
Tencent Music Tech Team
Tencent Music Tech Team
Nov 6, 2020 · Mobile Development

Design and Implementation of an Incremental Compilation Component for Android Projects

The team built a low‑intrusion Gradle plugin that detects changed source and resource files, performs precise dependency analysis, leverages aapt2 for incremental resource compilation, and injects updated Dex and assets into the running app, cutting full Android builds from 418 seconds to 13 seconds and boosting daily developer productivity on large projects such as QQ Music.

AndroidBuild OptimizationDynamic Loading
0 likes · 23 min read
Design and Implementation of an Incremental Compilation Component for Android Projects
58 Tech
58 Tech
Jun 15, 2018 · Mobile Development

Android Implementation of a No‑Tracking User Behavior Analysis SDK (WMDA)

This article details the design, technology selection, and implementation of WMDA, a no‑tracking (no‑annotation) user‑behavior analysis SDK for Android, covering bytecode‑instrumentation via a Gradle plugin, event collection for activities, fragments, and clicks, as well as processing, storage, reporting, and current limitations.

AndroidData AnalyticsEvent Collection
0 likes · 15 min read
Android Implementation of a No‑Tracking User Behavior Analysis SDK (WMDA)