Integrate App Shielding on Android

Prev Next

Follow the steps outlined below to integrate and use Mobile Application Shielding in your Android project.

Integration steps

To integrate App Shielding into an Android application

  • Add ShieldSDK.aar to your project.

  • Add shield_common_android.aar to your project.

For applications that are compiled for Android 12 and later, you must add the android.permission.QUERY_ALL_PACKAGES permission.

As of July 2022, Google Play has restricted the use of privacy sensitive Android permissions, such as QUERY_ALL_PACKAGES, for all new apps or app updates submitted.

Only enable the queryAllPackagesPermission configuration option if this has been explicitly granted by Google Play.

For more information, see Query all packages permission option.

Google Play compatibility

By design, App Shielding is not compatible with the Google Play Automatic Protection service. This feature injects additional code into the application, which causes App Shielding to trigger a repackaging exception. Therefore, it is not recommended to use the Automatic Protection service. Compared to Shield, it provides lower security and is easily bypassed.