Skip to content

Bump core to Vector c4a701a to stop the launch crash on Android 17 - #133

Open
hyowonbernabe wants to merge 1 commit into
JingMatrix:masterfrom
hyowonbernabe:bump-core-android17
Open

hyowonbernabe wants to merge 1 commit into
JingMatrix:masterfrom
hyowonbernabe:bump-core-android17

Conversation

@hyowonbernabe

Copy link
Copy Markdown

A patched app dies at launch on Android 17 with a SIGSEGV in liblspatch.so, right after Modules initialized.

Cause. The crash is in HookBridge.makeFieldWritable. Android 17 marks a direct field pointer in the high bits of the jfieldID (bit 55). The pinned core (e00c5c5, 2026-08-22) dereferences that id as an ArtField without clearing the tag, so it reads a bad address. Vector fixed it in c4a701a ("Decode a jfieldID before dereferencing it as an ArtField", 2026-09-02). The pinned core is four commits before that, so every LSPatch build so far, including canary 492, still crashes.

Change. Moves core from e00c5c5 to c4a701a. Nothing else changes.

Verified. I built this branch and patched Messenger (com.facebook.orca 587.0.0.54.96) with it:

  • Vivo X300 Ultra, Android 17 (vivo/V2562/V2562:17/CP2A.260605.016_T1_V000L1): before, the app dies about one second after launch; after, it stays up and runs normally.
  • The same crash appears on a Pixel that updated to Android 17.

Stock canary 492, before:

I LSPatch : Modules initialized
F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x008000006f8568bc
  #00 pc 000000000004dd68  base.apk!liblspatch.so

0x0080000000000000 is the stray tag bit; disassembly shows the faulting load is the access_flags_ read that precedes clearing kAccFinal.

Signature bypass level 1 and 2 both crash, so it is not the bypass code.

A patched app dies at launch on Android 17 with SIGSEGV in
liblspatch.so, right after "Modules initialized". The crash is in
HookBridge.makeFieldWritable: Android 17 marks a direct field pointer
in the high bits of the jfieldID (bit 55), and the pinned core
dereferences it as-is.

Vector fixed this in c4a701a ("Decode a jfieldID before dereferencing
it as an ArtField"). The pinned core (e00c5c5) is four commits before
it, so every LSPatch build so far still crashes.

Moves core from e00c5c5 to c4a701a. Nothing else changes.
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.

1 participant