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: support alignment towards resTable_entry start #3452

Merged
merged 1 commit into from
Dec 4, 2023
Merged

Conversation

iBotPeaches
Copy link
Owner

@iBotPeaches iBotPeaches commented Dec 3, 2023

fixes: #3428


We are finding in applications (Android 14 QBR2) that we are 2 bytes short prior to reading ResTable_entry. Using entriesStart we can determine where the entries start. Normally we never needed to use this field and thus skipped it.

However, unless we have a bug and did miss reading 2 bytes - it seems padding/alignment is putting these entries at a different location. We can use entriesStart as intended and skip ourselves to that location when the res of the chunk is done reading.

@iBotPeaches iBotPeaches added this to the v2.9.1 milestone Dec 3, 2023
@iBotPeaches iBotPeaches merged commit a375717 into master Dec 4, 2023
25 checks passed
@iBotPeaches iBotPeaches deleted the issue-3428 branch December 4, 2023 10:58
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] Some Android 14 QPR2 APKs not supported
1 participant