Tagged articles
proguard
34 articles · Page 1 of 1
This article examines the challenges of using FastJson, FastJson2, Gson, and Kotlinx-serialization to parse Kotlin data classes in Android, explains why crashes occur due to reflection and null-safety issues, and provides step-by-step solutions—including code modifications, ProGuard rules, and library alternatives—to achieve reliable JSON handling.
AndroidFastjsonJSON parsing
0 likes · 20 min read

Ke Jie explains why reducing the Game Center APK—by eliminating alpha‑PNG images, unused code and resources, limiting language and density assets, disabling v1 signing, compressing images, loading native libraries on demand, shipping only 64‑bit binaries, enabling code/resource shrinking and R‑file inlining—cut size by about 31% (≈20 MB), boosting download conversion and launch performance.
APK OptimizationAndroidApp Size Reduction
0 likes · 14 min read

The guide explains how to protect a Java core module deployed on user servers by integrating ProGuard for bytecode obfuscation, Xjar for JAR encryption, and ClassFinal for class‑file encryption, providing Maven plugin configurations, startup commands, and verification that the combined approach renders decompiled code empty or unreadable.
ClassFinalJavaMaven
0 likes · 20 min read

This article explains how to protect Java backend code deployed on user servers by applying ProGuard, Xjar, and ClassFinal for JAR obfuscation and encryption, detailing Maven configurations, startup commands, decompilation results, and best‑practice integration of both tools in a Spring Boot project.
JavaMavenXjar
0 likes · 24 min read

This article analyses the challenges of protecting intellectual property in B2B Java applications, reviews existing obfuscation and encryption tools, and proposes a lightweight Maven‑based encryption plus javaagent decryption scheme that secures both proprietary code and third‑party dependencies while keeping performance impact below five percent.
BackendGraalVMJava
0 likes · 9 min read

This article explains how to protect Java server-side code from decompilation by applying ProGuard shrinking/obfuscation and Xjar/ClassFinal encryption, provides detailed Maven plugin configurations, sample pom.xml snippets, command‑line launch options, and demonstrates the resulting protected JARs with screenshots.
JavaMavenSpring Boot
0 likes · 22 min read

This article explains how to protect Java applications from decompilation by configuring a ProGuard file and adding the ProGuard Maven plugin, then building the project to generate an obfuscated JAR, complete with step‑by‑step instructions and sample configuration code.
BackendJavaMaven
0 likes · 5 min read

This article analyzes why FastJson, Gson, and Kotlinx‑serialization encounter crashes or incorrect handling when parsing Kotlin data classes in Android, explains the root causes such as missing no‑arg constructors and null‑safety issues, and provides concrete code fixes, ProGuard rules, and a unified wrapper API for reliable JSON processing.
AndroidFastjsonGson
0 likes · 20 min read

This guide explains how to protect a Spring Boot application from reverse engineering by configuring ProGuard to obfuscate compiled class files, adding the necessary Maven plugin settings, and verifying the resulting obfuscated JAR.
JavaMavenSecurity
0 likes · 7 min read

This article explains Java compilation and decompilation basics, introduces the JD‑GUI decompiler, and provides a step‑by‑step guide to protect Java applications by configuring ProGuard and integrating it into a Maven build, including sample configuration files and common pitfalls.
JavaMavencompilation
0 likes · 8 min read

This article explains how to protect Java applications from reverse engineering by using ProGuard for code obfuscation, detailing the creation of a proguard.cfg file, Maven plugin configuration, and the build process to generate an obfuscated JAR.
JavaMavenSecurity
0 likes · 7 min read

The article explains how Meituan migrated its method‑instrumentation hot‑fix system Robust from ProGuard to Google’s R8 by moving change detection ahead of optimization, disabling or tuning R8’s built‑in optimizations, and implementing special handling for anonymous classes, inlined methods, super calls, constructors and static initializers to ensure reliable patch generation.
AndroidHotfixR8
0 likes · 21 min read

This article explains how WeChat Android moved from Proguard to R8, detailing the performance and size gains, the new build workflow, the numerous optimization pitfalls encountered, and the concrete fixes applied to ensure stable releases and smaller Tinker patches.
AndroidBuild OptimizationDEX
0 likes · 27 min read

Learn how to protect your Java code from reverse engineering by compiling, decompiling, and applying ProGuard obfuscation, including creating a proguard.cfg file and configuring the Maven ProGuard plugin, with detailed examples and screenshots illustrating each step of the process.
JavaMavenSecurity
0 likes · 7 min read

This guide explains Java compilation basics, the need for code obfuscation, provides a complete ProGuard configuration file, shows how to integrate the ProGuard Maven plugin into a pom.xml, and demonstrates building an obfuscated JAR with Maven.
JavaMavenSecurity
0 likes · 7 min read

This article explains the concepts of Java compilation and decompilation, introduces code obfuscation with ProGuard, and provides step‑by‑step Maven configuration to protect Java applications from reverse engineering, including sample configuration files and build commands.
Build ToolsMavencode protection
0 likes · 7 min read

This article explains how Java source files are compiled into class files, how they can be decompiled, and provides a detailed, code‑rich tutorial on protecting a Spring Boot project by configuring ProGuard through a proguard.cfg file and Maven plugin to produce an obfuscated JAR.
JavaMavenbackend development
0 likes · 7 min read

This article explains how Android developers can reduce APK size by inlining R files, detailing the generation of R.java and R.txt, the causes of oversized R files, and step‑by‑step bytecode transformation techniques using ASM to replace resource ID lookups with constant values.
Package Sizeinliningproguard
0 likes · 11 min read

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

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

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.
AGPAndroidBuild Optimization
0 likes · 23 min read

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

This article delves into Android resource fundamentals, classification, referencing, compilation, shrinking, and practical governance techniques, illustrating how to detect and resolve conflicts, unused assets, missing class references, and hard‑coded texts to improve build size and runtime stability.
AndroidR classproguard
0 likes · 24 min read

This article explains the hidden problem of engineering decay in Android app development, introduces Proguard/R8 core functions, details global and keep configurations, showcases detection tools and governance practices, and provides actionable steps to reduce build time and APK size.
AndroidCode ShrinkingR8
0 likes · 24 min read

This article explains how a custom incremental Proguard solution for Android Gradle builds reduces the Proguard stage from dozens of minutes to around eight minutes by hashing class nodes, calculating diffs, correcting bytecode, and updating mappings, resulting in stable, fast release builds.
ASMAndroidGradle
0 likes · 15 min read

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

This article explains practical anti‑debugging methods for Android applications—covering Java tools like Proguard and debugger checks, as well as NDK strategies such as ptrace, file‑node monitoring, Inotify, SO hash verification, and timing analysis—to raise reverse‑engineering difficulty.
AndroidAnti-debuggingNDK
0 likes · 7 min read

The article explains how ProGuard’s incremental obfuscation using –applymapping can cause mapping conflicts when previously assigned method names are overwritten, producing warnings and inconsistent names such as ‘c_’, and details the internal workflow, inline handling, and practical steps to diagnose and resolve these issues.
AndroidIncremental BuildMapping
0 likes · 18 min read


21CTONov 27, 2017 · Mobile Development
This article outlines practical techniques for creating high‑performance Android apps, covering minimal library usage, streamlined design resources, asynchronous loading, build‑time reductions with ProGuard, and the importance of thorough discussion before implementation.
AndroidApp Sizemobile development
0 likes · 6 min read

This article explains how to smoothly integrate Kotlin and Java in Android development, covering IDE conversion, class handling, ProGuard pitfalls, library considerations, calling conventions, keyword conflicts, static methods, package‑level functions, and null‑safety with practical code examples.
Code ConversionInteropmobile-development
0 likes · 9 min read

To shrink Meituan’s Android APK, developers can optimize the ZIP layout, enable ProGuard/R8 dex shrinking, inline R fields, convert images to WebP or VectorDrawable, disable redundant PNG crunching, activate shrinkResources, limit packaged languages, obfuscate resources with tools like AndResGuard, and eliminate duplicate or unused assets.
APK size reductionAndroidimage compression
0 likes · 18 min read

The open‑source Robust hot‑update system now includes an automated patch‑generation tool that scans original methods, rewrites field and method accesses to reflective calls, and creates hook classes to overcome ProGuard’s obfuscation, optimization, and inner‑class challenges, cutting patch creation time from a day to minutes.
AndroidHotUpdatePatchAutomation
0 likes · 22 min read

This article analyzes Meituan’s Robust hot‑patch solution, detailing its Instant Run‑inspired code injection, patch generation, production issues like method‑count limits and ProGuard inlining, performance impact, and real‑world deployment metrics, offering practical insights for Android developers.
AndroidDexClassLoaderHotPatch
0 likes · 15 min read

EventBus 3 provides a lightweight publish/subscribe framework for Android that simplifies inter‑module communication by allowing any object to be posted and received via @Subscribe methods, with optional index acceleration for faster registration, customizable thread modes, and guidance on setup, ProGuard rules, pitfalls, and alternatives.
AndroidAnnotation ProcessingEventBus
0 likes · 22 min read
