Tagged articles
36 articles
Page 1 of 1
Ops Development & AI Practice
Ops Development & AI Practice
Jul 23, 2025 · Blockchain

How DeFi DEXes Work: From Order Books to AMMs Explained

This article breaks down the technical foundations of DeFi, explaining how smart contracts enable decentralized exchanges, comparing order‑book and automated market‑maker architectures, and detailing supporting components such as oracles, stablecoins, and lending protocols with concrete examples and formulas.

AMMBlockchainDEX
0 likes · 11 min read
How DeFi DEXes Work: From Order Books to AMMs Explained
Ops Development & AI Practice
Ops Development & AI Practice
Jul 21, 2025 · Industry Insights

Why Building a DEX Is Far More Than Writing Smart Contracts

Running a decentralized exchange requires extensive pre‑launch development, rigorous security audits, robust front‑end design, tokenomics planning, and continuous post‑launch operations such as infrastructure maintenance, security monitoring, liquidity management, and community governance.

DEXDeFiInfrastructure
0 likes · 7 min read
Why Building a DEX Is Far More Than Writing Smart Contracts
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.

AndroidDEXSecurity
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
Baidu App Technology
Baidu App Technology
Dec 12, 2022 · Mobile Development

How Baidu Shrunk Android App Size by Optimizing Dex Annotations

This article details Baidu's systematic approach to reducing Android APK size by analyzing Dex annotation types, defining removal targets, implementing a Titan‑Dex based optimizer, and automating detection and whitelist management with custom Lint rules, ultimately saving about 1.2 MB of Dex bytecode.

AndroidAnnotation OptimizationDEX
0 likes · 14 min read
How Baidu Shrunk Android App Size by Optimizing Dex Annotations
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.

AndroidDEXDynamic Loading
0 likes · 30 min read
Understanding Android Plugin Architecture and a Minimal Plugin Implementation
Baidu Geek Talk
Baidu Geek Talk
Jul 20, 2022 · Mobile Development

How Baidu’s Dex Line‑Number Optimization Shrinks Android APKs by 8%

This article examines Android Dex DebugInfo line‑number optimization, detailing the structure of DebugInfo, existing solutions, Baidu’s mapping‑based approach, R8 and Alipay techniques, and the resulting APK size reduction, while also describing the end‑to‑end pipeline for line‑number retracing in production.

APKSizeReductionAndroidDEX
0 likes · 23 min read
How Baidu’s Dex Line‑Number Optimization Shrinks Android APKs by 8%
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.

ARTAndroidD8
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.

AndroidDEXDebugInfo
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
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.

APKDEXMobile Development
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.

AndroidDEXDynamicLoading
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.

DEXMultidexandroid-versions
0 likes · 8 min read
Understanding Android's 64K Method Limit and Multidex Solutions
Tencent TDS Service
Tencent TDS Service
Nov 24, 2016 · Mobile Development

Boost Android Cold Start: Lessons from Redex and Interdex Optimization

After Facebook open‑sourced Redex, we explored its many optimizations and pitfalls, focusing on Interdex to reorder classes in the main dex, uncovering how class pre‑verification and hot‑patch instrumentation affect cold‑start performance, and sharing practical insights and remaining challenges for Android apps.

AndroidDEXInterdex
0 likes · 15 min read
Boost Android Cold Start: Lessons from Redex and Interdex Optimization
Tencent Music Tech Team
Tencent Music Tech Team
May 26, 2016 · Mobile Development

Understanding Android Gradle Build Process and Dex Generation: Practical Insights and Source Code Analysis

The article walks through Android Gradle’s three‑phase build cycle, explains how VariantManager, TaskManager and AndroidBuilder create and configure tasks, then dives into the class‑to‑dex conversion process, detailing common multi‑dex limits, troubleshooting steps, and custom Gradle tasks that shrink keep lists and analyze dependencies to avoid build failures.

AndroidBuild ProcessDEX
0 likes · 16 min read
Understanding Android Gradle Build Process and Dex Generation: Practical Insights and Source Code Analysis
Ctrip Technology
Ctrip Technology
Nov 4, 2015 · Mobile Development

Ctrip Android App Plugin Architecture and Dynamic Loading Framework

This article explains the motivations, design principles, compilation and runtime techniques of Ctrip's Android plugin‑based architecture and dynamic loading framework, detailing how it solves method‑count limits, improves build speed, enables hot‑deployment, and outlines the associated trade‑offs.

AAPTAndroidCtrip
0 likes · 19 min read
Ctrip Android App Plugin Architecture and Dynamic Loading Framework
Architect
Architect
Sep 7, 2015 · Information Security

Introducing dex: CoreOS Open Source OpenID Connect Identity Provider

CoreOS’s newly announced open‑source project dex is an OpenID Connect‑compliant identity provider that offers secure, standards‑based authentication across web, mobile, CLI and automation environments, with extensible connectors, robust security practices, and a real‑world deployment example at Tectonic.com.

AuthenticationDEXidentity provider
0 likes · 9 min read
Introducing dex: CoreOS Open Source OpenID Connect Identity Provider