-
-
unidbg Context 对象传参到so里,如何实现呀?困扰了一整天了
-
2024-1-16 00:17
2973
-
unidbg Context 对象传参到so里,如何实现呀?困扰了一整天了
Context context1 = context0.getApplicationContext();
private native String z1(Context arg1) {
}
public static String z2(Context context0) {
return new SMSDK().z1(context0);
}
在unidbg中,不晓得如何构造这个 context对象
String result = sm.newObject().callJniMethodObject(vm.resolveClass("android/content/Context").newObject()).getValue().toString()
网上找的资料说这样调用,但是我这里不行,报错:Cannot invoke "com.github.unidbg.linux.android.dvm.DvmObject.getValue()" because the return value of "com.github.unidbg.linux.android.dvm.DvmObject.callJniMethodObject(com.github.unidbg.Emulator, String, Object[])" is null
懂的大佬路过请指教,嫌麻烦的,可以联系我企鹅:876529930,200红包奉上,谢谢。
[培训]《安卓高级研修班(网课)》月薪三万计划,掌
握调试、分析还原ollvm、vmp的方法,定制art虚拟机自动化脱壳的方法
最后于 2024-1-16 00:18
被hmlyn编辑
,原因: