Tag

R8

1 views collected around this technical thread.

DeWu Technology
DeWu Technology
Dec 9, 2024 · Fundamentals

Deadlock Caused by Do-While Loop in Plugin

A mobile app deadlock was traced to a do‑while loop introduced by a weaver plugin that concurrently copied method nodes, causing ASM label‑node mismatches; adding thread synchronization to the method‑cloning process resolved the issue and underscores the concurrency risks of bytecode instrumentation.

ConcurrencyR8Weaver
0 likes · 10 min read
Deadlock Caused by Do-While Loop in Plugin
DeWu Technology
DeWu Technology
Jan 17, 2024 · Mobile Development

Analysis of R8 Class Reflection Optimization and Obfuscation Issues in Android Builds

The article explains how a missing keep rule caused R8’s pre‑AGP 8 reflection optimizer to skip a class because its interface wasn’t in the allowed set, leading to the class name being obfuscated and mismatched in static‑block initialization via Class.forName, and describes the optimizer’s behavior and fixes.

AGPAndroidClassLoading
0 likes · 8 min read
Analysis of R8 Class Reflection Optimization and Obfuscation Issues in Android Builds
Kuaishou Frontend Engineering
Kuaishou Frontend Engineering
Oct 18, 2023 · Mobile Development

Why Upgrading to AGP 7.0.1 Increased APK Size and How We Fixed It

After upgrading Kuaishou's Android project from AGP 3.4.2 to 7.0.1, the APK size unexpectedly grew despite faster builds, leading to a deep investigation of Dex compression, R8 changes, and build tool versions, ultimately revealing a fastutil library mismatch that was resolved by forcing the correct version.

AGPAPK sizeAndroid
0 likes · 16 min read
Why Upgrading to AGP 7.0.1 Increased APK Size and How We Fixed It
JD Retail Technology
JD Retail Technology
Dec 23, 2022 · Mobile Development

Comprehensive Package Slimming and Governance Practices for JD Android App

This article details JD's Android app package‑size reduction journey, covering component analysis with APK Analyzer and zipinfo, dependency mapping via Gradle, a suite of slimming measures such as plugin‑to‑download, resource compression, R8, 7‑zip, and a systematic governance framework that ties component growth to enforceable size‑control policies, ultimately achieving over 30% reduction in APK size.

AndroidApp Size OptimizationGradle
0 likes · 24 min read
Comprehensive Package Slimming and Governance Practices for JD Android App
Baidu Geek Talk
Baidu Geek Talk
Jul 18, 2022 · Mobile Development

Baidu App APK Size Optimization: Fundamentals, Tools, and Practices

The article explains why reducing APK size improves download conversion and performance, then details a systematic, divide‑and‑conquer approach for Baidu App that trims Dex, resources, native libraries and ZIP overhead using tools such as R8, AndResGuard, ByteX, Booster and AGP, achieving a reduction from roughly 123 MB to 115 MB with up to 6 MB saved per batch and outlining plans to open‑source the utilities.

APK optimizationAndroidDex
0 likes · 17 min read
Baidu App APK Size Optimization: Fundamentals, Tools, and Practices
JD Retail Technology
JD Retail Technology
Jun 1, 2022 · Mobile Development

Migrating JD Android App to R8: Obfuscation Rules, v1 Signing Issues, and Build Process Pitfalls

This article details JD's Android app migration to the R8 compiler, explains differences between ProGuard and R8, analyzes the impact of the -useuniqueclassmembernames rule, addresses v1 signing loss after AGP 3.6.4 upgrade, and provides practical solutions for build‑process ordering and packaging pitfalls.

AGPAndroidProGuard
0 likes · 23 min read
Migrating JD Android App to R8: Obfuscation Rules, v1 Signing Issues, and Build Process Pitfalls
Baidu App Technology
Baidu App Technology
Mar 17, 2022 · Mobile Development

Baidu App APK Size Optimization: Principles, Tools, and Implementation

The Baidu App team applied a systematic, sustainable approach—combining Dex, resource, and native‑library optimizations with tools such as R8, ProGuard, AndResGuard, and custom compression pipelines—to shrink the APK by several megabytes, improve download conversion, and establish reusable mechanisms for future builds.

APKAndroidDex
0 likes · 20 min read
Baidu App APK Size Optimization: Principles, Tools, and Implementation
Sohu Tech Products
Sohu Tech Products
Jun 16, 2021 · Mobile Development

Android Code Obfuscation: ProGuard, R8, D8 and Build Process Deep Dive

This article provides a comprehensive guide to Android code obfuscation, covering the purpose and benefits of minification, detailed ProGuard/R8 configuration, resource shrinking, desugaring, D8/R8 internals, custom obfuscation dictionaries, and modular ProGuard rules for multi‑module projects.

AndroidD8Gradle
0 likes · 23 min read
Android Code Obfuscation: ProGuard, R8, D8 and Build Process Deep Dive
Sohu Tech Products
Sohu Tech Products
Apr 7, 2021 · Mobile Development

Android Code Obfuscation: ProGuard vs R8 and Configuration Guide

This article explains Android code obfuscation, compares ProGuard and R8, details their four core functions, shows how to enable or disable them via Gradle settings, discusses ProGuard rule syntax and sources, and provides best practices for modular projects and componentized obfuscation.

AndroidBuild ToolsDex
0 likes · 12 min read
Android Code Obfuscation: ProGuard vs R8 and Configuration Guide