Deobfuscation for Android

Explained here is how to deobfuscate your crashes to get more details from stack traces for your Android apps.

Deobfuscating Java/Kotlin Crashes

The below sections detail different methods of uploading and automating your mapping file uploads to deobfuscate your crashes.

Uploading Manually via the Dashboard

Go to Upload Mapping Files in the Settings menu of your Luciq dashboard and upload your Mapping.txt file. Multiple mapping files can be uploaded to correspond with each version of your application.

Uploading via Script

Through automation, you can make it so that mapping files are generated and uploaded from environment with ease. First, you'll need the below script, which can be used to upload your mapping files directly without needing to visit the dashboard. You only need to add the location of your mapping file, as well as your application token.

Afterwards, add the following gradle task to your app's build.gradle while replacing "TOKEN" with your own token.

Lastly, once you're done with the release task, simply run the following command: ./gradlew :app:uploadMappingFiles

Uploading via API

We have an API endpoint that you can use to upload your mapping files directly from the console. Mapping files must be uploaded as a .txt file.

Uploading via Gradle Plugin

Using the Luciq plugin, you can make sure the mapping files are always uploaded in a prompt manner. 1- First, you'll need to add the below class plugin to your projects Gradle file:

2- Then add apply plugin: 'luciq-crash' to your app's Gradle file

3- Finally, you'll need to set the configurations of the plugin:

Deobfuscating NDK/C++ Crashes

By default, native crashes are obfuscated. In order to deobfuscate them, you'll need to upload the relevant .so files and we'll take care of the rest.

Locating .so Files

The .so files are usually found in specific directories related to the different app architectures. You can find below the different files, as well as their related architecture.

Uploading Manually via the Dashboard

Once you have the .so files, you can upload them directly to the dashboard through Upload NDK DSYMs page found in the Settings menu of your Luciq dashboard. You'll only need to upload the file, while selecting the correct app version and app architecture.

Uploading via API

We have an API endpoint that you can use to upload your symbol files directly from the console or from the CI

Last updated