如何将文件转换.apk文件到Java [英] How to convert .apk files to java

查看:323
本文介绍了如何将文件转换.apk文件到Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Android的 .apk文件文件转换为Java。

How to convert .apk files to java in android.

推荐答案

扩展谷歌使用Android应用程序(APK)看起来可能有点复杂在第一,但它实际上不是。事实上,一个.apk文件是没有别的比伪装成.apk文件的.zip文件。这是弱智化了下去,但你得到它。从本质上讲,如果一个人想看看什么是应用程序里面,他们只是改变了应用程序name.apk扩展到application-name.zip,将它解压缩。有你有它:该.apk文件的内容!我们还没有完成,阅读后休息多。 这是它得到棘手。解压缩应用程序的内容的文件夹里面,你会发现一个名为classes.dex文件。这是整个应用程序中最重要的文件,包含了所有的java文件,但它的加密!不用担心,可以很容易地得到解决。你需要两样东西:

The extension Google uses for Android Applications (APK) may seem a bit complicated at first, but it really isn’t. In fact, an .apk is nothing else than a .zip file disguised as an .apk. That’s dumbing it down, but you get it. Essentially, if one wanted to see what’s inside an app, they would just change the extension of application-name.apk to application-name.zip, unzip it. And there you have it: The contents of the .apk! We aren’t done yet, read more after the break. Here is where it gets tricky. Inside the folder where you unzipped the contents of the application, you’ll find a file named classes.dex. That’s the most important file of the whole application, containing all the java files, but it’s encrypted! No worries, that can easily be solved. You’ll need two things:

  1. Dex2Jar从 HTTP://$c$c.google.com/p/dex2jar/ <​​/A>
  2. 在普通的Java反编译器,如法学博士学位 http://java.decompiler.free.fr

复制classes.dex到你解压Dex2Jar的文件夹,然后运行命令行:dex2jar.bat classes.dex 这将产生一个文件,奇怪的名字类似:classes.dex.dex2jar.jar如果你已经安装了WinRAR的,你可以解压缩文件。如果你不这样做,安装它。 现在继续并调整自己的喜好!

Copy classes.dex to the folder where you unzipped Dex2Jar, and run from the command line: "dex2jar.bat classes.dex" This will produce a file, strangely named something like: "classes.dex.dex2jar.jar" If you have WinRAR installed, you can just unpack the files. If you don’t, install it. Now go ahead and adjust it to your liking!

这篇关于如何将文件转换.apk文件到Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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