Tagged articles
45 articles
Page 1 of 1
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
JD Tech
JD Tech
Aug 16, 2023 · Mobile Development

APK Shrinking Practices for JD Finance Android App

This article details the systematic reduction of the JD Finance Android app's APK size from 117 MB to 74 MB between 2019 and 2022, covering background analysis, APK and SDK component breakdown, a series of optimization techniques—including image processing, resource inlining, compression tools, dynamic SO loading, and pluginization—plus governance, results, and future plans.

APKAndroidGradle
0 likes · 20 min read
APK Shrinking Practices for JD Finance Android App
DeWu Technology
DeWu Technology
Jul 19, 2023 · Mobile Development

Resource Optimization Practices in DeWu App: Plugins, Image Compression, Deduplication, and ARSC Shrinking

DeWu reduces its APK size by removing unused plugin resources, compressing images with WebP, Guetzli, PNGQuant and Gifsicle, deduplicating and obfuscating ARSC entries, applying 7‑zip compression, delivering large assets dynamically, and continuously cleaning unused resources through compile‑time checks and runtime scanning.

APKARSCAndroid
0 likes · 15 min read
Resource Optimization Practices in DeWu App: Plugins, Image Compression, Deduplication, and ARSC Shrinking
37 Interactive Technology Team
37 Interactive Technology Team
May 8, 2023 · Information Security

Android Reverse Engineering: Process, Tools, and Code Examples

Android reverse engineering involves extracting an APK, decompiling it with tools like apktool, dex2jar, or JADX, analyzing and modifying Smali or Java code, recompiling and signing the package with jarsigner, and testing the changes, while using adb commands to retrieve the original file and emphasizing deeper analysis for robust security.

APKAPKToolAndroid
0 likes · 10 min read
Android Reverse Engineering: Process, Tools, and Code Examples
JD Cloud Developers
JD Cloud Developers
Mar 28, 2023 · Mobile Development

How We Cut a 117 MB Android App to 74 MB: Proven APK Shrink Strategies

Facing rapid growth of its Android app size beyond 117 MB, JD Finance implemented a comprehensive APK slimming project in 2022, analyzing APK components, SDKs, and ZIP structure, then applying image optimization, R‑file inlining, resource obfuscation, dynamic SO loading, and build‑time configurations to reduce the package to 74 MB and improve download conversion rates.

APKAndroidApp Size
0 likes · 20 min read
How We Cut a 117 MB Android App to 74 MB: Proven APK Shrink Strategies
Baidu Geek Talk
Baidu Geek Talk
Aug 3, 2022 · Mobile Development

How Baidu App Shrinks Android APK Size with Advanced Resource Optimizations

This article details Baidu's multi‑step Android APK resource‑size reduction strategy, covering the structure of APK resources, built‑in AAPT2 optimizations, custom path and filename shortening, resource‑name collapsing, sparse entry encoding, image compression, duplicate‑resource handling, and the impact of AAB and Jetpack Compose on overall package size.

AAPT2APKAndroid
0 likes · 21 min read
How Baidu App Shrinks Android APK Size with Advanced Resource Optimizations
Baidu App Technology
Baidu App Technology
Aug 2, 2022 · Mobile Development

Baidu App Android APK Resource Optimization Practices

The article details Baidu App’s third‑stage Android APK size reduction, explaining the res/ and assets structure, reviewing AGP’s OptimizeResources, ShrinkResources and new flags, and describing a custom AAPT2‑based tool that shortens paths and filenames, removes extensions, collapses names, uses sparse encoding, integrates third‑party guards and image‑compression techniques to significantly shrink the package.

AAPT2APKAndroid
0 likes · 19 min read
Baidu App Android APK Resource Optimization Practices
Dada Group Technology
Dada Group Technology
Jul 28, 2022 · Mobile Development

How to Shrink Android APK Size: Proven Strategies and Tools

This article details a comprehensive, step‑by‑step approach to reducing Android APK size—including library pruning, resource compression, class file optimization, and automated monitoring—to keep app packages lightweight and prevent size regression over successive releases.

APKAndroidApp Size
0 likes · 14 min read
How to Shrink Android APK Size: Proven Strategies and Tools
IT Services Circle
IT Services Circle
May 28, 2022 · Information Security

Xiaomi Engineer’s AOSP Commit to Block Shell Access to Installed APKs Rejected

