转换的.java回classes.dex [英] Converting .java back to classes.dex

查看:253
本文介绍了转换的.java回classes.dex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在玩弄逆向工程和我有麻烦做编辑后,重新编译。

I've been playing around with reverse engineering and I am having trouble recompiling after making an edit.

我第一次使用apktool:

I first used apktool:

apktool d input.apk out
apktool b out

然后我用dex2jar转换classes.dex到jar然后使用JD-GUI来提取Java文件。我走进去,改变了一根弦值,使一切仍然会perserved,但可以看到,如果它的工作,所以code都应该工作。所以,我有所谓的类的java文件的文件夹,我试图用DX转换回一个DEX文件。我输入:

I then used dex2jar to convert classes.dex to jar then used JD-GUI to extract the java files. I went in and changed one string value so that everything would still be perserved but could see if it worked, so the code should all work. So I have the folder of the .java file called 'classes' and I've tried to use DX to convert back to a dex file. I enter:

dx --dex classes --no-strict

和得到这些错误:

and get these errors:

推荐答案

您排序是有点过,你需要为承认他们的工具的绝对路径指定目录。尝试

Your ordering is a little off and you need to specify directories as an absolute path for the tool to recognize them. Try

dx --dex --output C:/Users/SkyNet/Desktop/new_dex_file.dex C:/Users/SkyNet/Desktop/classes

这应该让你的桌面从类文件夹上new_dex_file.dex文件比在桌面上。

That should make a new_dex_file.dex file on your desktop from the classes folder than is on your desktop.

这篇关于转换的.java回classes.dex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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