Use the package manager pip to install foobar.
pip install objection
#hook指定app
objection --gadget asvid.github.io.fridaapp explore
#查看内存中加载的库
memory list modules
#查看所有激活的程序
android hooking list activities
#查看当前激活的窗口
android hooking get current_activity
#搜索类
android hooking search classes asvid.github.io.fridaapp
#搜索类的所有方法
android hooking search methods asvid.github.io.fridaapp MainActivity
#查看类的所有方法
android hooking list class_methods asvid.github.io.fridaapp.MainActivity
#hook指定类的方法,查看返回值,以及跟踪方法
android hooking watch class_method asvid.github.io.fridaapp.MainActivity.sum --dump-args --dump-backtrace --dump-return
#hook整个类 查看返回值,以及跟踪方法
android hooking watch class asvid.github.io.fridaapp.MainActivity --dump-args --dump-args --dump-backtrace --dump-return