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

fix: add missing hasResources check #3182

Merged
merged 1 commit into from
Jul 20, 2023
Merged

fix: add missing hasResources check #3182

merged 1 commit into from
Jul 20, 2023

Conversation

IgorEisberg
Copy link
Contributor

There's a missing check for hasResources in ApkDecoder, which causes minSdkVersion to be force-replaced for APKs also, not just for JARs, which often causes an inconsistency with the original APK.
As such, the hasResources of ResourcesDecoder must be public (ideally "package-private", but ResourcesDecoder is in "res" sub-package so that is not viable).
Also made hasManifest public for consistency's sake to avoid confusion and open it for possible usage in ApkDecoder in the future.

@iBotPeaches iBotPeaches merged commit 2610033 into iBotPeaches:master Jul 20, 2023
31 checks passed
iBotPeaches added a commit that referenced this pull request Jul 20, 2023
@iBotPeaches
Copy link
Owner

thanks!

@iBotPeaches iBotPeaches added this to the v2.8.1 milestone Jul 20, 2023
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.

None yet

2 participants