|
[求助]NDK编译的android可执行文件里怎么获取JavaVM变量?
猫子 cmake没试过,应该就是添加库的问题,你自己可以试试我用dlsym(librt_dso, "_ZN7android14AndroidRuntime7mJavaVME")试了一下,用java调用jni本地方法可以获取到JavaVM对象,但是如果把c代码单独编译成一个可执行文件的话,main函数里获取不到. 按照我的理解,可执行文件也是一个单独的进程,而每个进程都是运行在一个虚拟机里,执行文件运行前系统也应该调用Creat_JavaVM为它分配一个虚拟机,,但是android::AndroidRuntime::mJavaVM却获取不到,不知道为什么? 也许应该在可执行文件里自己调用android::AndroidRuntime::Creat_JavaVM创建虚拟机,只有有空试试才知道了
最后于 2018-12-26 22:46
被mistyes编辑
,原因:
|
|
[求助]NDK编译的android可执行文件里怎么获取JavaVM变量?
猫子 编译选项LOCAL_LDLIBS := -llog $(LOCAL_PATH)\libdvm.so $(LOCAL_PATH)\ ...CMake编译的话怎么设置呢? |
|
[求助]OD,无法激活内存断点
是XP系统 |
|
[求助]OD,无法激活内存断点
软件没加壳,没驱动保护 |
|
[求助]OD,无法激活内存断点
硬件断点没用,断不下来 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值