ProGuard explained

ProGuard
Developer:Eric P.F. Lafortune[1]
Programming Language:Java
Operating System:Cross-platform
License:GPLv2.0[2]

ProGuard is an open source command-line tool which 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 was distributed as part of the Android SDK and ran when building the application in release mode.[4]

Features

Obfuscation Method

ProGuard obfuscates Java and Android programs by renaming classes, fields, and methods using meaningless names (an implementation of security through obscurity), making it more difficult 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, amongst others.[5]

See also

Notes and References

  1. Web site: Eric Lafortune home page . November 24, 2015.
  2. Web site: ProGuard license page . February 2, 2015. Nov 24, 2015.
  3. Web site: ProGuard overview (official page) . February 2, 2015 . Nov 24, 2015.
  4. Web site: Shrink your code and resources . June 10, 2018.
  5. Web site: ProGuard FAQ . February 2, 2015 . Nov 24, 2015 . October 28, 2016 . https://web.archive.org/web/20161028095555/http://proguard.sourceforge.net/FAQ.html . dead .