androidandroid-manifestapkpackage-name

How to change an APK file package name, either using a PC or an Android device?


Background

As we all know the package-name of an app is like its ID to the world. however, some apps/devices use it sometimes for "dirty" tricks.

as an example, some devices are cheating on benchmarks by looking at which app is curently on the foreground (link here).

the question

suppose i have an apk file, even one that wasn't made by me, how can i change its app's package name?

is it even possible? i mean, changing the package name of an app might surely cause some problems , even when opening activities...

I wonder if it's possible to do so either on a PC or an Android device (or both, even with root permission if needed).

I've heard APK-tool can help with this, but couldn't find out how.

note: i don't mind that the process would create a new APK instead of modifying the original app.


Solution

  • there is a app called apk editor that you can use to (obviously) edit apks, just select the apk and press "common edit" or something along those lines and you can change the package name from there. dont make waaaay too many changes as the apk may stop working.