Splunk AppDynamics

Android Proguard Configuration

CommunityUser
Splunk Employee
Splunk Employee

I get these warnings when I try to obfuscate the code using proguard

Warning: com.facebook.CustomTabActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_**' in program class com.appdynamics.eumagent.runtime.BuildInfo
Warning: com.facebook.CustomTabMainActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_**' in program class com.appdynamics.eumagent.runtime.BuildInfo
Warning: com.facebook.FacebookActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_** in program class com.appdynamics.eumagent.runtime.BuildInfo
Warning: com.google.android.libraries.places.widget.AutocompleteActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_**' in program class com.appdynamics.eumagent.runtime.BuildInfo
Warning: com.salesforce.android.chat.ui.internal.chatfeed.ChatFeedActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_**' in program class com.appdynamics.eumagent.runtime.BuildInfo
Warning: com.salesforce.android.chat.ui.internal.prechat.PreChatActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_**' in program class com.appdynamics.eumagent.runtime.BuildInfo
Warning: dagger.android.DaggerActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_**' in program class com.appdynamics.eumagent.runtime.BuildInfo
Warning: dagger.android.support.DaggerAppCompatActivity: can't find referenced field 'boolean appdynamicsGeneratedBuildId_**' in program class com.appdynamics.eumagent.runtime.BuildInfo

Need help in configuring proguard to get rid of above warnings. 

Thanks

Labels (1)
Tags (2)
0 Karma
1 Solution

CommunityUser
Splunk Employee
Splunk Employee

Solved it using following lines in proguard config

-keep class com.appdynamics.eumagent.runtime.BuildInfo
-keep @com.appdynamics.eumagent.runtime.BuildInfo class * { *; }

View solution in original post

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Solved it using following lines in proguard config

-keep class com.appdynamics.eumagent.runtime.BuildInfo
-keep @com.appdynamics.eumagent.runtime.BuildInfo class * { *; }
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Official Docs Reference

-keep class com.appdynamics.eumagent.runtime.DontObfuscate
-keep @com.appdynamics.eumagent.runtime.DontObfuscate class * { *; }
0 Karma
Get Updates on the Splunk Community!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...