Get all method names of an Android class using Frida

This simple JS code will print all the method names of an Android class


setImmediate(function() {
    console.log("[*] Starting script");

        Java.perform(function () {
            var Activity = Java.use("path/to/classname");                       
            console.log(Object.getOwnPropertyNames(Object.getPrototypeOf(Activity)))
        });

})

Leave a Reply

Your email address will not be published. Required fields are marked *