From ffbce13602612d270d132226e74b7bcfa2a8e8aa Mon Sep 17 00:00:00 2001 From: Nullptr Date: Thu, 20 Jul 2023 22:35:29 +0800 Subject: [PATCH] Remove featuredMethod --- .../github/libxposed/api/XposedContextWrapper.java | 9 --------- .../io/github/libxposed/api/XposedInterface.java | 13 ------------- 2 files changed, 22 deletions(-) diff --git a/api/src/main/java/io/github/libxposed/api/XposedContextWrapper.java b/api/src/main/java/io/github/libxposed/api/XposedContextWrapper.java index 2bc4eb4..b10cbdd 100644 --- a/api/src/main/java/io/github/libxposed/api/XposedContextWrapper.java +++ b/api/src/main/java/io/github/libxposed/api/XposedContextWrapper.java @@ -82,15 +82,6 @@ public class XposedContextWrapper extends ContextWrapper implements XposedInterf return getBaseContext().getFrameworkPrivilege(); } - /** - * {@inheritDoc} - */ - @Nullable - @Override - public final Object featuredMethod(String name, Object... args) { - return getBaseContext().featuredMethod(name, args); - } - /** * {@inheritDoc} */ diff --git a/api/src/main/java/io/github/libxposed/api/XposedInterface.java b/api/src/main/java/io/github/libxposed/api/XposedInterface.java index 519c2fb..f063a9e 100644 --- a/api/src/main/java/io/github/libxposed/api/XposedInterface.java +++ b/api/src/main/java/io/github/libxposed/api/XposedInterface.java @@ -4,7 +4,6 @@ import android.content.SharedPreferences; import android.content.pm.ApplicationInfo; import android.content.res.Resources; -import androidx.annotation.Discouraged; import androidx.annotation.NonNull; import androidx.annotation.Nullable; @@ -329,18 +328,6 @@ public interface XposedInterface { */ int getFrameworkPrivilege(); - /** - * Additional methods provided by specific Xposed framework. - * - * @param name Featured method name - * @param args Featured method arguments - * @return Featured method result - * @throws UnsupportedOperationException If the framework does not provide a method with given name - */ - @Discouraged(message = "Normally, modules should never rely on specific implementation of the Xposed framework. But if really necessary, this method can be used to acquire such information.") - @Nullable - Object featuredMethod(String name, Object... args); - /** * Hook before method unhooker. *