如何只编译 Android 应用程序的资源?

发布于 2024-12-29 02:06:01 字数 92 浏览 2 评论 0原文

我有一个未签名的 Android 应用程序。它已经编译完毕,我需要更改应用程序图标或应用程序名称,而无需项目编译。如何仅编译资源或将经常更改的参数设置到 RAW 目录中?

I have an unsigned Android application. It`s allready compiled and I need to change app Icon or application name without project compilation. How can I compile only resources or set my often changing params into the RAW dir?

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

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

发布评论

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

评论(2

美羊羊 2025-01-05 02:06:01

使用存档管理器打开并打开 res 文件夹,打开可绘制文件夹删除 icon.png 并将图标拖到该文件夹​​中。

使用 http://android.amberfog.com/?p=582 反编译您的清单

并更改您的应用程序名称并替换 apk 文件中的清单文件。

open with Archive Manager and open the res folder the open the drawable folder delete icon.png and drag your icon into that folder.

de-compile your manifest using http://android.amberfog.com/?p=582

and change your app name and replace manifest file in your apk file.

緦唸λ蓇 2025-01-05 02:06:01

尝试 Apktool

  1. apktool d 解压 .apk
  2. 修改所需资源
  3. apktool b -s 重建 .apk (-s 标志会跳过重新编译代码)。
  4. 重新签署 .apk(如果需要)

Try Apktool.

  1. apktool d <my-package> to unpack the .apk
  2. Modify the resources you need
  3. apktool b -s <my-package> to rebuild the .apk (-s flag skips recompiling the code).
  4. Re-sign the .apk (if needed)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文