-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set bundle config to deduplicate resource entries after obfuscation
Summary: This diff makes ObfuscateResourcesPass twiddle a BundleConfig.pb file option (if input is .aab file) to get more benefits out of what it does. One of ObfuscateResourcesPass's tasks is to rename resource entries to "name removed" and thus, so it makes sense for this pass to turn on the bundle config option telling the final apk creation to look for identical (ResTable_entry, Res_value) since ObfuscateResourcesPass is largely responsible for making things identical. Sidenote: this option only takes effect in recent versions of bundletool, as google/bundletool@8ab1a9f#diff-285d19cf023954460f3466b1efa792eea6b66cf787f52547c1cd5fe206811e0a finally implements this (Redex has been performing this functionality on .apk files for a while now). Reviewed By: longinoa Differential Revision: D42380391 fbshipit-source-id: cff5406eea32a9bcd5d461981564e3c505d9d273
- Loading branch information
1 parent
4c00d35
commit b309244
Showing
7 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters