Jump to content

ProGuard

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 2a00:1cf8:1200:126:99ac:b3a1:567c:d53a (talk) at 10:46, 19 September 2020 (Updated the latest release version). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

ProGuard
Developer(s)Eric P.F. Lafortune[1]
Stable release
7.0.0 / June 2020; 4 years ago (2020-06)
Repository
Written inJava
Operating systemCross-platform
LicenseGPLv2.0[2]
Websitewww.guardsquare.com/en/products/proguard

ProGuard is an open source command-line tool that shrinks, optimizes and obfuscates Java code. It is able to optimize bytecode as well as detect and remove unused instructions.[3] ProGuard is free software and is distributed under the GNU General Public License, version 2.[2]

ProGuard is distributed as part of the Android SDK and runs when building the application in release mode.[4]

Features

Obfuscation

ProGuard obfuscates Java and Android programs by renaming classes, fields, and methods using meaningless names, making it harder to reverse-engineer the final application.[5]

Optimization

Besides removing unused instructions from the compiled bytecode, ProGuard optimizes it using techniques such as control flow analysis, data-flow analysis, partial evaluation, static single assignment, global value numbering, and liveness analysis.[5]

ProGuard can remove many types of unused and duplicated code, perform over 200 peephole optimizations, reduce variable allocation, inline constant and short methods, simplify tail recursion calls, remove logging code, among others.[5]

See also

References

  1. ^ "Eric Lafortune home page". Retrieved November 24, 2015.
  2. ^ a b "ProGuard license page". February 2, 2015. Retrieved November 24, 2015.
  3. ^ "ProGuard overview (official page)". February 2, 2015. Retrieved November 24, 2015.
  4. ^ "Shrink your code and resources". Retrieved June 10, 2018.
  5. ^ a b c "ProGuard FAQ". February 2, 2015. Retrieved November 24, 2015.