Search code examples
androidapk

How to change existing .apk application id?


I have existing .apk file and need to change applicationId.

I know how to change application id in build.gradle, but not sure how to change application id of existing (already built) .apk file (not java package names).

Is it possible?


Solution

  • If you want to rename the package name then there exists some projects on github that will let you rename the package of a given APK. I have tested it myself and it worked on most of my APKs but not on all. You can give it at least a try:

    https://github.com/testwhat/PackageRenamer

    https://github.com/sjitech/ApkRename (my recommendation)

    Please not that it might not be legal to modify APKs you don't are the owner off! And you will also have to sign the app after you have changed it but this could be done using an own key e.g. a debug key.