Android - How to enable CheckJni for NDK development?

Can someone tell me if I'm missing something here? I am trying the following commands in a shell.

$ ./adb shell stop
$ ./adb shell setprop dalvik.vm.checkjni true
$ ./adb shell start

But Logcat always shows “CheckJNI off” when I install the APK on the device.
Is there anything else in the eclipse that I need to do to enable the XCheck: Jni flag?

Thanks for any help BD

+5
source share
3 answers

: , , .


:

adb:

adb shell

:

su
stop
setprop dalvik.vm.checkjni true
start

:

CheckJNI is ON



. :

CheckJNI.

, CheckJNI .

, CheckJNI:

adb shell stop
adb shell setprop dalvik.vm.checkjni true
adb shell start

- logcat :

D AndroidRuntime: CheckJNI is ON

, :

adb shell setprop debug.checkjni 1

, , , CheckJNI. ( CheckJNI.) - logcat :

D Late-enabling CheckJNI

android: debuggable , CheckJNI . , Android .

+7
0
source

All Articles