fix: resolve Bluetooth breakage on 32-bit (armeabi-v7a) devices - #734
Open
invalidsudo wants to merge 1 commit into
Open
fix: resolve Bluetooth breakage on 32-bit (armeabi-v7a) devices#734invalidsudo wants to merge 1 commit into
invalidsudo wants to merge 1 commit into
Conversation
Member
|
I thought Google removed 32bit support starting A13 (the set minsdk of the app) |
Author
True, but I believe it's still a useful fix for those running low-end hardware in 2026. For example, I'm running a LineageOS 23.2 arm32/binder64 GSI on a bootloader unlocked Sonim XP3+ flip phone. Before these changes, enabling the Xposed module caused the Bluetooth process to crash because it was using 64-bit instructions on my 32-bit device, but now it should work on both arm64 and arm32. I can use LibrePods with AirPods Pro 2 on my flip phone, which I think is pretty cool :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes Bluetooth breakage on 32-bit (armeabi-v7a) devices when the Xposed module is enabled and scopes are active.
Root cause
The native hook implementation (l2c_fcr_hook.cpp) used fixed 64-bit ELF structures (Elf64_Ehdr, Elf64_Shdr, etc.) to resolve function symbols in Bluetooth system libraries. On 32-bit devices, these structures are mismatched, resulting in incorrect symbol offsets. Applying hooks at these invalid addresses causes the Bluetooth process to crash or malfunction, preventing Bluetooth from being turned on. Additionally, redundant calls in the BTA_DmSetLocalDiRecord hook contributed to potential instability.
Changes
Verification