甚至可以通过向 .dex 添加附加类并使用修改后的 manifest.xml 重新打包来修改 .apk 吗? [英] is it even possible to modify .apk, by adding additional class to .dex and re-packing with modified manifest.xml?

查看:17
本文介绍了甚至可以通过向 .dex 添加附加类并使用修改后的 manifest.xml 重新打包来修改 .apk 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过向 .dex 添加附加类并使用修改后的 manifest.xml 重新打包来修改 .apk?

is it even possible to modify .apk, by adding additional class to .dex and re-packing with modified manifest.xml??

我知道有诸如 baksmali/smali 之类的工具可以从 .apk 反汇编/重新组装给定的 classes.dex,但不确定可以从那里修改什么?

I know there are tools such as baksmali / smali to disassemble / re-assemble given classes.dex from .apk, but not sure limitation what could be modified from there on?

我正在尝试添加其他活动,以修改原始 apk 中的启动启动器活动(可能来自 androidmanifest.xml),然后重新打包并签名以制作完整的单个 .apk……所有这些都需要完成构建时间,没有可见的原始源代码或构建结构,只有 .apk 作为输入...有任何想法吗?

I'm trying to add additional activity, to modify starting launcher activity (may be from androidmanifest.xml) from original apk, then re-pack and sign to make complete single .apk... all need to be done out of build time, no raw source or build structure visible, only .apk as input... ANY IDEA?

推荐答案

是的,你提到的工具 (baksmali/smali) 帮助您反汇编 apk 并修改和重新打包代码稍后.

Yes, the tools you mentioned (baksmali/smali) help you to both disassemble apks and modify and repackage the code later.

但是,签署修改后的 apk除非您有权访问用于签署原始 apk 的私钥,否则更新兼容是不可行的.

However, signing the modified apk in a way to make it update-compatible is unfeasible unless you have access to the private key that was used to sign the original apk.

这篇关于甚至可以通过向 .dex 添加附加类并使用修改后的 manifest.xml 重新打包来修改 .apk 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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