android - 使用 Frida - 如何获取通过 AIDL 接口调用的函数实例
问题描述
我正在尝试调用通过 AIDL 接口绑定的函数我有两个包
- com.android.package1
- com.android.package2
在包 2 中,我有类 com.android.package2.example,它是通过包 1 中的意图调用
的。Iexample.aidl 文件具有以下方法
interface Iexample {
List<Object> getList();
void onReceive(in Object result);
}
在 package1 类中
private final ServiceConnection mServiceConnection = new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName paramComponentName, IBinder paramIBinder) {
mExample = Iexample.Stub.asInterface(paramIBinder);
if(mExample != null) {
mExample.onRecieve(mResult);
}
}
}
现在我正在通过 frida 连接包 2,并希望直接调用 onReceive 函数,以便可以传递我创建的结果对象。所以请帮助我如何编写frida脚本? 两个包之间的 AIDL 接口