From c9c73de01d8734bad6fb4dbc8faec5b3887df894 Mon Sep 17 00:00:00 2001 From: DHD2280 Date: Wed, 11 Dec 2024 20:33:12 +0100 Subject: [PATCH] XPLauncher: reverted OOS15 edit for better performance on OOS14 Signed-off-by: DHD2280 --- .../main/java/it/dhd/oxygencustomizer/xposed/XPLauncher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/it/dhd/oxygencustomizer/xposed/XPLauncher.java b/app/src/main/java/it/dhd/oxygencustomizer/xposed/XPLauncher.java index 933b42aa..90c0a940 100644 --- a/app/src/main/java/it/dhd/oxygencustomizer/xposed/XPLauncher.java +++ b/app/src/main/java/it/dhd/oxygencustomizer/xposed/XPLauncher.java @@ -93,7 +93,7 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable { @Override protected void afterHookedMethod(MethodHookParam param) throws Throwable { try { - if (mContext == null) { //telecom service launches as a secondary process in framework, but has its own package name. context is not null when it loads + if (mContext == null || lpparam.packageName.equals(Constants.Packages.TELECOM_SERVER_PACKAGE)) { //telecom service launches as a secondary process in framework, but has its own package name. context is not null when it loads if (Build.VERSION.SDK_INT >= 35 && lpparam.packageName.equals(Constants.Packages.TELECOM_SERVER_PACKAGE)) return; if (param.args[2] == null) return; if (!(param.args[2] instanceof Context)) return;