add class path to Frida script

Below is an example of how to add a path to a JS Frida script

function getEmailSignature () {
    console.log("[*] Starting script");
 
        Java.perform(function () {
            var Constants = Java.use("com.app.android.connector.Constants");
           
            var Activity = Java.use("com.app.android.connector.jsoncalls.LoginRestCalls");
            Activity.getEmailSignature.implementation = function (v1, v2, v3, v4, v5, v6, v7, v8, v9, v10) {
                console.log("Called!");
                console.log(v1);
                console.log(v2);
                console.log(v3);
                console.log(v4);
                console.log(v5);
                console.log(v6);
                console.log(v7);
                console.log(v8);
                console.log(v9);
                console.log(v10);
                console.log(Constants.APPLICATION_CODE.toString());
                //return this.getEmailSignature(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10);
            };
        });
}
 
setImmediate(getEmailSignature);


Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.