Warm tip: This article is reproduced from stackoverflow.com, please click
android android-studio apk obfuscation proguard

Generate an APK without mapping.txt

发布于 2020-05-11 03:27:23

I want to generate an APK with only one class obfuscated, that contains a time-bomb for a demo application. I've seen that exists a ProGuard integrated into Android Studio, but the code is easily reversable with mapping.txt.

The question is: it's a good idea to generate apk and, at the same time, removing the mapping.txt from it? Just to avoid deobfuscation.

Questioner
Lore
Viewed
24
Anton Baranenko 2020-02-26 16:43

Not shipping the mapping file is the right solution. It's almost always not a good idea to ship your mapping file to the users.