首先说明一点,我最后并没有成功,仅供大家参考。
我做这个是因为,我的Unity工程中的Scene0.unity场景文件损坏了,我就想着应该这个文件在生成的APK里边,就想把它给解出来用。
步骤,
1.解压APK
将APK文件后缀改为rar/zip之类的直接解压得到下面的文件:
这就是个中规中矩的安卓APK的内部了。
2.寻找资源文件
喏~在这儿了
Managed中是所有引用的dll,以及自己的脚本文件组成的dll,听说在这个里边:Assembly-UnityScript.dll,不过这个不关我的事,我还要找.unity场景文件!!!!!
当然,我也想要资源文件,因为觊觎其他游戏的资源文件很久了,嘿嘿~
3.学习使用disunity_v0.5.0工具
你解压这个工具后,里边就有个读我,就是说明书了
来我们来初步读下
看起来是不是很牛逼,支持 2~5的反解。不过它又说,由于只支持原生文件的读写,这些文件呢不含任何对象反序列化,(这句我没懂,还得请教大家)。不过后面那句我是懂了,就是说反正不能直接解出来Assert了。
底下是操作说明。
用法是:disunity <command> [options] <file>
就是说disu