Frida wait for Android Java class to loaded - Stack Overflow

I tried to hook on Java Android class but when the application is spawn that class is not loaded yet.S

I tried to hook on Java Android class but when the application is spawn that class is not loaded yet.

So I got Error: java.lang.ClassNotFoundException: Didn't find class ....

I tried that code link

Java.perform(function x() {
var classFactory;
const classLoaders = Java.enumerateClassLoadersSync();
for (const classLoader in classLoaders) {
    try {
    console.log( classLoaders[classLoader]);

        classLoaders[classLoader].findClass("com.a.b.c");
          
        classFactory=Java.ClassFactory.get( classLoaders[classLoader]);
        
         console.log("find !!!!" +classFactory);
        break;
         
    } catch (e) {
        console.log("error " + e);
        continue;
    }
}


});

But that not help , if I will wait few seconds the class will load

How can I wait for that with Frida code ?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745203714a4616481.html

相关推荐

  • Frida wait for Android Java class to loaded - Stack Overflow

    I tried to hook on Java Android class but when the application is spawn that class is not loaded yet.S

    13小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信