cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Auto-instrumenting an Android app for UEM, obfuscated apk

We are trying to use auto-instrumentation to instrument the Android UEM, they use obfuscation when creating the apk file with proguard:
-proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
Would this cause any problem with the auto-instrumentation, would it work?

3 REPLIES 3

Thomas_Wirth1
Dynatrace Champion
Dynatrace Champion

Hey Alejandro,

Yes, you have to exclude some parts from obfuscation and optimization. Regarding your other question, you have to exclude the OkHttp3 library from obfuscating. You find the details in the documentation.

When you enrich your mobile user experience data via the OneAgent SDK for Mobile, then you also have to exclude the OneAgent library from obfuscating. This step is not needed, when you use the latest agent (version 7.1).

Than you @Thomas W.

update: recent plugin version (8+) performs the instrumentation before obfuscation is done, thus the obfuscation rules no longer need to be adjusted. Details can be found here: https://www.dynatrace.com/support/help/shortlink/dynatrace-android-gradle-plugin-overview#instrument...

iOS help: https://www.dynatrace.com/support/help/shortlink/ios-hub

Featured Posts