An AOSP commit proposed by a Xiaomi engineer to prohibit shell extraction of installed APKs—citing potential IP leakage—was rejected after receiving only the author’s support and two opposing votes, with reviewers arguing that such restrictions are ineffective, could be bypassed, and should be handled via DRM or device‑specific policies.

AOSPAPKDRM
0 likes · 3 min read
Xiaomi Engineer’s AOSP Commit to Block Shell Access to Installed APKs Rejected
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
BaiPing Technology
BaiPing Technology
Jan 17, 2022 · Mobile Development

How to Ensure Your Android App Supports 64‑Bit ABI and Pass Store Requirements

This guide explains why Android apps must adopt 64‑bit architectures, outlines market mandates, describes the ABI landscape, shows how to detect missing 64‑bit native libraries with Gradle scripts or the EasyPrivacy plugin, and provides step‑by‑step instructions for updating build configurations, testing, and publishing compliant APKs or App Bundles.

64-bitAPKAndroid
0 likes · 13 min read
How to Ensure Your Android App Supports 64‑Bit ABI and Pass Store Requirements
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
ByteDance Dali Intelligent Technology Team
ByteDance Dali Intelligent Technology Team
Oct 20, 2021 · Mobile Development

Bypassing Android dex2oat Restrictions for targetSdkVersion ≥ 29: Analysis and Implementation

This article investigates the Android dex2oat compilation restrictions introduced for targetSdkVersion ≥ 29, analyzes their impact on app performance, explores SELinux enforcement, and presents a practical solution using system commands and binder calls to trigger dex2oat compilation for both primary and secondary APKs, improving load and runtime speed.

APKAndroidCompilation
0 likes · 19 min read
Bypassing Android dex2oat Restrictions for targetSdkVersion ≥ 29: Analysis and Implementation
Alibaba Terminal Technology
Alibaba Terminal Technology
Sep 24, 2021 · Mobile Development

How Alipay Scaled AndroidX Migration Across Its Massive App Ecosystem

This article details Alipay's comprehensive AndroidX migration for its Android app, covering the deprecation of Android Support, industry adoption statistics, technical challenges, a modular adaptation strategy, tooling such as Jetifier and a custom bx command‑line utility, and the resulting impact on build time and product output.

APKAlipayAndroid Migration
0 likes · 19 min read
How Alipay Scaled AndroidX Migration Across Its Massive App Ecosystem
21CTO
21CTO
Jul 19, 2021 · Mobile Development

How Windows 11 and Amazon Appstore Enable Android Apps with AAB Support

Microsoft’s Windows 11 now runs Android apps natively through an Amazon Appstore integration, while Amazon’s adoption of the newer AAB packaging format offers developers smaller, device‑optimized downloads and distinct differences from Google Play’s requirements.

AAB formatAPKAmazon Appstore
0 likes · 3 min read
How Windows 11 and Amazon Appstore Enable Android Apps with AAB Support
Beike Product & Technology
Beike Product & Technology
Mar 5, 2021 · Mobile Development

APK Size Analysis by Library Dimension Using Gradle Intermediate Files

This article describes a method for analyzing Android APK size at the library level by extracting and parsing Gradle intermediate merge files, mapping resources, assets, native libraries and Java resources to their originating libraries, and linking them to maintenance teams for precise package‑size reporting.

APKGradleLibrary Mapping
0 likes · 13 min read
APK Size Analysis by Library Dimension Using Gradle Intermediate Files
360 Quality & Efficiency
360 Quality & Efficiency
Jul 24, 2020 · Mobile Development

Static Analysis of Android APK Files Using Python and Androguard

This article explains how to perform static analysis of Android APK files with Python, covering environment preparation, unpacking the APK, extracting basic metadata, analyzing classes and methods using the Androguard library, and generating a method call graph for deeper reverse‑engineering insights.

APKAndroguardAndroid
0 likes · 7 min read
Static Analysis of Android APK Files Using Python and Androguard
DevOps Cloud Academy
DevOps Cloud Academy
Jul 7, 2020 · Mobile Development

Building and Deploying the HelloWorld Android Gradle Project

This guide demonstrates how to clone the HelloWorld Android Gradle repository, build the project using Gradle, locate the generated debug and release APK files, upload them to Fir for distribution, and verify the installation, providing all necessary commands and output details.

