如何编辑 Android 应用程序?

发布于 2024-11-26 01:50:05 字数 78 浏览 1 评论 0原文

我需要编辑一个 Android 应用程序,只是为了更改一些写错的文本。我有 .apk 文件,那么我该如何修改它们呢?

I need to edit an Android app just to change some text that was written incorrectly. I have the .apk files, so how would I modify them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

夏花。依旧 2024-12-03 01:50:05

一般来说,正如您在评论中所说,软件产品并不是您的“财产”。大多数时候(我不会不负责任地公开说任何话),它是许可给你的。使用某物的许可与拥有同一物(产权)不同。

那是因为它有作者权、版权、知识产权。我不知道美国(或你们国家)的情况如何,但人们普遍认为,思想的作品,创造性的作品,不得改变其本质,以使艺术的表达成为可能。与作者想要表达的意思不同。例如,在某些情况下,这适用于建筑作品(在大多数国家,未经建筑师事先同意,你不能改变建筑物的外观来“毁坏”建筑师的艺术作品)。显然,当作者明确授权此类更改(例如,知识共享许可证、开源许可证等)时,会出现例外情况。

无论如何,这就是为什么您会在大多数 EULA 中看到典型的句子:“此软件已获得许可,而非出售”。这就是目的和原因。

现在你已经明白了为什么你不能到处改变别人的艺术了,让我来谈谈技术

有多种可能的方法可以反编译 Java 程序。您可以使用 dex2jar,它为您开始寻找事物和更改提供了一个良好的开端。也许可以通过将各个部分重新安装在一起来重建代码。祝你好运,因为大多数人都会混淆他们的代码以使这变得更加困难。

不过,我要说的是,正如我上面所说,更改程序仍然是被禁止的。这是极其不道德的。让我感到难过的是,人们毫无顾忌地这样做(不是说这是你的情况,只是警告你)。它不应该需要人们在另一边才能理解这一点。或者也许这只是我,生活在一个盗版猖獗的国家。

工具总是在那里。但不幸的是,良心并不总是如此。

编辑:如果还不够清楚,我不批准使用这些程序。我自己用它们来检查我自己的应用程序被逆向工程的难度。但我也认为解释总是比否认好(最好在这里)。

Generally speaking, a software product isn't your "property already", as you said in the comment. Most of the times (I won't be irresponsible to say anything in open), it's licensed to you. A license to use some thing is not the same thing as owning (property rights) that very same thing.

That's because there are authorship, copyright, intellectual property rights applicable to it. I don't know how things work in United States (or in your country), but it's generally accepted that the work of a mind, a creative work, must not be changed in its nature as such to make the expression of art to be different than that expression that the author intended. That applies for example, in some cases, to architectural work (in most countries, you can't change the appearance of a building to "desfigure" the work of art of the architect, without his prior consent). Exceptions are made, obviously, when the author expressly authorizes such changes (e.g., Creative Commons licenses, open source licenses etc.).

Anyway, that's why you see in most EULAs the typical sentence: "this software is licensed, not sold". That's the purpose and reason why.

Now that you understand the reasons why you can't wander around changing other people's art, let me be technical.

There are possible ways to decompile Java programs. You can use dex2jar, it provides a somewhat good start for you to start looking for things and changes. And perhaps rebuild the code by mounting back the pieces together. Good luck, as most people obfuscate their codes to make that harder.

However, let me say that it's still forbidden to change programs, as I said above. And it's extremely unethical. It makes me sad that people do that with no scruples (not saying it's your case, just warning you). It shouldn't need people to be at the other side to understand that. Or maybe that's just me, who lives in a country where piracy is rampant.

The tools are always out there. But the conscience, unfortunately, not always.

edit: in case it isn't clear enough already, I do NOT approve the use of these programs. I use them myself to check how hard my own applications are to be reverse engineered. But I also think that explaning is always better than denial (better be here).

记忆で 2024-12-03 01:50:05

您需要按照 Davis 的建议反编译 apk,可以使用 apkTool 等工具,那么如果您需要更改源代码,您将需要其他工具来完成此操作。

然后,您需要将 apk 放回一起并对其进行签名,如果您没有用于签署 apk 的原始密钥,这意味着新的 apk 将具有不同的签名。

如果开发人员使用任何混淆或其他技术来保护应用程序,那么事情就会变得更加复杂。

简而言之,这是一个相当复杂和技术性的过程,因此,如果开发人员确实无法接触到,最好等到他接触到为止。下次还求源码。

You would need to decompile the apk as Davis suggested, can use tools such as apkTool , then if you need to change the source code you would need other tools to do that.

You would then need to put the apk back together and sign it, if you don't have the original key used to sign the apk this means the new apk will have a different signature.

If the developer employed any obfuscation or other techniques to protect the app then it gets more complicated.

In short its a pretty complex and technical procedure, so if the developer is really just out of reach, its better to wait until he is in reach. And ask for the source code next time.

心如荒岛 2024-12-03 01:50:05

首先你必须下载文件 x-plore 并安装它..
之后打开它并找到您要编辑的内容。
之后只需重命名文件即可
Xyz.apk 到 xyz.zip
之后打开该文件,您可以看到一些文件夹..然后只需去编辑应用程序..

First you have to download file x-plore and installed it..
After that open it and find the thoes you want to edit..
After that just rename the file
Xyz.apk to xyz.zip
After that open that file and you can see some folders.. then just go and edit the app..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文