(Continuation of frida/frida-gum#166.)
As described by @dpnishant:
This following script initially works as normal initially
if (ContextWrapper.getCacheDir) {
// Ref: https://developer.android.com/reference/android/content/ContextWrapper.html#getCacheDir()
ContextWrapper.getCacheDir.implementation = function() {
var cache_dir = this.getCacheDir.call(this);
console.log('Cache Dir: ' + cache_dir.toString());
return cache_dir;
};
}
but after a while (after certain amount of interaction with the app) it throws the following error.

(Continuation of frida/frida-gum#166.)
As described by @dpnishant:
This following script initially works as normal initially
but after a while (after certain amount of interaction with the app) it throws the following error.