For this particular example, using an Android 4.4 x86 emulator image is highly
recommended. This tool is based on the SECCON Quals CTF 2015 APK1 example,
download the APK here.
Save code as ctf.py and run as
Note we use
this.m.value = 0 instead of
this.m = 0 to set the field’s value. If there is also a method in this class called
m, we need to use
this._m.value = 0 to set the value of field
Example what we can do in the Java context
Below is an example which shows some posibilities with the Java context in Frida.