简体   繁体   中英

How to rename an apk package name with aapt / apktool?

I'm looking to rename an apk package name with existing tools like aapt or apktool.

Found this question that is related: Rename package name using aapt

I tried to adapt the command aapt p -f --rename-manifest-package com.mynewpackagename -M AndroidManifest.xml -F myapp.apk -I android.jar -S res

But it gives an error.

You can decompile the apk using apktool: apktool d apk_path.apk and change this property in apk_path/apktool.yml

renameManifestPackage: new.package.name

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM