Hy my professor asked how you can print the contents of the variables within a class he provided us with an apk to be launched and analyzed with frida:
package com.test_uni_apk.lib.proftest;
public class ProfApi{
public static class StateReady
extends ProfApi.CallState
{
public CallStateReady() {}
public CallStateReady(ProfApi.CallProc paramCallProc,
ProfApi.CallConnection[] paramArrayOfCallConnection, String
paramString, byte[] paramArrayOfByte, String[] paramArrayOfString)
{
this.printthis = paramArrayOfCallConnection;
}
}
}
I read that with frida you can hook a class but I do not understand how to print the value of printthis.
I will assume
CallStateReady
is an inner class ofcom.test_uni_apk.lib.proftest.ProfApi
and you want to hook the c'tor and print the second parameter #PleaseSubmitElegantCode