Skip to content

Fall back to libbase when libc++ has no room for the hook - #185

Merged
diabl0w merged 1 commit into
diabl0w:masterfrom
redzrush101:fix/doogee-t30-pro
Nov 6, 2026
Merged

diabl0w merged 1 commit into
diabl0w:masterfrom
redzrush101:fix/doogee-t30-pro

Conversation

@redzrush101

@redzrush101 redzrush101 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

On my DOOGEE T30 Pro, libc++ has only 112 bytes of tail space and no cave large enough for the payload.

Fall back to libbase's logging destructor when hook selection fails. Init calls it when reaping the orphan. This reuses the existing parser, payload and cleanup.

Tested after reboot on the T30 Pro: the fallback loaded the module, started KernelSU, and su -c id returned uid=0(root). Both libraries matched their original hashes after cleanup. Native build and six emulator checks also passed.

KernelSU on the test tablet

@diabl0w
diabl0w merged commit 7a6513a into diabl0w:master Nov 6, 2026
mitschud pushed a commit to mitschud/DirtyFrag that referenced this pull request Nov 7, 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