android: Galaxy S26 / Samsung One UI 9 without root - #744
Open
Andrii-Antoniuk wants to merge 2 commits into
Open
android: Galaxy S26 / Samsung One UI 9 without root#744Andrii-Antoniuk wants to merge 2 commits into
Andrii-Antoniuk wants to merge 2 commits into
Conversation
Samsung's L2CAP fix ships in One UI 9, but betas can still report SDK 36 so the allowlist rejected S26. Detect One UI 9 via Samsung properties, create sockets with fd=-1, and tell One UI 8.5 users there is no no-root workaround. Co-authored-by: Cursor <cursoragent@cursor.com>
Detect One UI 9 during first launch by loading bluetooth_socket in Application, treat a known One UI 8.x property as unsupported even if SEM looks like 9, prefer the secure L2CAP factory, and cover the allowlist. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Built an independent APK with this commit and can confirm this works on the Fold8 with One UI 9 |
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
ro.build.version.oneui/SEM_PLATFORM_INT, not only SDK 37. One UI 9 betas can still report SDK 36, which previously sent S26 users to the unsupported screen.fd=-1(AOSP client sockets) and fall back toBluetoothDevice.createInsecureL2capSocket, which Samsung’sBluetoothSocketotherwise mishandles whenfd=1.Maintainer already confirmed One UI 9 beta works on S26 Ultra in #487 (comment) (GitHub APK). This PR makes the in-app allowlist match that.
Test plan
CP1A*) and OnePlus/Oppo on ColorOS/OxygenOS 16: still allowedMade with Cursor