Tag

Dex

0 views collected around this technical thread.

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
Baidu Tech Salon
Baidu Tech Salon
Jul 4, 2023 · Information Security

Implementation and Practice of DEX‑VMP Code Protection for Android Applications

The article details how Android developers can protect APK dex files by progressively hardening code—using dynamic loading, hooking, instruction extraction, java‑to‑C++ conversion, and ultimately DEX‑VMP virtual machine encryption—while outlining implementation steps, custom opcodes, JNI integration, and addressing compatibility and performance trade‑offs.

AndroidDexVMP
0 likes · 17 min read
Implementation and Practice of DEX‑VMP Code Protection for Android Applications
Baidu Geek Talk
Baidu Geek Talk
Jun 28, 2023 · Information Security

DEX‑VMP Based Android Code Protection: Design, Implementation, and Analysis

The paper presents a DEX‑VMP scheme that encrypts Dalvik bytecode and executes it via a custom virtual machine and JNI bridge, merging the strengths of dynamic loading, hooking, instruction extraction, and java‑to‑C++ conversion while highlighting compatibility issues, performance overhead, and the need for selective protection of high‑value Android methods.

AndroidDexJNI
0 likes · 17 min read
DEX‑VMP Based Android Code Protection: Design, Implementation, and Analysis
Baidu Geek Talk
Baidu Geek Talk
Dec 19, 2022 · Mobile Development

Dex Annotation Optimization for Baidu APP Android Package

In the second part of Baidu’s APK‑size‑optimization series, the team uses the Titan‑Dex framework to strip unnecessary build‑type and system Dex annotations—such as generic signatures and class‑relationship metadata—while automatically generating a whitelist via custom Lint detectors, ultimately shrinking the final Dex by about 1.2 MB.

AndroidAnnotation OptimizationDex
0 likes · 14 min read
Dex Annotation Optimization for Baidu APP Android Package
58 Tech
58 Tech
Nov 3, 2022 · Mobile Development

Understanding Android Plugin Architecture and a Minimal Plugin Implementation

This article explains the fundamentals of Android pluginization, covering class loading, resource handling, Dex and OAT formats, security considerations, and presents a lightweight plugin framework used by 58.com to reduce app size and enable dynamic updates.

AndroidClassLoaderDex
0 likes · 30 min read
Understanding Android Plugin Architecture and a Minimal Plugin Implementation
iQIYI Technical Product Team
iQIYI Technical Product Team
Aug 12, 2022 · Mobile Development

Analysis and Solution of Inline Crash in Android TV Plugin Architecture

The article explains that Android TV plugins can crash on Android 9 when the ART runtime inlines methods across dex files after an upgrade, and proposes a build‑time fix that scans for vulnerable call sites and injects lightweight try‑catch code to disable inlining, eliminating the crash.

Android TVDexHot Update
0 likes · 17 min read
Analysis and Solution of Inline Crash in Android TV Plugin Architecture
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
OPPO Kernel Craftsman
OPPO Kernel Craftsman
May 13, 2022 · Mobile Development

Deep Dive into the Android Dex File Format

The article explains the Android Dex format, its compact bytecode advantages, how d8 generates Dex files, details each structural component—from header and ID tables to class data and bytecode—covers encoding schemes, endianness, and demonstrates inspection with the dexdump tool for deeper ART understanding.

AndroidD8DEX format
0 likes · 9 min read
Deep Dive into the Android Dex File Format
Baidu App Technology
Baidu App Technology
Mar 28, 2022 · Mobile Development

Dex DebugInfo Line Number Optimization in Android Applications

The article explains how Baidu’s Dex line-number optimization replaces original line numbers with compact PC-based mappings, unifies debug_info_items, and uses a server-side mapping file to shrink DebugInfo by roughly 8% of the Dex size while keeping stack-trace line numbers fully recoverable.

AndroidDebugInfoDex
0 likes · 25 min read
Dex DebugInfo Line Number Optimization in Android Applications
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
ByteDance Terminal Technology
ByteDance Terminal Technology
Feb 17, 2022 · Mobile Development

DexInjector: Direct APK (dex) Instrumentation Tool and Technical Design

