The script contains frida commands, for example such as finding and saving the classes of a package to a document, as well as finding the methods of a class and saving it to the output-fridaTxt folder . Basically creates the javascript documents.
In the android emulator, you should have installed and run the frida server first.
Two folders are created by the shell script: one for the javascript code, the other for the output from the frida server. Upon exiting frida, all classes or properties for a package will be stored in the output-fridaTxt folder. Also the shell script will produce and store the javascript code for the frida inside the js folder. After that you can search from the menu if the specific class or method you are looking for exist.
1) Start frida server
2) Run the command: chmod +x main.sh
3) Finally run: ./main
You will see all the installed packages from the emulator and you should choose the package in order to see all the classes.
You are in the frida terminal, you shoud enter %resume to see all the classes, after you enter exit the classes will be store in a file inside the folder output-fridaTxt.
When you click number 2 in the menu to search the class, you should put the name of the package and the name of the class you are looking for. After that click enter to see the results.