Skip to content

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
@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