-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
occur crash #53
Comments
plz refer https://github.com/alibaba/dexposed/blob/master/dexposed/src/main/java/com/taobao/android/dexposed/DexposedBridge.java#L222 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. |
what i means is if the target method has try-catch blocked. will directly crash VM example : protected void beforeHookedMethod(MethodHookParam param) throws Throwable { backtrace: |
Could you tell me your phone type,and the android verison? |
nexus 5 . android 5.0 |
1.when i hook a method which inside has try-catch blocked,when catch blocked raise will lead app directly crash.
2. if inside call back method beforeHookMethod we create a exception object (new Exception()) also will cause app directly crash.it's any way to avoid or fixed it ?
The text was updated successfully, but these errors were encountered: