---
title: How to upgrade from ProGuard to DexGuard | Guardsquare
description: DexGuard provides more advanced functionality than ProGuard, and it is easy to upgrade the protection of your Android applications. Learn more in this blog.
image: https://23593082.hs-sites.com/hubfs/Imported_Blog_Media/ProGuard_to_DexGuard_keyboard-Apr-16-2021-06-32-47-98-PM-2.jpg
---

[![guardsquare-logo](https://insights.guardsquare.com/hs-fs/hubfs/Logos/logo-white.png?length=536&name=logo-white.png "guardsquare-logo") ](https://23593082.hs-sites.com/)

- pricing

[Request Pricing](https://www.guardsquare.com/request-pricing?hsCtaTracking=646b0379-d596-4b1a-8526-2ccbdbb0f81b%7Ce8809087-a83f-4476-8b22-34b9572013fd)

[Login](https://customers.guardsquare.com/login?utm_referrer=https%3A%2F%2Fwww.guardsquare.com%2F)

En

- [中文](https://www.guardsquare.com/zh-hans)
- [한국어](https://www.guardsquare.com/ko)
- [Português](https://www.guardsquare.com/pt-br)
- [Español](https://www.guardsquare.com/es)

<https://twitter.com/intent/tweet?original_referer=https://23593082.hs-sites.com/amilia-test/blog/how-upgrade-proguard-dexguard&url=https://23593082.hs-sites.com/amilia-test/blog/how-upgrade-proguard-dexguard&source=tweetbutton> <http://www.linkedin.com/shareArticle?mini=true&url=https://23593082.hs-sites.com/amilia-test/blog/how-upgrade-proguard-dexguard> <http://www.facebook.com/share.php?u=https://23593082.hs-sites.com/amilia-test/blog/how-upgrade-proguard-dexguard> [mailto:?subject=Check%20out%20https://23593082.hs-sites.com/amilia-test/blog/how-upgrade-proguard-dexguard](mailto:?subject=Check%20out%20https://23593082.hs-sites.com/amilia-test/blog/how-upgrade-proguard-dexguard)

July 15, 2019

# How to upgrade from ProGuard to DexGuard

Written by: Guardsquare

![](https://23593082.hs-sites.com/hubfs/Imported_Blog_Media/ProGuard_to_DexGuard_keyboard-Apr-16-2021-06-32-47-98-PM-2.jpg)

DexGuard provides [much more advanced functionality than ProGuard](https://23593082.hs-sites.com/blog/dexguard-vs.-proguard). The good news is that it is easy to upgrade the protection of your Android applications. You won't have to hire expensive consultants to get the software to work, you won't even have to reconfigure your build system. You can start from your existing ProGuard configuration and implement DexGuard's additional layers of protection in** a series of consecutive steps**.

### 1) Start from your existing ProGuard configuration

 DexGuard is backward compatible with ProGuard. You can re-use your existing ProGuard configuration file and get started with DexGuard. Since DexGuard processes all the components of your Android application (and not just the bytecode), you will have to add some keep rules to correctly preserve the libraries, resources, resource files and assets that are used by reflection. The actual time needed to configure DexGuard depends on the amount of reflection in your code and can vary **from a couple of hours to three days** at the most.

### 2) Harden your application 

 At this point, DexGuard will only provide basic obfuscation (name obfuscation). To make use of DexGuard’s advanced code hardening capabilities, you will have to identify the components (classes, strings, assets etc.) of your application that need additional protection and obfuscate or encrypt them with a few configuration options. Successful implementation requires some trial and error. Small projects can be configured** in three days or less**; projects with many external libraries can take** up to five days **to configure.

### 3) Set up DexGuard's runtime protection

 DexGuard integrates various runtime self-protection mechanisms into your Android application to protect it from dynamic analysis and live attacks. To make use of DexGuard's runtime protection, you need to implement a few simple API calls from your application. Do not forget to harden these calls with DexGuard’s static protection. Setting up the runtime protection mechanisms takes **one to two days**.  
 

![implementation time indication for proguard to dexguard upgrade](https://23593082.hs-sites.com/hs-fs/hubfs/Imported_Blog_Media/Foto_blog_ProGuard_to_DexGuard-Apr-16-2021-06-32-46-87-PM-2.png?width=516&height=250&name=Foto_blog_ProGuard_to_DexGuard-Apr-16-2021-06-32-46-87-PM-2.png)

###   Support available!

- DexGuard comes with a tuned configuration for the Android Runtime.
- DexGuard performs automatic instrumentation of code at runtime to account for some amount of reflection. This will help you to set up DexGuard more efficiently.
- The DexGuard documentation outlines a series of best practices to help you protect your Android application.
- DexGuard comes with working sample projects demonstrating its capabilities.
- Our security engineers are available to help you solve any technical issue you may encounter.

Tag(s): [Android](https://23593082.hs-sites.com/amilia-test/tag/android) , [ProGuard & R8](https://23593082.hs-sites.com/amilia-test/tag/proguard-r8) , [DexGuard](https://23593082.hs-sites.com/amilia-test/tag/dexguard)

## [Guardsquare](https://23593082.hs-sites.com/amilia-test/author/guardsquare)

Connect with the author

## Discover how Guardsquare provides industry-leading protection for mobile apps.

## Other posts you might be interested in

[

** 11 min read  | August 22, 2023

## Webinar Recap: Accessibility Features and Overlays on Android

Android Protection Security Research 

](https://23593082.hs-sites.com/amilia-test/blog/app-permissions-abuse) [

** 7 min read  | August 15, 2023

## What is RASP and Why It Matters to Mobile App Developers

Android iOS Protection DexGuard iXGuard 

](https://23593082.hs-sites.com/amilia-test/blog/rasp-dynamic-analysis)

## Subscribe to our newsletter

Stay in the know with monthly updates right to your inbox.

![HubSpot CMS](https://cdn2.hubspot.net/hubfs/302335/hubspot-cms-logo-gray.svg "HubSpot CMS")

[General Terms](https://23593082.hs-sites.com/terms-of-use) | [Privacy Policy](https://23593082.hs-sites.com/privacy-policy) | [Cookie Policy](https://23593082.hs-sites.com/cookie-policy)

Tervuursevest 362 bus 1, 3000 Leuven, Belgium | VAT: BE0550675829 |

© 2016-2026 Guardsquare nv. All rights reserved.

<https://www.facebook.com/guardsquare> <https://twitter.com/Guardsquare> <https://www.linkedin.com/company/guardsquare/> <https://www.youtube.com/channel/UCP9s5F1ksT1E-7vSF2CDyhw> <https://github.com/Guardsquare>

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Guardsquare",
    "url" : "https://23593082.hs-sites.com/amilia-test/author/guardsquare"
  },
  "dateModified" : "2023-09-19T17:46:35.261Z",
  "datePublished" : "2019-07-15T04:00:00.000Z",
  "headline" : "How to upgrade from ProGuard to DexGuard | Guardsquare",
  "image" : [ "https://23593082.hs-sites.com/hubfs/Imported_Blog_Media/ProGuard_to_DexGuard_keyboard-Apr-16-2021-06-32-47-98-PM-2.jpg" ],
  "mainEntityOfPage" : {
    "@id" : "https://23593082.hs-sites.com/amilia-test/blog/how-upgrade-proguard-dexguard",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject"
    }
  }
}
```