Skip to content

fix: Resolve BusError when running 32-bit binary on armv8 with compatibility#32

Merged
oSumAtrIX merged 1 commit into
ReVanced:mainfrom
Taknok:dev
Apr 5, 2026
Merged

fix: Resolve BusError when running 32-bit binary on armv8 with compatibility#32
oSumAtrIX merged 1 commit into
ReVanced:mainfrom
Taknok:dev

Conversation

@Taknok

@Taknok Taknok commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

…tibility

When a 32-bit Android system runs on an ARMv8 device, Android reports to
ReVanced that only 32-bit ABIs are supported. As a result, the ARMv7
binary is selected.

Although ARMv8 provides a compatibility mode for 32-bit binaries, this
mode is stricter than native ARMv7 execution, especially regarding
memory alignment and structure layout.

The modifications made to the C++ structures in apktool introduced a
memory misalignment, which is tolerated on ARMv7 but triggers a BusError
on ARMv8 in 32-bit compatibility mode.
@Ushie

Ushie commented Apr 3, 2026

Copy link
Copy Markdown
Member

Hey! thanks for the PR :)

Do you mind git resetting and only including the latest commit?

@Taknok

Taknok commented Apr 3, 2026

Copy link
Copy Markdown
Contributor Author

Ok but dev branch is missing the commit of OsumAtrIX, and the PR directly targetting the main of corentin-c

@Taknok

Taknok commented Apr 3, 2026

Copy link
Copy Markdown
Contributor Author

Do you want to merge the modification of main into dev in another PR ? Or do you want to rebase the dev onto main before I reset py PR ?

@Ushie

Ushie commented Apr 3, 2026

Copy link
Copy Markdown
Member

Oh in that case just leave them in, I didn't know dev was desynced from main

@oSumAtrIX

Copy link
Copy Markdown
Member

Oh yeah, dev branch on aapt repo is new, tbh i dont think we need a dev branch yet, until we have heavy development around here, basing on main...

@oSumAtrIX oSumAtrIX changed the base branch from dev to main April 5, 2026 19:37
@oSumAtrIX

Copy link
Copy Markdown
Member

Is this identical to our earlier fix we had on aapt2? @Axelen123

Also is this PR ready as is, I saw your comment on the related issue regarding armv8 compatibility mode

@Taknok

Taknok commented Apr 5, 2026

Copy link
Copy Markdown
Contributor Author

Is this identical to our earlier fix we had on aapt2? @Axelen123

Yes it is.

Also is this PR ready as is, I saw your comment on the related issue regarding armv8 compatibility mode

Yes, the revanced manager linked in the issue 30 use the aapt2 with this fix. Feedback of users on github and discord is positive: they patch without issue.

@oSumAtrIX

oSumAtrIX commented Apr 5, 2026

Copy link
Copy Markdown
Member

Awesome, thanks!

@oSumAtrIX oSumAtrIX changed the title Fix: #30 BusError when running 32b binary on armv8 with compatibility fix: #30 BusError when running 32b binary on armv8 with compatibility Apr 5, 2026
@oSumAtrIX oSumAtrIX changed the title fix: #30 BusError when running 32b binary on armv8 with compatibility fix: Resolve BusError when running 32-bit binary on armv8 with compatibility Apr 5, 2026
@oSumAtrIX oSumAtrIX merged commit be4a3b7 into ReVanced:main Apr 5, 2026
4 checks passed
github-actions Bot pushed a commit that referenced this pull request Apr 5, 2026
# [1.1.0](v1.0.0...v1.1.0) (2026-04-05)

### Bug Fixes

* [#30](#30) BusError when running 32b binary on armv8 with compatibility ([#32](#32)) ([be4a3b7](be4a3b7))

### Features

* Use 16 KB ELF alignment ([#20](#20)) ([62222bb](62222bb))
Taknok added a commit to Taknok/revanced-manager that referenced this pull request Apr 6, 2026
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.

3 participants