This article introduces DexInjector, a tool for directly instrumenting Android APK dex files to insert logging, performance monitoring, and third‑party hooks without recompiling, explains the underlying technical research, design choices, implementation details, handling of method limits, string jumbo, obfuscation, class conflicts, and provides code examples and workflow diagrams.

APKAndroidDex
0 likes · 23 min read
DexInjector: Direct APK (dex) Instrumentation Tool and Technical Design
DeWu Technology
DeWu Technology
Jan 10, 2022 · Mobile Development

APK Package Size Optimization and Monitoring Platform for Android Apps

The platform optimizes Android APK size by shrinking resources, compressing images, filtering native libraries, and applying selective byte‑code reductions, then continuously monitors package composition, trends, and business‑line usage, alerting teams to abnormal growth while preserving functionality for large‑scale apps.

APKAndroidDex
0 likes · 13 min read
APK Package Size Optimization and Monitoring Platform for Android Apps
Sohu Tech Products
Sohu Tech Products
Oct 20, 2021 · Information Security

Overview of Android App Hardening and Unpacking Techniques Across Generations

This article provides a comprehensive overview of Android app hardening methods, detailing the evolution from first‑generation dex and so protection to advanced code virtualization, and outlines various unpacking (脱壳) techniques—including memory dump, dynamic debugging, hook‑based and custom ROM approaches—used to bypass these protections.

AndroidDexFrida
0 likes · 11 min read
Overview of Android App Hardening and Unpacking Techniques Across Generations
vivo Internet Technology
vivo Internet Technology
May 26, 2021 · Mobile Development

Understanding DEX, VDEX, ODEX and ARouter Optimization in Android Development

The article explains Android’s DEX compilation flow, the transformation of DEX into VDEX and ODEX during ART pre‑optimization, why ODEX lacks the original classes.dex causing ARouter routing failures, and how disabling dex stripping in the build restores the missing classes for stable navigation.

ARouterAndroidDex
0 likes · 12 min read
Understanding DEX, VDEX, ODEX and ARouter Optimization in Android Development
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
JD Retail Technology
JD Retail Technology
Dec 18, 2019 · Mobile Development

APK Resource Analysis and Optimization Using Python

This article explains how to use Python to analyze Android APK packages, extract basic statistics, identify optimizable resources such as oversized images, duplicate files, and unused assets, and provide data‑driven guidance for reducing APK size and improving distribution efficiency.

APKDexPython
0 likes · 22 min read
APK Resource Analysis and Optimization Using Python
360 Tech Engineering
360 Tech Engineering
Jul 15, 2019 · Mobile Development

Detailed Analysis of Android ClassLoader Loading Mechanism

This article provides an in‑depth examination of Android's ClassLoader architecture, explaining how BaseDexClassLoader.findClass() and ClassLoader.loadClass() locate and load classes, with step‑by‑step source code analysis of loadClass, findLoadedClass, findClass, DexPathList, DexFile, and native class definition processes.

AndroidClassLoaderDex
0 likes · 11 min read
Detailed Analysis of Android ClassLoader Loading Mechanism
Youzan Coder
Youzan Coder
Nov 16, 2018 · Mobile Development

Article | Zhao Hengyu on Mobile

The article explains what a Dex file is, how it is produced from Java .class files via the dx tool after JVM compilation, and why understanding Dex is crucial for Android tasks such as APK slimming, hot‑fixes, plugin architecture, app hardening, reverse engineering and overcoming the 64K method limit.

AndroidAndroid RuntimeDex
0 likes · 13 min read
Article | Zhao Hengyu on Mobile
Snowball Engineer Team
Snowball Engineer Team
Mar 2, 2018 · Mobile Development

Understanding Android's 64K Method Limit and Multidex Solutions

This article explains the origin of Android's 64K method limit, how it varies across OS versions, and evaluates several approaches—including Google Multidex, asynchronous child‑process loading, plugin architectures, and lazy loading—to help developers choose the most suitable solution for their app.

AndroidDexMultidex
0 likes · 8 min read
Understanding Android's 64K Method Limit and Multidex Solutions