Skip to content
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

Prevent loading from resource pool if type is not a resolveable resource #3187

Merged
merged 2 commits into from
Jul 21, 2023

Conversation

iBotPeaches
Copy link
Owner


In testing I noticed that we were attempting to resolve any value from the resource pool and string pool. This doesn't makes sense all the time for the resource pool for all types. For example, if we got a type float (0x04) we'd cast it and shift it to resourceId from the local package. It might/might-not find a resource - thankfully it was always wrong so it didn't win out. It was however inefficient.

@iBotPeaches
Copy link
Owner Author

@IgorEisberg - May you try this out and see if it resolves your issue? It should be an improvement from my last pr without leading to hammering framework calls with bs values.

@IgorEisberg
Copy link
Contributor

@iBotPeaches Indeed, the problem seems to be properly eliminated.
Even tested with an APK that expects 3 frameworks, works as good as on 2.7.1.
GG!

@iBotPeaches iBotPeaches merged commit d4ec44d into master Jul 21, 2023
31 checks passed
@iBotPeaches iBotPeaches deleted the optimize-attribute-value-lookup branch July 21, 2023 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Regression: Apktool tries to load unexpected framework packages
2 participants