Skip to content

Skip re-optimize when the method not found#445

Merged
JingMatrix merged 1 commit intomasterfrom
reoptimize
Nov 8, 2025
Merged

Skip re-optimize when the method not found#445
JingMatrix merged 1 commit intomasterfrom
reoptimize

Conversation

@JingMatrix
Copy link
Copy Markdown
Owner

In Android 16 beta qpr2, the method performDexOptMode is removed. We now skip this method call when the method is not found to avoid daemon crash.

Once the source of AOSP is released publicly, we may start implementing a better solution.

@JingMatrix
Copy link
Copy Markdown
Owner Author

JingMatrix added a commit that referenced this pull request Nov 8, 2025
When upgrading to gradle 9 +, we remove several unused tasks for development to simplify the process.

Close #385, #441, #445, #448, #462 as merged.
JingMatrix added a commit that referenced this pull request Nov 8, 2025
When upgrading to gradle 9 +, we remove several unused tasks for development to simplify the process.

Close #385, #441, #445, #448, #462 as merged.
JingMatrix added a commit that referenced this pull request Nov 8, 2025
When upgrading to gradle 9 +, we remove several unused tasks for development to simplify the process.

Close #385, #441, #445, #448, #462 as merged.
@JingMatrix
Copy link
Copy Markdown
Owner Author

It seems impossible to the use stub API for dexopt via commit 863af35 .

We shall invoke shell command directly.

Starting with Android 14 (API level 34), the Android Runtime (ART) Service handles on-device Ahead-Of-Time (AOT) compilation, also known as `dexopt`.
As a result, in Android 16 beta qpr2, the method `performDexOptMode` is removed.

See https://source.android.com/docs/core/runtime/configure/package-manager for details.
@JingMatrix JingMatrix marked this pull request as ready for review November 8, 2025 14:58
@JingMatrix JingMatrix merged commit 31e1906 into master Nov 8, 2025
1 check passed
fatalcoder524 pushed a commit to fatalcoder524/ReLSPosed that referenced this pull request Nov 13, 2025
Starting with Android 14 (API level 34), the Android Runtime (ART) Service handles on-device Ahead-Of-Time (AOT) compilation, also known as `dexopt`.
As a result, in Android 16 beta qpr2, the method `performDexOptMode` is removed.

See https://source.android.com/docs/core/runtime/configure/package-manager for details.
@HSSkyBoy
Copy link
Copy Markdown

7723mod/NPatch#13
所以该问题已被修复?

@JingMatrix
Copy link
Copy Markdown
Owner Author

@HSSkyBoy There is no solution for non-root users, to do re-optimize on Android 16 beta 3+, by directly adopting the code of LSPosed.

It is however possible to achieve it via Shizuku.

@HSSkyBoy
Copy link
Copy Markdown

@HSSkyBoy

Alright, sir. I know

@JingMatrix JingMatrix deleted the reoptimize branch January 24, 2026 02:30
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.

2 participants