Giter VIP home page Giter VIP logo

Comments (4)

hwjump avatar hwjump commented on May 22, 2024

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.

xalexchen avatar xalexchen commented on May 22, 2024

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.

hwjump avatar hwjump commented on May 22, 2024

Could you tell me your phone type,and the android verison?

from dexposed.

xalexchen avatar xalexchen commented on May 22, 2024

nexus 5 . android 5.0

from dexposed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.