Project: Stacktracing Activities

Try this code out now by running

$ frida --codeshare sknux/stacktracing-activities -f YOUR_BINARY
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Java.perform(function() {
var currentActivity;
// Intercept the call to the 'onCreate' method of all the Activities
var Activity = Java.use('android.app.Activity');
Activity.onCreate.overload('android.os.Bundle').implementation = function(savedInstanceState) {
// Save the reference to the current activity
this.onCreate.overload('android.os.Bundle').call(this, savedInstanceState);
currentActivity = this;
console.log("The current Activity is: " + currentActivity.getClass().getName());
var stack = Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new())
console.log("Here is your stacktrace: " + stack);
}
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Fingerprint: 9bf6d79c8435a6f2a99f041ef43657c9ddce444bb5fe821e390d8e38e6d390bd