Vector LSPosed CI v2.0 (3046)

Vector LSPosed CI v2.0 (3046)


๐Ÿ‘† The date above is this telegra.ph page's creation date, not the update date.
Actual update : 21-07-2026 06:01 UTC
Changelogs below ๐Ÿ‘‡


  • v2.0 (3046)

Fix Re-optimize crash on Android 17 by using the ART Service (#787)

The manager's "Re-optimize" action cleared an app's profile and recompiled it

through two hidden IPackageManager binder calls, clearApplicationProfileData()

and performDexOptMode(). Android 17 removes both from framework.jar, so the

daemon crashed with NoSuchMethodError.

Dexopt and profiles have been owned by the ART Service since Android 14, which

exposes the same operations through the package shell (cmd package art

clear-app-profiles / cmd package compile). Route through the shell on Android

14+ and keep the binder calls for older releases; when a shell command fails,

fall back to the binder call, which is still available on Android 14 through 16.

Both steps now live in a single PackageOptimizer.optimize() that clears the

profile before the speed-profile recompile, since a stale profile would

otherwise constrain what the profile-guided compile rebuilds. The two service

methods collapse into one AIDL entry point, optimizePackage(), so the manager

triggers the whole operation in a single IPC.

Report Page