啊。JNI代码更正如下#include <string.h>
#include <jni.h>
#include "properties.h"
jint Java_mobile_chgper_ChgperActivity_startPerService(JNIEnv* env,jobject thiz){
return (jint)property_set("ctl.start","perop");
}
jint Java_mobile_chgper_ChgperActivity_stopPerService(JNIEnv* env,jobject thiz){
return (jint)property_set("ctl.stop","perop");
}调试的结果是:init: sys_prop: Unable to start service ctl [perop]
#include <jni.h>
#include "properties.h"
jint Java_mobile_chgper_ChgperActivity_startPerService(JNIEnv* env,jobject thiz){
return (jint)property_set("ctl.start","perop");
}
jint Java_mobile_chgper_ChgperActivity_stopPerService(JNIEnv* env,jobject thiz){
return (jint)property_set("ctl.stop","perop");
}调试的结果是:init: sys_prop: Unable to start service ctl [perop]
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货