Project: Firebase for Android React Native Dumper

Try this code out now by running

$ frida --codeshare 0x25CBFC4F/firebase-for-android-react-native-dumper -f YOUR_BINARY
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
Obviously only works on application start.
Start your app via frida -U -f <app name> --codeshare 0x25CBFC4F/firebase-for-react-native-dumper
And wait a bit.
*/
let AppModuleInstance = null;
Java.perform(() => {
const c = "io.invertase.firebase.app.ReactNativeFirebaseAppModule";
let ReactNativeFirebaseAppModule = Java.use(c);
ReactNativeFirebaseAppModule["$init"].implementation = function(bridgeAppContext) {
console.log("\nCaught instance ReactNativeFirebaseAppModule: " + this);
AppModuleInstance = Java.retain(this);
return this["$init"](bridgeAppContext);
}
});
setTimeout(function() {
Java.perform(() => {
console.log("Got appmodule: " + AppModuleInstance);
console.log("getConstants() -> ");
let constants = AppModuleInstance.getConstants();
var keys = constants.keySet();
var iterator = keys.iterator();
while (iterator.hasNext()) {
var k = iterator.next();
console.log(k + " : " + constants.get(k));
}
});
}, 1000);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Fingerprint: 222af623ac58307a38a554deb86286b460e68801897385fbe8d1141abc406517