Comments (4)
写个父类,复写相关方法,直接注入即可
不写父类不行哈,系统的类肯定无法注入的
from hibeaver.
我也是这么做的,但是感觉好蠢。。
from hibeaver.
我有个一思路,在visit的时候读取该类的父类,发现如果是fragment,就修改其继承关系,让它继承我自己封装好的一个baseFragment,但是失败了。我感觉思路应该没有问题,但是asm的代码我不太熟,写的可能有问题,最后失败了。
from hibeaver.
我有个一思路,在visit的时候读取该类的父类,发现如果是fragment,就修改其继承关系,让它继承我自己封装好的一个baseFragment,但是失败了。我感觉思路应该没有问题,但是asm的代码我不太熟,写的可能有问题,最后失败了。
写个父类,复写相关方法,直接注入即可
不写父类不行哈,系统的类肯定无法注入的
我有尝试新增方法,但是dex过程会报错
from hibeaver.
Related Issues (20)
- 能否发一个hibeaver的包 HOT 1
- 可否实现对实现接口匿名内部类的支持 HOT 2
- 博主你好,如果activity本身没重写onResume方法的话,要怎么拦截呢 HOT 1
- Conflict with realm transform HOT 1
- 发现windows下的一个bug HOT 3
- 插件不进入transfer()方法
- build falied why? HOT 1
- 遇到一个SimException HOT 1
- 如何调用super方法
- 使用中各种困惑,大家加下群897830757 一起讨论下
- 可以新增方法吗 HOT 2
- 排除某些类失效 HOT 1
- groovy.lang.MissingMethodException: No signature of method: HOT 1
- ButterKnife 注册的onclick 怎么插装? 目前看好像有写但是插入不进去
- 没有进入modifyClasses方法
- 能不能直接用自己修改过的类替换掉第三方原来的? HOT 1
- jenkins配置自动化打包,第一次编译的时候报错
- 系统类可以hook到吗?
- 失败了,控制台打印的数据如下,什么原因呢 HOT 3
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 hibeaver.