此工具包支持win 和 linux, 兼容x64和arm64双平台,使用方法查看:

bash modify_apk_name.sh

使用说明:

  bash modify_apk_name.sh <输入APK路径> <新的应用名称> [输出APK路径]

示例:

  bash modify_apk_name.sh myapp.apk "电视直播" final_output.apk

工具包下载:

file icon通用修改app名称工具.rar


prism-highlight prism-bash
bash modify_apk_name.sh mediaplayer-v1.1.15-arm64-v8a                                                                                                                                                             -release.apk "media直播" media.apk
[INFO] 优先使用本地 Java 环境: /vol1/1000/backuo/jre/bin/java
[INFO] 优先使用本地 keytool 工具: /vol1/1000/backuo/jre/bin/keytool
[INFO] 优先使用本地 zipalign.jar 工具
[INFO] 优先使用本地 apksigner.jar 工具

>>> [1/5] 反编译 APK: mediaplayer-v1.1.15-arm64-v8a-release.apk
I: Using Apktool 2.10.0 on mediaplayer-v1.1.15-arm64-v8a-release.apk with 4 thre                                                                                                                                                             ad(s).
I: Baksmaling classes.dex...
I: Loading resource table...
I: Decoding file-resources...
I: Loading resource table from file: /root/.local/share/apktool/framework/1.apk
I: Decoding values */* XMLs...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory

>>> [2/5] 修改应用名称为: media直播
[INFO] 应用名称引用了资源: @string/app_name (键值: app_name)
[INFO] 已更新: /vol1/1000/backuo/temp_unpacked/res/values/strings.xml

>>> [3/5] 重新打包中...
I: Using Apktool 2.10.0 with 4 thread(s).
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Copying libs... (/lib)
I: Copying libs... (/kotlin)
I: Copying libs... (/META-INF/services)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk into: /vol1/1000/backuo/temp_unsigned.apk

>>> [4/5] 优化与对齐 APK...
Aligning zip /vol1/1000/backuo/temp_unsigned.apk
Zip aligned successfully, took 56ms

>>> [5/5] 对 APK 进行签名并输出到: media.apk

>>> 验证签名结果:
Verifies
Verified using v1 scheme (JAR signing): true
Verified using v2 scheme (APK Signature Scheme v2): true
Verified using v3 scheme (APK Signature Scheme v3): true
Verified using v4 scheme (APK Signature Scheme v4): false
Verified for SourceStamp: false
Number of signers: 1
WARNING: META-INF/services/kotlinx.coroutines.CoroutineExceptionHandler not prot                                                                                                                                                             ected by signature. Unauthorized modifications to this JAR entry will not be det                                                                                                                                                             ected. Delete or move the entry outside of META-INF/.
WARNING: META-INF/services/kotlinx.coroutines.internal.MainDispatcherFactory not                                                                                                                                                              protected by signature. Unauthorized modifications to this JAR entry will not b                                                                                                                                                             e detected. Delete or move the entry outside of META-INF/.

==============================================
[SUCCESS] 恭喜!处理已完成。
输出文件路径: /vol1/1000/backuo/media.apk
==============================================

>>> 正在清理临时文件...
[INFO] 清理完毕。
root@fn:/vol1/1000/backuo# bash modify_apk_name.sh
使用说明:
  bash modify_apk_name.sh <输入APK路径> <新的应用名称> [输出APK路径]
示例:
  bash modify_apk_name.sh myapp.apk "电视直播" final_output.apk
root@fn:/vol1/1000/backuo# bash modify_apk_name.sh mediaplayer-v1.1.16-arm64-v8a                                                                                                                                                             -release.apk "media直播" media.apk
[ERROR] 输入的 APK 文件不存在: mediaplayer-v1.1.16-arm64-v8a-release.apk
root@fn:/vol1/1000/backuo# bash modify_apk_name.sh mediaplayer-v1.1.16-arm64-v8a                                                                                                                                                             -release.apk "media直播" media.apk
[INFO] 优先使用本地 Java 环境: /vol1/1000/backuo/jre/bin/java
[INFO] 优先使用本地 keytool 工具: /vol1/1000/backuo/jre/bin/keytool
[INFO] 优先使用本地 zipalign.jar 工具
[INFO] 优先使用本地 apksigner.jar 工具

>>> [1/5] 反编译 APK: mediaplayer-v1.1.16-arm64-v8a-release.apk
I: Using Apktool 2.10.0 on mediaplayer-v1.1.16-arm64-v8a-release.apk with 4 thre                                                                                                                                                             ad(s).
I: Baksmaling classes.dex...
I: Loading resource table...
I: Decoding file-resources...
I: Loading resource table from file: /root/.local/share/apktool/framework/1.apk
I: Decoding values */* XMLs...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory

>>> [2/5] 修改应用名称为: media直播
[INFO] 应用名称引用了资源: @string/app_name (键值: app_name)
[INFO] 已更新: /vol1/1000/backuo/temp_unpacked/res/values-zh-rTW/strings.xml
[INFO] 已更新: /vol1/1000/backuo/temp_unpacked/res/values/strings.xml
[INFO] 已更新: /vol1/1000/backuo/temp_unpacked/res/values-ja/strings.xml
[INFO] 已更新: /vol1/1000/backuo/temp_unpacked/res/values-ru/strings.xml
[INFO] 已更新: /vol1/1000/backuo/temp_unpacked/res/values-ko/strings.xml
[INFO] 已更新: /vol1/1000/backuo/temp_unpacked/res/values-de/strings.xml
[INFO] 已更新: /vol1/1000/backuo/temp_unpacked/res/values-fr/strings.xml
[INFO] 已更新: /vol1/1000/backuo/temp_unpacked/res/values-en/strings.xml

>>> [3/5] 重新打包中...
I: Using Apktool 2.10.0 with 4 thread(s).
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Copying libs... (/lib)
I: Copying libs... (/kotlin)
I: Copying libs... (/META-INF/services)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk into: /vol1/1000/backuo/temp_unsigned.apk

>>> [4/5] 优化与对齐 APK...
Aligning zip /vol1/1000/backuo/temp_unsigned.apk
Zip aligned successfully, took 92ms

>>> [5/5] 对 APK 进行签名并输出到: media.apk

>>> 验证签名结果:
Verifies
Verified using v1 scheme (JAR signing): true
Verified using v2 scheme (APK Signature Scheme v2): true
Verified using v3 scheme (APK Signature Scheme v3): true
Verified using v4 scheme (APK Signature Scheme v4): false
Verified for SourceStamp: false
Number of signers: 1
WARNING: META-INF/services/kotlinx.coroutines.CoroutineExceptionHandler not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
WARNING: META-INF/services/kotlinx.coroutines.internal.MainDispatcherFactory not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.

==============================================
[SUCCESS] 恭喜!处理已完成。
输出文件路径: /vol1/1000/backuo/media.apk
==============================================

>>> 正在清理临时文件...
[INFO] 清理完毕。