Frida

To install Frida

pip install frida-tools

After install Frida in you host system, go to https://github.com/frida/frida/releases and install frida-server for android and move the frida-server elf file into your android device using adb and let it run in the background of the android device.

Enumerate Activities

To enumerate mobile application activities, first u need the PID of the mobile application.

On your host use this command:

frida-ps -U

It will give you all the processes that are running in the mobile device, take the pid of the mobile app that you want to enumerate and use this code.

save this code into js file

console.log("Enumerating methods of MainActivity");
Java.perform(function() {
  const groups = Java.enumerateMethods('*MainActivity*!*');
  console.log(JSON.stringify(groups, null, 2));
});

After that on you host use this command to enumerate the activities.

frida -U -l enum.js <PID>

Last updated