Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Option to rename only applicationId while keeping package name. #3011

Closed
MikuAuahDark opened this issue Mar 1, 2023 · 1 comment
Closed

Comments

@MikuAuahDark
Copy link

Is your feature request related to a problem? Please describe.
In newer Android, "package name" and "applicationId" are no longer interchangeable. However in APKTool 2.7.0, changing the package in AndroidManifest.xml (or specifying renameManifestPackage in apktool.yml) changes both, and without proper checking through the smali files, will result in app fails to launch because it looks for wrong R classes.

Describe the solution you'd like
Option in apktool.yml to specify the new applicationId or command-line option to override the applicationId. This will keep "package name" intact but changes the applicationId alone.

Additional context
https://developer.android.com/studio/build/configure-app-module

Note: The application ID used to be directly tied to your code's package name, so some Android APIs use the term "package name" in their method names and parameter names. This is actually your application ID. For example, the Context.getPackageName() method returns your application ID. There's never a need to share your code's true package name outside your app code.

Quick look at AAPT2, it seems possible with --rename-resources-package.

@iBotPeaches
Copy link
Owner

Seems like a sane request. Added label.

Repository owner locked and limited conversation to collaborators Jul 17, 2023
@iBotPeaches iBotPeaches converted this issue into discussion #3163 Jul 17, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants