我主要关心的是,当我提取我的APK时,我可以看到所有布局文件和字符串等,甚至清单。我使用proguard混淆了所有java文件,使用
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
# If you want to enable optimization, you should include the
# following:
-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
-optimizationpasses 5
-allowaccessmodification
# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version. We know about them, and they are safe.
-dontwarn android.support.**我的想法是,如果我们能够以语法的方式加密布局文件,以及当应用程序开始解密它们或任何其他方法,以使它们不丢失使用时。
提前谢谢
发布于 2018-09-26 11:27:30
不太确定的加密资源,但至少,我相信,你可以混淆他们。
AndResGuard是一种减少apk大小的工具,它的工作方式类似于ProGuard for源代码,,但只针对资源文件。它将
res/drawable/wechat更改为r/d/a,并将资源文件wechat.png重命名为a.png。最后,它用7zip重新打包apk,这可以显着地减少包的大小。 混淆android资源。它包含所有的资源类型(例如可绘制的、布局、字符串.)。它可以防止你的apk被Apktool逆转。
然而,;
ProGuard只影响代码,而不影响资源。您将需要研究其他工具,如DexGuard,这些工具可能会造成资源混淆。是否有一个工具可以混淆原始资源是另一回事。
https://stackoverflow.com/questions/52476181
复制相似问题