Comments (4)
plz refer https://github.com/alibaba/dexposed/blob/master/dexposed/src/main/java/com/taobao/android/dexposed/DexposedBridge.java#L222
and
https://github.com/alibaba/dexposed/blob/master/dexposed/src/main/java/com/taobao/android/dexposed/DexposedBridge.java#L256
when before and after method occur exception,it should be catched!
and if the orignal method crash,it only try catch InvocationTargetException,(https://github.com/alibaba/dexposed/blob/master/dexposed/src/main/java/com/taobao/android/dexposed/DexposedBridge.java#L243), so you should try catch your exception in your orignal method.
from dexposed.
what i means is if the target method has try-catch blocked. will directly crash VM
example :
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
String a = null;
try {
a.toString();
} catch (Exception e) {
e.printStackTrace();
}
Log.i("dexposed", "before");
}
as you can see,we already try-catch null point exception.but when VM try to fillStackTrace will lead VM directly crashed. make sense and any help ?
and the Crash log like this :
backtrace:
12-22 14:32:55.134 I/DEBUG ( 424): #00 pc 002324ee /system/lib/libart.so (art::CountStackDepthVisitor::VisitFrame()+297)
12-22 14:32:55.134 I/DEBUG ( 424): #1 pc 0022da3d /system/lib/libart.so (art::StackVisitor::WalkStack(bool)+272)
12-22 14:32:55.135 I/DEBUG ( 424): #2 pc 002388d9 /system/lib/libart.so (_jobject* art::Thread::CreateInternalStackTrace(art::ScopedObjectAccessAlreadyRunnable const&) const+76)
from dexposed.
Could you tell me your phone type,and the android verison?
from dexposed.
nexus 5 . android 5.0
from dexposed.
Related Issues (20)
- Dexposed停止更新了吗 HOT 4
- How can I load the patch's image resource? HOT 2
- Build Issues with AOSP HOT 2
- dexposed对art的支持什么时候可以更新到 HOT 2
- Duplicate files copied in APK HOT 2
- AndFix针对JNI c回调JAVA各种bug,dexposed听说可以hook native层? HOT 5
- method循环调用 HOT 3
- Class ref in pre-verified class resolved to unexpected implementation HOT 1
- StackOverflowError
- Support ART? HOT 1
- 为毛我觉得这项目已经死了。。 HOT 5
- Android 6.0支持? HOT 1
- update? HOT 1
- 请问dexposed后期还会更新吗?会支持高版本系统吗? HOT 2
- Is this lib still being developing? HOT 1
- 红米Note2 MIUI8 5.0.1闪退,dev_art HOT 1
- 小米4 CM13闪退 HOT 2
- 兼容性极差,进去就crash HOT 1
- 请问是停止维护了吗。。
- hook构造方法的时候 有几率不生效 华为P20 HOT 1
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 dexposed.