unity mono 地址:https://github.com/Unity-Technologies/mono 下载与unity版本对应的unity mono。

 

brew安装:http://brew.sh/index_zh-cn.html

 

mono需要autoconf automake libtool pkg-config这些工具。

brew install autoconf automake libtool pkg-config。

 

mono下/mono/metadata/image.c里mono_image_open_from_data_width_name方法里加 解密算法。
 
开始编译mono,参考http://www.xuanyusong.com/archives/3553
 
unity导出Android工程,把dll读取到内存,用加密算法加密。重新保存到原路径。
此dll简单的拖到MonoDevelop或ILSpy里都无法解开。
 
替换Android工程里面libmono.so
 
用apktool,重新将Android打包为apk
apktool用法:
考虑自动化脚本,提升效率

相关文章: