Comments (8)
I am not good at C, C++.
but i guess 'clazz' should be replaced,when replace method.
from andfix.
EventBus.java:
List<SubscriberMethod> subscriberMethods = subscriberMethodFinder.findSubscriberMethods(subscriber.getClass());
there have save the class here.
from andfix.
@JuanbingTeam how about Art?
from andfix.
@supern never tested on ART....
我的意思是.....Eventbus 存的class name是 onCreate执行时的this。 onCreate执行的是patch里的方法,这时的class name是带_CF后缀的。
关键点是 执行被替换掉的方法的过程中,获得的class上下文信息,也应该是 原有方法的。EventBus就是直接获取Class上下文的,结果它获得的是修改后的方法的Class上下文(带CF后缀的)。
from andfix.
@JuanbingTeam 这个问题你解决了吗?是不是只在Art上有问题?
from andfix.
@THEONE10211024 最近比较忙,没有跟进测试。 当时的问题是不止 ART的。
这个问题可以避免,尽量将大方法抽成小的函数就能避免此类问题了。
from andfix.
怎么解决啊?
from andfix.
我也遇到了java.lang.NoClassDefFoundError,然后报X.X.MainApplication_CF的错误,这时我的修改是,调用PatchManager patchManager = new PatchManager(this); patchManager.init("1.0.0"); patchManager.loadPatch();
在Application子类的onCreate前执行,addPath方法在一个Activity错误前调用。测试结果通过了,手机是华为3X,系统Android 4.3;moto X,系统 5.1.1,不过问题中是llegalArgumentException,估计差不多吧
from andfix.
Related Issues (20)
- 为什么阿里出的东西怎么都是这么坑,没人维护 HOT 2
- 能否开放清除已加载的补丁的api呢。因为有的机型加载多个补丁就会报错!
- 部分云os设备会伪造自己的属性,导致crash
- 提示已经加载补丁了,还是没生效啊
- 在api26上修复失败 HOT 1
- 我比较好奇的是为何国人出的框架说明文档还要用英文来写? HOT 5
- 0.5.0 app混淆一运行就报 Caused by: java.lang.RuntimeException: failure in processEncodedAnnotation
- 0.5.0最新版本,API23,第一次修复成功,当再次启动时会报异常
- 6.0 SignatureException
- 0.50 6.0 IllegalAccessError HOT 3
- 安卓5.1打补丁报错 HOT 1
- 看日期两三年前,不更新维护了吗
- AndFix logo proposal
- 不支持androidP吧 HOT 1
- I run your demo,but One of the prints is: “/com.euler.andfix E/euler: 10==a ” ,Shouldn't it be 11=a?
- 一个Release版本都没有,还真是 阿里风格 【开源就停更】
- Why this repo not Updated HOT 1
- 对,已经停止更新维护了 HOT 1
- fixed apk , fixed method returned string not working fine HOT 3
- AndFix项目4年未更新了, 最高支持到Android 7.0,高版本亲测无效 HOT 2
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 andfix.