开发工具
工具名称 | 工具类型 | 说明 |
---|---|---|
AndroidStuduo | 编辑工具 | 开发工具 |
jadx | java工具 | 将apk解成java项目 |
xposed | 插件工具 | 插件 |
line | 版本 | 13.16.0 |
分析源码的点:
发送图片的点
回调
实现
public void sendImg(String toUserId, String path) throws Exception {
Class IMainChatDataModule = mHookClassLoader.loadClass("u71.e");
Class ComponentProviderWrapper = mHookClassLoader.loadClass("d10.d");
Class SendMessageEvent = mHookClassLoader.loadClass("dj0.h");
Object componentFactory = XposedHelpers.getStaticObjectField(IMainChatDataModule, "K4");
Object provider = XposedHelpers.getStaticObjectField(ComponentProviderWrapper, "a");
Object mainChatDataModuleImpl = XposedHelpers.callMethod(provider, "a", MHook.getInstance().getContext(), componentFactory);
Object messageDataManager = XposedHelpers.getObjectField(mainChatDataModuleImpl, "d");
Object sendMessageProcessor = XposedHelpers.getObjectField(messageDataManager, "z");
Object sendMessageEvent = XposedHelpers.newInstance(SendMessageEvent, sendMessageProcessor, null);
XposedHelpers.callMethod(sendMessageEvent, "f", toUserId, Uri.fromFile(new File(path)), false, false, false);
}
回调处理
这样那样 再 这样那样 就好了
其实就是在发消息的地方找特征点,然后在回调的地方匹配就行了