ProGuard

{{Use mdy dates|date=November 2014}}

{{Infobox software

| name = ProGuard

| screenshot = ProGuard.png

| caption = ProGuard GUI

| collapsible =

| developer = Eric P.F. Lafortune{{cite web |title=Eric Lafortune home page |url=http://www.lafortune.eu/ |accessdate=November 24, 2015}}

| latest release version = {{wikidata|property|edit|reference|P348}}

| latest release date = {{start date and age|{{wikidata|qualifier|P348|P577}}}}

| programming language = Java

| operating system = Cross-platform

| genre =

| license = GPLv2.0{{cite web |url=http://proguard.sourceforge.net/license.html |title=ProGuard license page |author= |date= February 2, 2015|accessdate=Nov 24, 2015}}

| website = {{URL|https://www.guardsquare.com/en/products/proguard}}

}}

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.{{cite web |url=http://proguard.sourceforge.net/index.html |title=ProGuard overview (official page) |date=February 2, 2015 |accessdate=Nov 24, 2015}} ProGuard is free software and is distributed under the GNU General Public License, version 2.

ProGuard was distributed as part of the Android SDK and ran when building the application in release mode.{{cite web |url=https://developer.android.com/studio/build/shrink-code |title=Shrink your code and resources |accessdate=June 10, 2018}}

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.{{cite web |url=http://proguard.sourceforge.net/FAQ.html |title=ProGuard FAQ |date=February 2, 2015 |accessdate=Nov 24, 2015 |archive-date=October 28, 2016 |archive-url=https://web.archive.org/web/20161028095555/http://proguard.sourceforge.net/FAQ.html |url-status=dead }}

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

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.

See also

{{Portal|Free and open-source software|Computer programming}}

References