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;