|
|
|
@ -48,10 +48,11 @@ JNIEXPORT jstring JNICALL Java_org_purplei2p_i2pd_I2PD_1JNI_startDaemon
@@ -48,10 +48,11 @@ JNIEXPORT jstring JNICALL Java_org_purplei2p_i2pd_I2PD_1JNI_startDaemon
|
|
|
|
|
|
|
|
|
|
int argc=5; |
|
|
|
|
static char* argv[]={ |
|
|
|
|
"i2pd", "--service", "--daemon", |
|
|
|
|
"--conf=/sdcard/i2pd/i2pd.conf", |
|
|
|
|
"--tunconf=/sdcard/i2pd/tunnels.conf", |
|
|
|
|
"--datadir=/data/data/org.purplei2p.i2pd/app_data/" |
|
|
|
|
strdup("i2pd"), |
|
|
|
|
strdup("--conf=/sdcard/i2pd/i2pd.conf"), |
|
|
|
|
strdup("--tunconf=/sdcard/i2pd/tunnels.conf"), |
|
|
|
|
strdup("--datadir=/data/data/org.purplei2p.i2pd/app_data/"), |
|
|
|
|
strdup("--service"), strdup("--daemon") |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
return env->NewStringUTF(i2p::android::start(argc,argv).c_str()); |
|
|
|
|