Comments (2)
我也是无法织入,感觉我的调用方法没啥问题
from lancet.
虽然在 Proxy , Insert 中我们指定了方法名, 但识别方法必须要更细致的信息. 我们会直接使用 Hook 方法的修饰符,参数类型来匹配方法.
所以一定要保持 Hook 方法的 public/protected/private static 信息与目标方法一致,参数类型,返回类型与目标方法一致.
试试
@Proxy("onCreate")
@TargetClass("androidx.appcompat.app.AppCompatActivity")
protected void onCreate(Bundle savedInstanceState) {
Log.e("aaa", "AppCompatActivity.onCreate");
Origin.callVoid();
}
from lancet.
Related Issues (20)
- 哪位大佬有私有maven仓库? HOT 1
- 升级了下ASM6 有需要的自取 HOT 13
- 增量编译导致严重的问题
- proxy MessageQueue的enqueueMessage方法无效
- 不知是否有大佬实现一下lambda Interface
- lancet支持在应用中hook ActivityManagerService中的方法吗
- Lancet如何织入@hide的类 HOT 1
- 基于 字节跳动的ByteX 重写了一个版本,修复了部分BUG,加快插件编译速度,有需要的可以参考使用 HOT 2
- hook的成功标志是什么? HOT 1
- Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, HOT 2
- gradle 7.2.1 引入lancet插件报错 HOT 1
- NestHost requires ASM7
- Caused by: java.lang.UnsupportedOperationException: This feature requires ASM6 HOT 3
- 如何织入Onclick类型的接口回调方法
- 升级ASM9.1 , 适配Gradle7.5.1 AGP7.3.0 ,调整支持Java11 HOT 5
- 特意试过了,java项目可以跑起来,kotlin项目报需要asm6错误 HOT 4
- 打包失败谁遇到过?能否上架googleplay
- 使用@ClassOf 时报错:@ClassOf 's origin type should be parent in value HOT 1
- com.android.tools.r8.CompilationFailedException: Compilation failed to complete, position: Lcom/XXX/message/uikit/other/PageHelper$_lancet;<init>()V, origin: /Users/XXX/Documents/XXX/XXX/app/build/intermediates/transforms/lancet/debug/593.jar:com/XXX/message/uikit/other/PageHelper$_lancet.class
- 推荐使用 https://github.com/FlyJingFish/AndroidAOP 支持AGP 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lancet.