你如何反编译,在eclipse中编辑并重新编译一个apk?一步步? [英] How do you decompile, edit in eclipse and recompile an apk? Step by Step?

查看:38
本文介绍了你如何反编译,在eclipse中编辑并重新编译一个apk?一步步?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在市场上有一个 apk 格式的应用程序,但我想稍微调整一下以解决我在小屏幕上遇到的一些问题,我知道代码没问题,但现在要编辑代码了这就是问题

I have this application from the market in an apk format, but I want to tweak it a little bit to fix some issues I have with a small screen, I know the code ok but it's getting to the point of editing the code that's the problem

我之前尝试过的:

  1. 使用 apk 管理器反编译(命令 9)
  2. 这在包含所有文件的项目中创建了一个文件夹
  3. 在 eclipse 中,我创建了一个新的 android 项目,然后选择使用现有源",选择它所在的文件夹并导入.
  4. 所有文件都出现在项目文件夹中,我可以编辑它们.
  5. 我进行了所有相关更改(不涉及 manifest.xml 文件)
  6. 我转到文件>导出并选择导出 android 应用
  7. 完成了有关密钥和所有内容的步骤
  8. 创建的输出文件没有错误
  9. 我将文件传输到我的安卓手机
  10. 打开,安装
  11. 从菜单中打开它时,我立即收到强制关闭错误

在那之前一切似乎都很顺利,我已经在其他手机上尝试过,同样的问题.

Everything seems to be going good until that point, I have tried it on other phones, same problem.

我想知道的是编辑 apk 的正确方法,以便它们再次工作.

What I would like to know is the proper way of editing apks so that they will work again.

我在互联网上到处搜索有关编辑 apk 的内容,但找不到好的答案,所以我希望这里有人能给我一个解决方案.

I have searched everywhere on the internet about editing apk's but I can't find a good answer so I was hoping that someone here would give me a soloution.

谢谢

推荐答案

在将其安装到手机之前,您实际上需要对应用程序进行签名.这可以通过下载 appsign.apk 文件来完成,它需要一些程序来完成.首先下载SignAPK工具——http://www.mediafire.com/?rw57ftajd6nm81s将它们解压缩到您会记住的目录中.我已经把它们放在 C:\SignApk

Before installing it to your phone, you actually need to sign the app. This can be done by downloading appsign.apk file and it has a little bit procedure to do. First download the SignAPK tool - http://www.mediafire.com/?rw57ftajd6nm81s Extract them to a directory you will remember. I have put them in C:\SignApk

现在只需打开 cmd 并输入 -报价

Now just open cmd and type - Quote

cd C:\SignApk java -jar signapk.jar certificate.pem key.pk8your-app.apk your-app-signed.apk

cd C:\SignApk java -jar signapk.jar certificate.pem key.pk8 your-app.apk your-app-signed.apk

示例 -

java -jar signapk.jar certificate.pem key.pk8D:\nfsshift\dist\nfsshift.apk D:\nfsshift\dist\nfsshift-signed.apk您的 APK 已签名并且可以安装.

java -jar signapk.jar certificate.pem key.pk8 D:\nfsshift\dist\nfsshift.apk D:\nfsshift\dist\nfsshift-signed.apk Your APK is signed and can be installed.

这篇关于你如何反编译,在eclipse中编辑并重新编译一个apk?一步步?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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