Mess icon indicating copy to clipboard operation
Mess copied to clipboard

Activities, Services, etc. are not being obfuscated.

Open Chuque opened this issue 7 years ago • 2 comments

I managed to obfuscate the resources, but couldn't find a way to obfuscate Activities, Services, custom Views, etc. How to make it work?

Chuque avatar Sep 30 '18 22:09 Chuque

Did you add the following code to proguard-rules.pro

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Service
-keep public class * extends android.view.View

You should delete them

jokermonn avatar Oct 04 '18 09:10 jokermonn

I tested your suggestion, but now the app crashes. Looks like the MainActivity class is moved to somewhere else but the AndroidManifest.xml dows not point to that new location. Same behavior to all those classes that are referenced in the manifest file, like another activities, services and the class that extends Application class.

Isn't this Mess plugin supposed to also handle the AndroidManifest.xml?

Chuque avatar Oct 16 '18 13:10 Chuque