单声道为Android,code混淆单声道、Android、code

2023-09-04 07:11:08 作者:可爱生存报告

众所周知,盗版成为在Android上一个非常严重的问题。 单是否为Android提供code混淆编译为本机code当?

As everybody knows, piracy becomes a very serious issue on Android. Does Mono for Android provide code obfuscation when compiling to native code?

推荐答案

单声道的Andr​​oid不提供此功能,但是您仍然可以使用第三方工具混淆。为单声道为Android产生一个是在Android设备上JIT编译的单声道运行时CIL组件需要进行模糊处理这些.NET程序集。所以,像Android的混淆器Proguard的工具不会帮你。下面的.NET混淆器已报告单的工作为Android。

Mono for Android does not provide this functionality, however you can still use a third-party tool for obfuscation. As Mono for Android produces CIL assemblies that are JITed by the Mono runtime on the Android device you need to obfuscate these .NET assemblies. Therefore tools like the Android obfuscator Proguard will not help you. The below .NET obfuscators have been reported to work with Mono for Android.

异种code Postbuild CryptoObfuscator Xenocode Postbuild CryptoObfuscator

如果您使用异种code Postbuild然后确保你禁用元数据还原,使类名称保持有效Java编写的。

If you use Xenocode Postbuild then make sure you disable "metadata reduction" so that Class names remain valid in Java.

更新

Xamarin.Android让您无需编译.NET的DLL打包APK文件。这意味着你不需要从一个.NET应用点混淆。我可以提取我的版本APK文件,发现只有classes.dex文件和.so库文件都包括在内。要启用此勾选框,在本土code嵌入组件(这可能只适用于企业用户)。

Xamarin.Android allows you to package APK files without the need for the compiled .NET DLLs. This means you do not need to apply obfuscation from a .NET point of view. I can extract my release APK file and find that only the classes.dex file and the .so library files are included. To enable this tick the box "Embed assemblies in native code" (this may only be available for Enterprise subscribers).