APKAndroidGradle
0 likes · 3 min read
Building and Deploying the HelloWorld Android Gradle Project
转转QA
转转QA
Apr 16, 2020 · Mobile Development

Optimizing Android APK Size with Matrix ApkChecker: Features, Usage, and CI Integration

This article explains why reducing Android APK size is crucial for user experience, introduces the Matrix ApkChecker tool with its fourteen analysis tasks, demonstrates command‑line usage and configuration, and shows how to integrate it into a Jenkins CI pipeline for automated reporting and historical trend analysis.

APKAndroidApkChecker
0 likes · 12 min read
Optimizing Android APK Size with Matrix ApkChecker: Features, Usage, and CI Integration
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
Qunar Tech Salon
Qunar Tech Salon
Sep 25, 2019 · Mobile Development

Understanding the Core Principles of APK Installation on Android

This article explains how Android parses the AndroidManifest, assigns UID and updates permissions during APK installation, covering system boot installation, PMS‑driven third‑party, ADB and Market installations, and provides code snippets to illustrate the underlying mechanisms.

APKAndroidInstallation
0 likes · 14 min read
Understanding the Core Principles of APK Installation on Android
Tencent Music Tech Team
Tencent Music Tech Team
May 31, 2019 · Mobile Development

Kotlin Coroutine Failure After Resource Obfuscation in Android APK

The article explains how resource obfuscation with andResGuard removes META‑INF service files needed for the Android Main dispatcher, causing coroutines to silently fail after withContext calls, and shows that preserving the META‑INF/services directory restores proper coroutine execution.

APKAndroidCoroutines
0 likes · 8 min read
Kotlin Coroutine Failure After Resource Obfuscation in Android APK
iQIYI Technical Product Team
iQIYI Technical Product Team
Jul 16, 2018 · Mobile Development

Analyzing and Splitting Android APK Packages with dexSplitter

The article explains how iQiyi created the open‑source dexSplitter tool to analyze Android APK composition, generate per‑module sub‑dex files using ProGuard/R8 mappings, and continuously monitor size growth, offering clear module‑level size statistics despite a modest overall dex size increase.

APKAndroidApp Size Analysis
0 likes · 9 min read
Analyzing and Splitting Android APK Packages with dexSplitter
Baidu Intelligent Testing
Baidu Intelligent Testing
Jun 19, 2018 · Information Security

Comprehensive Guide to Android App Security, Reverse Engineering, and Protection Techniques

This article presents a detailed overview of Android app security threats, the essential components of an Android project, the full APK build and decompilation process, and a range of reverse‑engineering tools and protection strategies—including Smali analysis, SO manipulation, and signing bypass—to help developers safeguard their applications against piracy and data tampering.

APKAndroidApp Security
0 likes · 13 min read
Comprehensive Guide to Android App Security, Reverse Engineering, and Protection Techniques
Tencent Music Tech Team
Tencent Music Tech Team
Apr 28, 2017 · Mobile Development

Analysis and Implementation of Android APK Signature Scheme v2

The article explains Android’s APK Signature Scheme v2—introduced in Android Studio 2.2—its performance and integrity benefits over v1, details the signing block structure and verification steps, and demonstrates how to embed and retrieve custom channel data within the v2 block while preserving successful verification.

APKAndroidGradle
0 likes · 14 min read
Analysis and Implementation of Android APK Signature Scheme v2
Tencent TDS Service
Tencent TDS Service
Apr 27, 2017 · Mobile Development

How to Shrink Your Android APK Size: Practical Tips and Tools

This guide explains how Android developers can understand APK structure and apply a range of techniques—such as removing unused resources, compressing images, using vector drawables, and optimizing native code—to significantly reduce the size of their application packages and improve download and install performance.

APKAndroidMobile Development
0 likes · 15 min read
How to Shrink Your Android APK Size: Practical Tips and Tools
Tencent TDS Service
Tencent TDS Service
Apr 27, 2017 · Mobile Development

How to Build Fast Multi‑Channel Android APKs Without Re‑Signing

This article explains various multi‑channel packaging methods for Android APKs, compares traditional Gradle productFlavors and ApkTool approaches, and introduces efficient V1‑ and V2‑based channel insertion techniques that avoid rebuilding or re‑signing, while providing integration steps for the ApkChannelPackage plugin.

APKAndroidGradle
0 likes · 24 min read
How to Build Fast Multi‑Channel Android APKs Without Re‑Signing