Java 将 APK 转换为 JAR

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9812896/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-16 08:00:01  来源:igfitidea点击:

Converting APK to JAR

javaandroidjarapk

提问by Zombie_Colonel

Possible Duplicate:
apk to jar convertor

可能重复:
apk 到 jar 转换器

In order to have a multiplatform application, i have a question a little special:

为了拥有一个多平台应用程序,我有一个有点特别的问题:

It's how to convert the file "APK" to "JAR".

这是如何将文件“APK”转换为“JAR”。

Thanks for all

谢谢大家

采纳答案by zapl

dex2jarconverts .apkto .jar, but you still have .classfiles in there. Those that do notlink to the Android framework (which are probably only a few utility classes) should be reusable for another platform.

dex2jar转换.apk.jar,但您仍然有.class文件在那里。那些没有链接到 Android 框架的(可能只是几个实用程序类)应该可以在另一个平台上重用。

Using jd-guiyou can even look at the java code (most of the time at least)

使用jd-gui你甚至可以查看 java 代码(至少大部分时间是这样)

And if you want to extract the resources (you probably need to images too if you want to "convert" it to a different platform) apktool

如果你想提取资源(如果你想将它“转换”到不同的平台,你可能也需要图像)apktool

But there is absolutely no way to take an .apk and run it through a converter and have a Windows program.

但是绝对没有办法获取 .apk 并通过转换器运行它并拥有 Windows 程序。

回答by ligi

this is not possible - multiplatform requires a bitmore work than just converting binaries - but thanks for the smile this question was putting on my face !-)

这是不可能的-多平台需要一点不仅仅是转换二进制数更多的工作-但感谢的微笑,这一问题被戴上我的脸- !)