Remove featuredMethod

This commit is contained in:
Nullptr 2023-07-20 22:46:12 +08:00
parent 43c4837d07
commit b56c9fb4bd
No known key found for this signature in database
2 changed files with 0 additions and 22 deletions

View File

@ -18,7 +18,6 @@ interface IXposedService {
String getFrameworkVersion() = 3;
long getFrameworkVersionCode() = 4;
int getFrameworkPrivilege() = 5;
Bundle featuredMethod(String name, in Bundle args) = 6;
// scope utilities
List<String> getScope() = 10;

View File

@ -218,27 +218,6 @@ public final class XposedService {
}
}
/**
* 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
* @throws ServiceException If the service is dead or error occurred
* @deprecated Normally, modules should never rely on implementation details about the Xposed framework,
* but if really necessary, this method can be used to acquire such information
*/
@Deprecated
@Nullable
public Bundle featuredMethod(@NonNull String name, @Nullable Bundle args) {
try {
return mService.featuredMethod(name, args);
} catch (RemoteException e) {
throw new ServiceException(e);
}
}
/**
* Get the application scope of current module.
*