frida / frida

Clone this repo to build Frida

Home Page:https://frida.re

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App crash

slayy2357 opened this issue · comments

I was trying to create a program that lists all the functions used by the application to then understand the usage of the application's functions. Problem: I think my code is taking a lot of resources and the application always crashes at the end of the same load.

Here is the first code :

https://gist.github.com/slayy2357/5a3e777269b66cb406244cfadb7bf6d9

Problem of the code :

the app freeze at the middle of a loading. But it work and return all functions used,
even after freezing, the program continues to return functions.

Here is the second code :

https://gist.github.com/slayy2357/25eeb9d438b2911b52775b7bb9c03880

Problem of the code :

the app crash when loading is finished. But it work and return all functions used before the crash.

So, my real question is how to optimize these scripts to make the app not freeze/crash ? Thanks (or I need to rewrite them maybe)

commented

i think you use a lot resources too.and i think you should not hook dlsym,this function is called so much,using frida hook functions like that will crash usually.i think you could analyze app or major function first,then hook the important function.if you really want to hook all function,you should edit aosp sourse codes.