Help request to disable the obfuscation by build system

485 views
Skip to first unread message

sreeka...@acsiatech.com

unread,
Oct 16, 2017, 9:54:31 AM10/16/17
to Android Building
Hi Guys,


We are trying to build our application using Android.mk and which has a jar dependency.
The jar file is pre-build and needs to be kept unoptimized by build system to make it working.

The problem we are facing here is, the jar file is getting obfuscated.

Could you please provide a solution to disable the obfuscation in case of pre-build jar files? 

We tried many trials with proguard.flags and also followed the approaches by referring this https://android.googlesource.com/platform/build/+/7311a34%5E!/.

For your reference, I am attaching the Android.mk. 

Please help us..

Thanks,


-Sreekanth

Android.mk

Colin Cross

unread,
Oct 16, 2017, 2:20:14 PM10/16/17
to android-...@googlegroups.com
Proguard is a whole program optimizer.  Your library is not being obfuscated individually, it is being obfuscated as part of the entire mmserver package.  You can disable proguard completely on mmserver using LOCAL_PROGUARD_ENABLED := disabled above include $(BUILD_PACKAGE), or you can try to find the right proguard flags to use with LOCAL_PROGUARD_FLAGS, again above the include $(BUILD_PACKAGE).

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anu Jawahar

unread,
Mar 13, 2019, 2:30:49 AM3/13/19
to Android Building
Hi Colin,

I understand that we can obfuscate a particular app by setting the macro LOCAL_PROGUARD_ENABLED, but if we had to obfuscate all the app. 
How can that be done globally from android codebase?

What can be the sideeffect of enabling proguard globally?
Reply all
Reply to author
Forward
0 new messages