Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to re-optimize apps #1

Closed
1 task done
aayushrautela opened this issue Jul 24, 2024 · 2 comments
Closed
1 task done

Failed to re-optimize apps #1

aayushrautela opened this issue Jul 24, 2024 · 2 comments
Labels
question Further information is requested

Comments

@aayushrautela
Copy link

Steps to reproduce/复现步骤

  1. Try to optimize app from lsposed
  2. It fails

Expected behaviour/预期行为

App should optimize successful

Actual behaviour/实际行为

It fails to optimize.
Screenshot_20240723-230209

Xposed Module List/Xposed 模块列表

Snap enhance

Magisk Module List/Magisk 模块列表

Play integrity, YouTube, shamiko.

LSPosed version/LSPosed 版本

7068

Android version/Android 版本

15 beta 4

Magisk version/Magisk 版本

Kernel SU

Riru version/Riru 版本

N/A

Version requirement/版本要求

  • I am using latest debug CI version of LSPosed and enable verbose log/我正在使用最新 CI 调试版本且启用详细日志

Logs/日志

LSPosed_2024-07-24T21_42_35.111574.zip

@aayushrautela aayushrautela added the bug Something isn't working label Jul 24, 2024
@JingMatrix
Copy link
Owner

JingMatrix commented Jul 24, 2024

This should be a bug for Android 15 instead of LSPosed.

To understand the background of Re-optimize, please see the docs of Configure ART.
In LSPosed, we simply call the system API to configure the compiler filters:

public static boolean performDexOptMode(String packageName) throws RemoteException {
IPackageManager pm = getPackageManager();
if (pm == null) return false;
return pm.performDexOptMode(packageName,
SystemProperties.getBoolean("dalvik.vm.usejitprofiles", false),
SystemProperties.get("pm.dexopt.install", "speed-profile"), true, true, null);
}

Hence, there is nothing more we can do from LSPosed to obtain a valid re-optimze result.

@JingMatrix JingMatrix added question Further information is requested and removed bug Something isn't working labels Jul 29, 2024
JingMatrix added a commit that referenced this issue Sep 12, 2024
Close #28 #1 as completed.
It would be better to induce this env from somewhere else if possible.
@JingMatrix
Copy link
Owner

@aayushrautela This is fixed in the latest build.

JingMatrix pushed a commit that referenced this issue Sep 12, 2024
chore: update latest stable dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants