反编译使用 Xamarin 构建的 APK [英] Decompile APK built with Xamarin

查看:56
本文介绍了反编译使用 Xamarin 构建的 APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.我需要从 apk 中获取 C# 源代码,我尝试了几天的方法,但他们给了我 java 代码.

我用 c# xamarin 构建了一个小游戏.我停止了一段时间的工作,现在我想继续构建它,但是我丢失了源代码.我有一个 apk 文件,但无法获取源代码.如果有什么办法可以得到源代码?请帮帮我.

解决方案

首先,使用 7zip 或 winrar 解压 apk.你也可以使用 APKTool

然后转到程序集文件夹并使用 dnSpydotPeek.如果您使用的不是 Microsoft Windows,则可以使用名为 AvaloniaILSpy 的跨平台工具..>

如果你没有看到 dll 文件(只有 .so 文件),你需要用 这个工具.

我用 dnSpy 打开

Good day all. I need get C# source code from an apk, I tried a few days ways, but they give me java code.

I built a little game in c# xamarin. I stopped working on it for a while, and now I want continue building it, but I've lost the source code. I have an apk file but cannot get the source code. If there is any way get the source code? Please help me.

解决方案

first, extract apk using 7zip or winrar. you can also use APKTool

then go to the assemblies folder and open {appname}.dll with dnSpy or dotPeek. if you're not using Microsoft Windows, there's a cross-platform tool called AvaloniaILSpy.

if you don't see the dll file (only .so files) you need to unpack it with this tool.

I opened with dnSpy

这篇关于反编译使用 Xamarin 构建的 APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