This is a lib to used for hook any android java codes by xposed api. It is based on the whale art hooking framwork. This is supported on android 5.0 to android 9.0 android system.
gradle
implementation 'com.wind.xposed:xposed-on-whale:0.1.3'
maven
<dependency>
<groupId>com.wind.xposed</groupId>
<artifactId>xposed-on-whale</artifactId>
<version>0.1.3</version>
<type>pom</type>
</dependency>
All the api are the same as the xposed framewortk api. eg:
XposedHelpers.findAndHookMethod(Class<?> clazz, String methodName, Object... parameterTypesAndCallback)
XposedHelpers.findAndHookMethod(String className, ClassLoader classLoader, String methodName, Object... parameterTypesAndCallback)
XposedBridge.hookAllMethods(Class<?> hookClass, String methodName, XC_MethodHook callback)
XposedBridge.hookAllConstructors(Class<?> hookClass, XC_MethodHook callback)
-keep class de.robv.android.xposed.**{*;}
-keep class com.lody.whale.**{*;}
-keep class com.lody.whale.WhaleRuntime{
*;
private *;
public *;
native <methods>;
}
-keepclasseswithmembers class * {
native <methods>;
}