I've been trying to change the package name for an android apk, but I've ran into some trouble.
I changed the package name as per this answer, signed, and zipaligned it. However, whenever I try to adb install modified.apk
, it gives me the following error:
Failure [INSTALL_FAILED_DUPLICATE_PERMISSION]
How can I fix this? I have already tried changing all of the references to the old package name in the AndroidManifest.xml, but that caused some of the references to xml files in /res/
to break.
Any help would be appreciated.
Edit 12/15:
Still haven't figured this out and I can't find any documentation on this issue in the context of what I'm trying to do. Still looking for a solution.