Skip to content

Commit 01aa8bb

Browse files
committed
Don't force apps to compile during the boot process
This change reverts the following commits: 01c3244 f5967d5 They have become obsolete by a change in Xposed's ART libraries which allows the system to use the dex from .odex files in interpret-only mode (i.e. the compiled code is ignored). This works out-of-the-box on stock ROMs where the image checksums match (because the image hasn't been recompiled) and no Xposed version check prevents the usage of the .odex file.
1 parent 21c8ea5 commit 01aa8bb

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

app/src/main/java/de/robv/android/xposed/XposedBridge.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -236,18 +236,6 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
236236
XC_LoadPackage.callAll(lpparam);
237237

238238
if (Build.VERSION.SDK_INT >= 21) {
239-
// Force dex2oat while the system is still booting to ensure that system content providers work.
240-
findAndHookMethod("com.android.server.pm.PackageManagerService", cl, "performDexOpt",
241-
String.class, String.class, boolean.class, new XC_MethodHook() {
242-
@Override
243-
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
244-
Object instance = (Build.VERSION.SDK_INT >= 23)
245-
? getObjectField(param.thisObject, "mPackageDexOptimizer") : param.thisObject;
246-
if (getObjectField(instance, "mDeferredDexOpt") != null)
247-
param.args[2] = true;
248-
}
249-
});
250-
251239
// Huawei
252240
Class<?> clsHwPackageManager = findClassIfExists("com.android.server.pm.HwPackageManagerService", cl);
253241
if (clsHwPackageManager != null) {

0 commit comments

Comments
 (0)